Помогите с насторойкой VPN через WIFI
Схема подключения пк --- вайфай роутер --- интернет провайдера --- впн ---- интернет через впн
root@mashka:~# ifconfig
eth0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 08:9e:01:bf:c2:81 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1 (Local Loopback)
RX packets 13581 bytes 4743206 (4.5 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 13581 bytes 4743206 (4.5 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.123 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::e4c3:5f8b:5e67:1101 prefixlen 64 scopeid 0x20<link>
ether 48:d2:24:80:90:1c txqueuelen 1000 (Ethernet)
RX packets 724634 bytes 280536461 (267.5 MiB)
RX errors 0 dropped 1 overruns 0 frame 0
TX packets 1935276 bytes 200548200 (191.2 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
root@mashka:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.1.1 0.0.0.0 UG 600 0 0 wlan0
192.168.1.0 0.0.0.0 255.255.255.0 U 600 0 0 wlan0
После включения VPN
root@mashka:~# ifconfig
eth0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 08:9e:01:bf:c2:81 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1 (Local Loopback)
RX packets 14166 bytes 4887103 (4.6 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 14166 bytes 4887103 (4.6 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
ppp0: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST> mtu 1400
inet 192.168.10.2 netmask 255.255.255.255 destination 192.168.1.1
ppp txqueuelen 3 (Point-to-Point Protocol)
RX packets 9 bytes 161 (161.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 9 bytes 167 (167.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.123 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::e4c3:5f8b:5e67:1101 prefixlen 64 scopeid 0x20<link>
ether 48:d2:24:80:90:1c txqueuelen 1000 (Ethernet)
RX packets 724821 bytes 280551317 (267.5 MiB)
RX errors 0 dropped 1 overruns 0 frame 0
TX packets 1935432 bytes 200564625 (191.2 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
root@mashka:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 0.0.0.0 0.0.0.0 U 50 0 0 ppp0
0.0.0.0 192.168.1.1 0.0.0.0 UG 600 0 0 wlan0
78.186.63.244 192.168.1.1 255.255.255.255 UGH 0 0 0 wlan0
192.168.1.0 0.0.0.0 255.255.255.0 U 600 0 0 wlan0
192.168.1.1 0.0.0.0 255.255.255.255 UH 50 0 0 ppp0
После включения VPN напрочь отпадает Интернет!