[Home] [Kuri] [Sysad] [Internet?] [Blog] [Java] [Windows] [Download] [Profile] [Flash] [+] |
+-------- インターネットかな --------+ | | +----------------+ | | 得体の知れない | | |マンションルータ| | +----------------+ | | | |172.30.1.2 |1.2.3.4 +----------------+ +----------------+ | | PPP over TCP | | | NetBSD-1.6 |===================>| FreeBSD-4.6.2R | | | 6669/tcp | | +----------------+ +----------------+ 192.168.19.19 192.168.19.78 |
ppp-out: set escape 0xff set device 1.2.3.4:6669/tcp set dial set timeout 0 set log phase chat set ifaddr 192.168.19.19 192.168.19.78 255.255.255.255 set authname "pppuser" set authkey "ppppass1" |
ppp-in: set log phase chat set timeout 300 set ifaddr 192.168.19.78 192.168.19.19 255.255.255.255 enable CHAP |
pppuser ppppass1 |
ppp-in 6669/tcp # for PPP over TCP |
ppp-in stream tcp nowait root /usr/sbin/ppp ppp -direct ppp-in |
netbsd# /usr/pkg/sbin/ppp -ddial ppp-out |
netbsd# /sbin/ifconfig tun0 tun0: flags=51<UP,POINTOPOINT,RUNNING> mtu 1454 inet 192.168.19.19 -> 192.168.19.78 netmask 0xffffffff netbsd# /sbin/ping 192.168.19.78 PING server (192.168.19.78): 56 data bytes 64 bytes from 192.168.19.78: icmp_seq=0 ttl=64 time=305.263 ms 64 bytes from 192.168.19.78: icmp_seq=1 ttl=64 time=73.652 ms 64 bytes from 192.168.19.78: icmp_seq=2 ttl=64 time=61.642 ms ^C ----server PING Statistics---- 3 packets transmitted, 3 packets received, 0.0% packet loss round-trip min/avg/max/stddev = 61.642/146.852/305.263/137.319 ms |
freebsd# /sbin/ifconfig tun1 tun1: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500 inet6 fe80::212:34ff:fe56:789a%tun1 prefixlen 64 scopeid 0x9 inet 192.168.19.78 -> 192.168.19.19 netmask 0xffffffff Opened by PID 12345 freebsd# /sbin/ping 192.168.19.19 PING client (192.168.19.19): 56 data bytes 64 bytes from 192.168.19.19: icmp_seq=0 ttl=64 time=63.896 ms 64 bytes from 192.168.19.19: icmp_seq=1 ttl=64 time=60.009 ms 64 bytes from 192.168.19.19: icmp_seq=2 ttl=64 time=60.063 ms ^C ----client PING Statistics---- 3 packets transmitted, 3 packets received, 0.0% packet loss round-trip min/avg/max/stddev = 60.009/61.323/63.896/1.820 ms |
ただし、これだけだと、使っていない間はデータが流れないため、5分経つと 切られてしまいます。(…というのはうちの場合ですが。)
* * * * * /sbin/ping -c 1 192.168.19.78 > /dev/null 2>&1 |
[Home] [Kuri] [Sysad] [Internet?] [Blog] [Java] [Windows] [Download] [Profile] [Flash] [-] | |
usu@usupi.org | Last modified : Thu Mar 27 21:59:50 2003 |