Re: Поднятие второго VPN подключение поверх основного

Тарас Перебейносов taras.perebeynosov на gmail.com
Пт Ноя 5 00:05:57 GMT 2010


п²я┐п╤п╫п╟ п©п╬п╪п╬я┴я▄. п²п╣ п©п╬п╫п╦п╪п╟я▌ п©п╬я┤п╣п╪я┐ п╪п╟я─я┬я─я┐я┌ п╫п╣ п©я─п╬п©п╦я│я▀п╡п╟п╣я┌...

п▓п╬я┌ я┌п╟п╨ п╡я▀пЁп╩я▐п╢я▐я┌ я┐ п╪п╣п╫я▐ п©п╬п╢п╨п╩я▌я┤п╣п╫п╦я▐:

taras на taras-HomePC:~/Music$ ifconfig
eth0      Link encap:Ethernet  HWaddr 00:22:15:d6:21:b6
          inet addr:10.141.10.235  Bcast:10.141.15.255  Mask:255.255.248.0
          inet6 addr: fe80::222:15ff:fed6:21b6/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3492044 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1664398 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:4449276910 (4.4 GB)  TX bytes:131971039 (131.9 MB)
          Interrupt:43

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:125 errors:0 dropped:0 overruns:0 frame:0
          TX packets:125 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:10654 (10.6 KB)  TX bytes:10654 (10.6 KB)

ppp0      Link encap:Point-to-Point Protocol
          inet addr:89.179.216.151  P-t-P:85.21.230.73  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1460  Metric:1
          RX packets:146897 errors:0 dropped:0 overruns:0 frame:0
          TX packets:100115 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:171392499 (171.3 MB)  TX bytes:10646122 (10.6 MB)

ppp1      Link encap:Point-to-Point Protocol
          inet addr:10.232.60.207  P-t-P:10.232.60.129  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1396  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:80 (80.0 B)  TX bytes:80 (80.0 B)


-------------------

п╟ п╡п╬я┌ я┌п╟п╠п╩п╦я├п╟ п╪п╟я─я┬я─я┐я┌п╦п╥п╟я├п╦п╦:

taras на taras-HomePC:~$ route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
85.21.72.83     10.141.8.1      255.255.255.255 UGH   0      0        0 eth0
85.21.230.73    10.141.8.1      255.255.255.255 UGH   0      0        0 eth0
85.21.230.73    10.141.8.1      255.255.255.255 UGH   0      0        0 eth0
195.14.50.21    10.141.8.1      255.255.255.255 UGH   0      0        0 eth0
195.14.50.26    10.141.8.1      255.255.255.255 UGH   0      0        0 eth0
89.179.135.67   10.141.8.1      255.255.255.255 UGH   0      0        0 eth0
84.47.142.15    0.0.0.0         255.255.255.255 UH    0      0        0 ppp0
195.14.40.141   10.141.8.1      255.255.255.255 UGH   0      0        0 eth0
195.14.50.93    10.141.8.1      255.255.255.255 UGH   0      0        0 eth0
85.21.72.80     10.141.8.1      255.255.255.240 UG    0      0        0 eth0
89.179.134.64   10.141.8.1      255.255.255.240 UG    0      0        0 eth0
85.21.138.208   10.141.8.1      255.255.255.240 UG    0      0        0 eth0
83.102.146.96   10.141.8.1      255.255.255.224 UG    0      0        0 eth0
192.168.117.0   0.0.0.0         255.255.255.0   U     0      0        0
vmnet1
194.67.1.0      10.141.8.1      255.255.255.0   UG    0      0        0 eth0
194.67.18.0     10.141.8.1      255.255.255.0   UG    0      0        0 eth0
217.118.84.0    10.141.8.1      255.255.255.0   UG    0      0        0 eth0
233.33.210.0    10.141.10.235   255.255.255.0   UG    0      0        0 eth0
85.21.90.0      10.141.8.1      255.255.255.0   UG    0      0        0 eth0
192.168.94.0    0.0.0.0         255.255.255.0   U     0      0        0
vmnet8
78.107.23.0     10.141.8.1      255.255.255.0   UG    0      0        0 eth0
85.21.79.0      10.141.8.1      255.255.255.0   UG    0      0        0 eth0
78.107.52.0     10.141.8.1      255.255.255.0   UG    0      0        0 eth0
10.141.8.0      0.0.0.0         255.255.248.0   U     1      0        0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0        0 eth0
0.0.0.0         0.0.0.0         0.0.0.0         U     0      0        0 ppp0

п©я▀я┌п╟я▌я│я▄ п╢п╬п╠п╟п╡п╦я┌я▄ п╪п╟я─я┬я─я┐я┌я▀:

taras на taras-HomePC:~$ sudo route add -host 10.232.60.207 gw 10.232.60.129
dev ppp1
SIOCADDRT: No such process

taras на taras-HomePC:~$ sudo route add -net 10.0.0.0 netmask 255.0.0.0 gw
10.232.60.129 metric 5 dev ppp1
SIOCADDRT: No such process

п∙я│п╩п╦ п©я─п╬п©п╦я│я▀п╡п╟я┌я▄ п╠п╣п╥ я┐п╨п╟п╥п╟п╫п╦я▐ dev, я┌п╬ п╬я┬п╦п╠п╨п╦ п╫п╣я┌, п╪п╟я─я┬я─я┐я┌ п╢п╬п╠п╟п╡п╩я▐п╣я┌я│я▐, п╫п╬
я┤п╣я─п╣п╥ ppp0,  п╟ п╪п╫п╣ п╫я┐п╤п╫п╬ ppp1
----------- следущая часть -----------
п▓п╩п╬п╤п╣п╫п╦п╣ п╡ я└п╬я─п╪п╟я┌п╣ HTML п╠я▀п╩п╬ п╦п╥п╡п╩п╣я┤п╣п╫п╬…
URL: https://lists.ubuntu.com/archives/ubuntu-ru/attachments/20101105/5c7e8113/attachment-0001.htm 


Подробная информация о списке рассылки ubuntu-ru