>>Затем запускаю от рута pptp 192.168.0.1 vpn &
>
>ifconfig
>netstat -rn
>с клиента (я так понимаю фрюха) покажи.
Вот это до поднятия тунеля:
localhost# ifconfig
acx0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet6 fe80::20d:88ff:fe91:ec3f╛x0 prefixlen 64 scopeid 0x1
inet 192.168.0.249 netmask 0xffffff00 broadcast 192.168.0.255
ether 00:0d:88:91:ec:3f
media: IEEE 802.11 Wireless Ethernet autoselect (DS/11Mbps)
status: associated
ssid volvo_netb 1:volvo_netb
channel 2 authmode OPEN powersavemode OFF powersavesleep 100
wepmode OFF weptxkey 1
plip0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
inet 127.0.0.1 netmask 0xff000000
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
localhost# netstat -rn
Routing tables
Internet:
Destination Gateway Flags Refs Use Netif Expire
default 192.168.0.1 UGS 0 0 acx0
127.0.0.1 127.0.0.1 UH 1 0 lo0
192.168.0 link#1 UC 0 0 acx0
192.168.0.1 00:07:e9:6b:98:da UHLW 1 940 acx0 919
192.168.0.249 127.0.0.1 UGHS 0 0 lo0
Internet6:
Destination Gateway Flags
Netif
Expire
::1 ::1 UH
lo0
fe80::╛x0/64 link#1 UC
acx0
fe80::20d:88ff:fe91:ec3f╛x0 00:0d:88:91:ec:3f UHL
lo0
fe80::%lo0/64 fe80::1%lo0 U
lo0
fe80::1%lo0 link#3 UHL
lo0
ff01::/32 ::1 U
lo0
ff02::╛x0/32 link#1 UC
acx0
ff02::%lo0/32 ::1 UC
lo0
А вот это после поднятия тунеля:
localhost# pptp 192.168.0.1 vpn &
[1] 557
localhost# ifconfig
acx0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet6 fe80::20d:88ff:fe91:ec3f╛x0 prefixlen 64 scopeid 0x1
inet 192.168.0.249 netmask 0xffffff00 broadcast 192.168.0.255
ether 00:0d:88:91:ec:3f
media: IEEE 802.11 Wireless Ethernet autoselect (DS/11Mbps)
status: associated
ssid volvo_netb 1:volvo_netb
channel 2 authmode OPEN powersavemode OFF powersavesleep 100
wepmode OFF weptxkey 1
plip0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
inet 127.0.0.1 netmask 0xff000000
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500
Opened by PID 557
localhost# May 4 16:34:21 localhost routed[262]: IP_ADD_MEMBERSHIP
ALLHOSTS: Ca
n't assign requested address
May 4 16:34:21 localhost routed[262]: setsockopt(IP_ADD_MEMBERSHIP RIP):
Can't
assign requested address
May 4 16:34:21 localhost routed[262]: ignore RTM_CHANGE without mask
localhost# netstat -rn
Routing tables
Internet:
Destination Gateway Flags Refs Use Netif Expire
default 192.168.10.1 UGS 0 0 tun0
127.0.0.1 127.0.0.1 UH 1 0 lo0
192.168.0 link#1 UC 0 0 acx0
192.168.0.1 00:07:e9:6b:98:da UHLW 0 1159 acx0 823
192.168.0.249 127.0.0.1 UGHS 0 0 lo0
192.168.10.1 192.168.20.249 UH 1 0 tun0
192.168.20.249 127.0.0.1 UH 0 0 lo0
Internet6:
Destination Gateway Flags
Netif
Expire
::1 ::1 UH
lo0
fe80::╛x0/64 link#1 UC
acx0
fe80::20d:88ff:fe91:ec3f╛x0 00:0d:88:91:ec:3f UHL
lo0
fe80::%lo0/64 fe80::1%lo0 U
lo0
fe80::1%lo0 link#3 UHL
lo0
ff01::/32 ::1 U
lo0
ff02::╛x0/32 link#1 UC
acx0
ff02::%lo0/32 ::1 UC
lo0
ff02::%tun0/32 fe80::20d:88ff:fe91:ec3f%tun0 UC
tun0
localhost# May 4 16:34:21 localhost routed[262]: ignore RTM_CHANGE
without mask