From owner-FreeBSD-net-jp@jp.FreeBSD.org Tue Sep  2 19:55:11 2003
Received: (from daemon@localhost)
	by castle.jp.FreeBSD.org (8.11.6p2+3.4W/8.11.3) id h82AtBF13619;
	Tue, 2 Sep 2003 19:55:11 +0900 (JST)
	(envelope-from owner-FreeBSD-net-jp@jp.FreeBSD.org)
Received: from ss04.estore.co.jp (ss04.estore.co.jp [210.239.44.39])
	by castle.jp.FreeBSD.org (8.11.6p2+3.4W/8.11.3) with SMTP/inet id h82AtBw13614
	for <FreeBSD-net-jp@jp.FreeBSD.org>; Tue, 2 Sep 2003 19:55:11 +0900 (JST)
	(envelope-from s.ume@dcm-jp.net)
Received: (qmail 28563 invoked from network); 2 Sep 2003 19:55:09 +0900
Received: from unknown (HELO ?192.168.128.147?) (218.45.111.12)
  by 0 with SMTP; 2 Sep 2003 19:55:09 +0900
From: ume <ume@rinn.ne.jp>
To: FreeBSD-net-jp@jp.FreeBSD.org
Message-Id: <20030902195227.3B5A.UME@rinn.ne.jp>
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-2022-JP"
Content-Transfer-Encoding: 7bit
X-Mailer: Becky! ver. 2.06.02
Reply-To: FreeBSD-net-jp@jp.FreeBSD.org
Precedence: list
Date: Tue, 02 Sep 2003 19:55:21 +0900
X-Sequence: FreeBSD-net-jp 3965
Subject: [FreeBSD-net-jp 3965] PPPoE =?ISO-2022-JP?B?GyRCQFxCMxsoQg==?=
 =?ISO-2022-JP?B?GyRCJEckThsoQg==?= natd
 =?ISO-2022-JP?B?GyRCJCxGMCQrJEokJBsoQg==?= 
Sender: owner-FreeBSD-net-jp@jp.FreeBSD.org
X-Originator: ume@rinn.ne.jp
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+030902

$BG_ED$H$$$$$^$9!#(B

FreeBSD 4.8-RELEASE$B$r;H$C$F(BB-Flets$B%k!<%?!<$r:n@.$7$h$&$H$7$F$$$^$9$,(B
natd$B$,$&$^$/F/$$$F$/$l$:$K:$$C$F$$$^$9!#(B
$B!J8=:_(Bppp nat$B$G$7$N$$$G$$$^$9!K(B

$B$J$K$+%"%I%P%$%9Ey$"$j$^$7$?$i(B
$B59$7$/$*4j$$$$$?$7$^$9!#(B

[dmesg]
Copyright (c) 1992-2003 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.
FreeBSD 4.8-RELEASE #2: Mon Sep  1 10:41:09 JST 2003
    moemoe@gw.net.work:/usr/src/sys/compile/GW
Timecounter "i8254"  frequency 1193182 Hz
CPU: Pentium II/Pentium II Xeon/Celeron (300.68-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x660  Stepping = 0
  Features=0x183f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PA
T,PSE36,MMX,FXSR>
real memory  = 67096576 (65524K bytes)
avail memory = 60485632 (59068K bytes)
Preloaded elf kernel "kernel" at 0xc04ba000.
Pentium Pro MTRR support enabled
md0: Malloc disk
Using $PIR table, 6 entries at 0xc00f0d10
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Intel 82443BX (440 BX) host to PCI bridge> on motherboard
pci0: <PCI bus> on pcib0
agp0: <Intel 82443BX (440 BX) host to PCI bridge> mem 0xe4000000-0xe7ffffff at d
evice 0.0 on pci0
pcib1: <Intel 82443BX (440 BX) PCI-PCI (AGP) bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pci1: <ATI Mach64-GZ graphics accelerator> at 0.0
isab0: <Intel 82371AB PCI to ISA bridge> at device 4.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX4 ATA33 controller> port 0xb800-0xb80f at device 4.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
uhci0: <Intel 82371AB/EB (PIIX4) USB controller> port 0xb400-0xb41f irq 12 at de
vice 4.2 on pci0
usb0: <Intel 82371AB/EB (PIIX4) USB controller> on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
chip0: <Intel 82371AB Power management controller> port 0xe800-0xe80f at device
4.3 on pci0
tx0: <SMC EtherPower II 10/100> port 0xb000-0xb0ff mem 0xe1800000-0xe1800fff irq
 10 at device 11.0 on pci0
tx0: unknown card vendor 10fch
acphy0: <AC101 10/100 media interface> on miibus0
acphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
tx0: serial PHY detected (10Base2/BNC)
tx0: address 00:a0:b0:14:f8:5d, type SMC9432TX_2
tx1: <SMC EtherPower II 10/100> port 0xa800-0xa8ff mem 0xe1000000-0xe1000fff irq
 11 at device 12.0 on pci0
tx1: unknown card vendor 10fch
acphy1: <AC101 10/100 media interface> on miibus1
acphy1:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
tx1: serial PHY detected (10Base2/BNC)
tx1: address 00:a0:b0:14:f8:95, type SMC9432TX_2
orm0: <Option ROM> at iomem 0xc0000-0xc7fff on isa0
fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/9 bytes threshold
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
IP packet filtering initialized, divert enabled, rule-based forwarding enabled,
default to deny, logging limited to 100 packets/entry by default
ad0: 6149MB <QUANTUM FIREBALL EX6.4A> [13328/15/63] at ata0-master UDMA33
Mounting root from ufs:/dev/ad0s1a

[ifconfig]
tx0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        ether 00:a0:b0:14:f8:5d
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
tx1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet 192.168.**.2 netmask 0xffffff00 broadcast 192.168.128.255
        ether 00:a0:b0:14:f8:95
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
lp0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500
ppp0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
sl0: flags=c010<POINTOPOINT,LINK2,MULTICAST> mtu 552
faith0: flags=8002<BROADCAST,MULTICAST> mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet 127.0.0.1 netmask 0xff000000
tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1454
        inet 192.168.**.2 --> **.**.**.** netmask 0xffffff00
        Opened by PID 54


[rc.conf]
hostname="gw.net.work"
ifconfig_tx0="up"       # WAN
ifconfig_tx1="inet 192.168.**.2 netmask 255.255.255.0" # LAN
kern_securelevel_enable="NO"
keymap="jp.106"
nfs_reserved_port_only="YES"
sendmail_enable="YES"
sshd_enable="YES"
usbd_enable="YES"

syslogd_flags="-4 -s"
inetd_enable="yes"
sshd_enable="no"
nfs_reserved_port_only="no"
portmap_enable="no"
sendmail_enable="none"
firewall_enable="yes"
firewall_type="open"

defaultrouter="192.168.**.2"
gateway_enable="yes"
ipv6_enable="no"
ppp_enable="yes"
ppp_mode="ddial"
ppp_profile="flets"
ppp_nat="no"
natd="yes"
natd_enable="yes"
natd_interface="tun0"
natd_flags="-f /etc/natd.conf"

[natd.conf]
log yes
deny_incoming no
log_denied yes
log_facility security
use_sockets yes
same_ports yes
unregistered_only yes
punch_fw 1000:100

[ppp.conf]
default:
 set device PPPoE:tx0
 set MRU 1454
 set MTU 1454
 set speed sync
 set log Phase Chat LCP IPCP CCP tun command
 add default HISADDR
 set ctsrts off
 set timeout 0
 accept chap
 accept pap
 enable dns
 nat enable no

flets:
 set authname ******
 set authkey *******
 add default HISADDR

[ppp.linkup]
flets:
 ! ifconfig tun0 delete
 ! ifconfig tun0 192.168.**.2 netmask 255.255.255.0 HISADDR
 add! default HISADDR

[netstat -rn]
Internet:
Destination        Gateway            Flags    Refs      Use  Netif Expire
default            **.**.**.**        UGSc        1       52   tun0
**.**.**.**        192.168.**.2       UH          1        0   tun0
127.0.0.1          127.0.0.1          UH          0        0    lo0
192.168.**         link#2             UC          3        0    tx1
192.168.**.2       00:a0:b0:14:f8:95  UHLW        0        0    lo0

[ps xa]
  PID  TT  STAT      TIME COMMAND
    0  ??  DLs    0:00.00  (swapper)
    1  ??  ILs    0:00.01 /sbin/init --
    2  ??  DL     0:00.00  (pagedaemon)
    3  ??  DL     0:00.00  (vmdaemon)
    4  ??  DL     0:00.00  (bufdaemon)
    5  ??  DL     0:00.01  (syncer)
    6  ??  DL     0:00.00  (vnlru)
   23  ??  Is     0:00.00 adjkerntz -i
   54  ??  Ss     0:00.06 /usr/sbin/ppp -quiet -ddial flets
   82  ??  Is     0:00.05 /usr/sbin/syslogd -4 -s
   89  ??  Is     0:00.01 /usr/sbin/inetd -wW
   91  ??  Is     0:00.01 /usr/sbin/cron
   93  ??  Is     0:00.00 /usr/sbin/usbd
  115  ??  Ss     0:00.08 telnetd
  116  p0  Is     0:00.04 login [pam] (login)
  117  p0  S      0:00.01 -sh (sh)
  119  p0  R+     0:00.00 ps xa
  111  v0  Is+    0:00.01 /usr/libexec/getty Pc ttyv0
  112  v1  Is+    0:00.01 /usr/libexec/getty Pc ttyv1
  113  v2  Is+    0:00.01 /usr/libexec/getty Pc ttyv2
  114  v3  Is+    0:00.01 /usr/libexec/getty Pc ttyv3


