From owner-FreeBSD-users-jp@jp.FreeBSD.org Sat Oct 12 15:02:50 2002
Received: (from daemon@localhost)
	by castle.jp.FreeBSD.org (8.11.6+3.4W/8.11.3) id g9C62o314550;
	Sat, 12 Oct 2002 15:02:50 +0900 (JST)
	(envelope-from owner-FreeBSD-users-jp@jp.FreeBSD.org)
Received: from ttvmx5p.vdn.pwd.ne.jp (mx5.vdn.pwd.ne.jp [211.1.103.124])
	by castle.jp.FreeBSD.org (8.11.6+3.4W/8.11.3) with ESMTP/inet id g9C62m314545
	for <FreeBSD-users-jp@jp.FreeBSD.org>; Sat, 12 Oct 2002 15:02:48 +0900 (JST)
	(envelope-from aramaki@spn1.speednet.ne.jp)
Received: from relay1.pwd.ne.jp ([211.1.103.126]) by ttvmx5p.vdn.pwd.ne.jp
          with ESMTP id <20021012060245.DTGA27691.ttvmx5p@relay1.pwd.ne.jp>
          for <FreeBSD-users-jp@jp.FreeBSD.org>;
          Sat, 12 Oct 2002 15:02:45 +0900
Received: from mpp ([210.188.178.205]) by relay1.pwd.ne.jp with ESMTP id jp
          for <FreeBSD-users-jp@jp.FreeBSD.org>;
          Sat, 12 Oct 2002 15:02:43 +0900
To: FreeBSD-users-jp@jp.FreeBSD.org
From: mak <aramaki@spn1.speednet.ne.jp>
Message-Id: <200210121503.ACG51055.BBLBSJN@spn1.speednet.ne.jp>
X-Mailer: Winbiff [Version 2.41]
X-Accept-Language: ja,en
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-2022-jp
Reply-To: FreeBSD-users-jp@jp.FreeBSD.org
Precedence: list
Date: Sat, 12 Oct 2002 15:03:17 +0900
X-Sequence: FreeBSD-users-jp 71362
Subject: [FreeBSD-users-jp 71362] ping =?ISO-2022-JP?B?GyRCJCwbKEI=?= DUP!
 =?ISO-2022-JP?B?GyRCJEhKczlwJDckXiQ5ISMbKEI=?= 
Errors-To: owner-FreeBSD-users-jp@jp.FreeBSD.org
Sender: owner-FreeBSD-users-jp@jp.FreeBSD.org
X-Originator: aramaki@spn1.speednet.ne.jp
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+021008

$B$3$s$K$A$O!"$"$i$^$-!!$G$9!#(B

FreeBSD$B$G(BPPPoE,DHCP,NAT$B$r9=@.$7$F%W%m%P%$%@$K@\B3$7$F$$$^$9!#(B
PPPoE$B$K$F@_Dj$5$l$k%k!<%H$K(Bping$B$7$F$_$k$H!#(B
DUP!$B$HJs9p$5$l$k$N$G$9$,860x$,:#$R$H$D$o$+$i$:$KG:$s$G$$$k$N(B
$B$G$9$,!"EvJ}$N@_Dj%_%9$K$h$k$b$N$G$7$g$&$+(B?$B!!(B
$B$4;XE&4j$($l$P9,$$$G$9!#(B

netstat -r $B$N7k2L!#(B
Internet:
Destination        Gateway            Flags    Refs      Use  Netif Expire
default            foo.ISP		      UGSc        8    31492   tun0
localhost          localhost          UH          2     7478    lo0
192.168.0          link#1             UC          4        0   fxp0
192.168.0.2        00:d0:b7:be:f3:1d  UHLW        3     1270   fxp0   1119
192.168.0.8        00:20:e0:60:00:4c  UHLW        1        3   fxp0    917
192.168.0.9        00:e0:18:6b:de:e2  UHLW        2    10101   fxp0   1151
192.168.0.255      ff:ff:ff:ff:ff:ff  UHLWb       0       32   fxp0
foo.isp            bar.ISP            UH          9      536   tun0


FreeBSD$B$+$i(Bnetstat -r$B$GJs9p$5$l$?(Bfoo.ISP$B$d(Bbar.ISP$B$K8~$+$C$F(Bping$B$9$k$H(B

64 bytes from 210.188.178.254: icmp_seq=8 ttl=64 time=108.813 ms
64 bytes from 210.188.178.254: icmp_seq=9 ttl=64 time=407.965 ms
64 bytes from 210.188.178.254: icmp_seq=9 ttl=64 time=526.254 ms (DUP!)
64 bytes from 210.188.178.254: icmp_seq=10 ttl=64 time=287.089 ms

$B$3$N$h$&$J7k2L$,IQHK$K(B($BB?$$;~$O(B10ping$B$G(B50%$B$[$I(B)$B8+$i$l$^$9!#(B
ping localhost$B$d(B ping (ISP$B$+$i$b$i$C$F$k(BIP$B%"%I%l%9(B) $B$G$O$=$N$h$&$J(B
$B8=>]$O$_$i$l$^$;$s!#(B

natd.conf $B5Z$S(Bppp.conf$B$NFbMF$bI,MW$G$9$+(B?
mail$B$,D9$/$J$C$F$7$^$C$?$N$G>JN,$7$F$7$^$$$^$7$?$,!#!#!#(B


$B0J2<$N$h$&$J4D6-$K$FF0:n$5$;$F$$$^$9!#(B

$B9=@.$O0J2<$NDL$j$G$9!#(B
ISP --(PPPoE)--- FreeBSD(NAT +DHCP)-----PC1(WINDOWS)
                 (fxp1        fxp0)   |-PC2(WINDOWS)
                                      --PC3(WINDOWS)


FreeBSD 4.7-RC FreeBSD 4.7-RC #8: Sat Oct  5 12:54:40 JST 2002

/etc/rc.conf
tcp_extensions="YES"
hostname="hoge"
network_interfaces="fxp0 fxp1 lo0 tun0"
ifconfig_fxp0="inet 192.168.0.1   netmask 255.255.255.0"
ifconfig_fxp1="up"
ifconfig_lo0="inet 127.0.0.1"
router_enable="NO"
inetd_enable="YES"
sendmail_enable="NONE"
sshd_enable="NO"
tcp_drop_synfin="YES"
gateway_enable="YES"

ppp_enable="YES"
ppp_mode="ddial"
ppp_profile="myisp"
ppp_nat="NO"

natd_enable="YES"
natd_interface="tun0"
natd_flags="-f /etc/natd.conf"

firewall_script="/etc/rc.firewall"
firewall_type="open"

ifconfig -a $B$N7k2L(B
fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet 192.168.0.1 netmask 0xffffff00 broadcast 192.168.0.255
        ether 00:a0:c9:b3:44:7c
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active

fxp1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        ether 00:a0:c9:e3:73:97
        media: Ethernet autoselect (10baseT/UTP)
        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 1492
        inet AAA.BBB.CCC.205 --> AAA210.BBB1.CCC.254 netmask 0xffffff00
        Opened by PID 63
