есть 2 разных впна.
первый идет через pptp.
второй через openvpn (tun0).
сначала включаю первый, потом второй.
вроде всё номр подключается, но ip остается от первого.
конфиги: . . openvpn
remote XXXXXXXXXXXXXXXXX 443
tun-mtu 1400
client
dev tun
proto tcp
persist-remote-ip
nobind
persist-key
persist-tun
cipher AES-256-CBC
remote-cert-tls server
redirect-gateway def1
tls-timeout 4
comp-lzo
verb 3
ca ca_bundle.crt
tls-auth ta.key 1
cert 6013.crt
key 6013.key
. . . route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default * 0.0.0.0 U 0 0 0 ppp0
10.110.0.0 * 255.255.0.0 U 0 0 0 tun0
xxxxxxxxxxxxx.r 192.168.0.1 255.255.255.255 UGH 0 0 0 wlan0
xxxxxxxxxxxxx.r 192.168.0.1 255.255.255.255 UGH 0 0 0 wlan0
172.16.227.0 * 255.255.255.0 U 0 0 0 vmnet8
192.168.0.0 * 255.255.255.0 U 0 0 0 wlan0
192.168.1.64 * 255.255.255.255 UH 0 0 0 ppp0
192.168.37.0 * 255.255.255.0 U 0 0 0 vmnet1
194.149.148.70 192.168.0.1 255.255.255.255 UGH 0 0 0 wlan0
. . .
ifconfig
wlan0 Link encap:Ethernet HWaddr XXXXXXXXXXXXXXxxx
inet addr:192.168.0.104 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: XXXXXXXXXXXX Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1400 Metric:1
RX packets:124382 errors:0 dropped:0 overruns:0 frame:0
TX packets:123305 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:89141360 (85.0 MiB) TX bytes:31660826 (30.1 MiB)
tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 inet addr:10.110.11.5 P-t-P:10.110.11.5 Mask:255.255.0.0
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1400 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
ppp0 Link encap:Point-to-Point Protocol
inet addr:192.168.1.63 P-t-P:192.168.1.64 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1400 Metric:1
RX packets:9389 errors:0 dropped:0 overruns:0 frame:0 TX packets:11998 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:5581185 (5.3 MiB) TX bytes:1467185 (1.3 MiB)