Вобщем поставил Ubuntu 8,04
система чистая тока пптп доставил
+добавил в rc.local
route add -net 10.0.0.0/8 gw 10.156.85.253
route add -net 172.16.0.0/12 gw 10.156.85.253
------------------------------------------------------------------------
/etc/network/interfaces
auto lo
iface lo inet loopback
iface eth0 inet static
address 10.156.85.19
netmask 255.255.255.0
gateway 10.156.85.253
auto eth0
/etc/resolv.conf
nameserver 10.14.0.201
route -n до подключеня
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.156.85.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 eth0
172.16.0.0 10.156.85.253 255.240.0.0 UG 0 0 0 eth0
10.0.0.0 10.156.85.253 255.0.0.0 UG 0 0 0 eth0
0.0.0.0 10.156.85.253 0.0.0.0 UG 100 0 0 eth0
подключаю так
pptp vpn.сервер noauth nobsdcomp nodeflate refuse-eap refuse-pap user uZveR password Pa55w0rd
добавляю default gw
route add default dev ppp0
roune -n после подключения
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.0.0.1 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0 // после подключения всегда добавляется сам
10.156.85.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 eth0
172.16.0.0 10.156.85.253 255.240.0.0 UG 0 0 0 eth0
10.0.0.0 10.156.85.253 255.0.0.0 UG 0 0 0 eth0
0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 ppp0
0.0.0.0 10.156.85.253 0.0.0.0 UG 100 0 0 eth0
ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:1c:f0:bc:6f:61
inet addr:10.156.85.19 Bcast:10.156.85.255 Mask:255.255.255.0
inet6 addr: fe80::21c:f0ff:febc:6f61/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1477 errors:0 dropped:0 overruns:0 frame:0
TX packets:614 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:585986 (572.2 KB) TX bytes:150774 (147.2 KB)
Interrupt:20
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1034 errors:0 dropped:0 overruns:0 frame:0
TX packets:1034 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:51700 (50.4 KB) TX bytes:51700 (50.4 KB)
ppp0 Link encap:Point-to-Point Protocol
inet addr:172.30.4.3 P-t-P:10.0.0.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1460 Metric:1
RX packets:4 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:130 (130.0 B) TX bytes:108 (108.0 B)
tracepath ya.ru
1: 172.30.4.3 (172.30.4.3) 0.207ms pmtu 1460
1: 10.0.0.1 (10.0.0.1) 0.830ms
1: 10.0.0.1 (10.0.0.1) 0.802ms
2: no reply
3: 94.45.161.250 (94.45.161.250) 1.157ms asymm 2
4: 94.45.161.250 (94.45.161.250) 1.190ms reached
Resume: pmtu 1460 hops 4 back 63
ping ya.ru (какие то странные ИП,явно не яндекс)
PING ya.ru (77.88.21.8) 56(84) bytes of data.
From 94.45.161.250 icmp_seq=1 Destination Net Prohibited
From 94.45.161.250 icmp_seq=2 Destination Net Prohibited
From 94.45.161.250 icmp_seq=3 Destination Net Prohibited
From 94.45.161.250 icmp_seq=4 Destination Net Prohibited
--- ya.ru ping statistics ---
4 packets transmitted, 0 received, +4 errors, 100% packet loss, time 15017ms
напомощь, моск вскипает уже
почему тунель заворачивает на 10.0.0.1??
Пользователь решил продолжить мысль 08 Ноября 2009, 23:24:59:
ап