Internet is not working when VPN is connected
Posted: 12 Sep 2023, 20:01
Hi, I have 2 problems with OpenVPN server:
1) I have enabled "Allow clients to access the local area network where the server is located" on the latest version 2.0.49 and I cant connect to any hosts in TNAS local network e,g, TOS UI via local address https://192.168.1.10:5443 does not work, but it works via https://172.10.11.1:5443
2) After update TOS to 5.1.67 and update Docker Manager to 1.2.6, my OpenVPN does not work properly: when I connected to it internet is not working at all, but I can open TOS UI using IP 172.10.11.1. I have tried on PC, mobile and laptop.
TNAS:
PC with connected VPN:
I deleted VPN Server, rebooted the NAS and installed it again. It did not help.
The same issue.
But veth* interfaces are disappeared.
1) I have enabled "Allow clients to access the local area network where the server is located" on the latest version 2.0.49 and I cant connect to any hosts in TNAS local network e,g, TOS UI via local address https://192.168.1.10:5443 does not work, but it works via https://172.10.11.1:5443
2) After update TOS to 5.1.67 and update Docker Manager to 1.2.6, my OpenVPN does not work properly: when I connected to it internet is not working at all, but I can open TOS UI using IP 172.10.11.1. I have tried on PC, mobile and laptop.
Code: Select all
ping 8.8.8.8 -t
Exchange of packets from 8.8.8.8 to 32 bytes of data:
Reply from 8.8.8.8: number of bytes=32 time=49ms TTL=60
Reply from 8.8.8.8: number of bytes=32 time=49ms TTL=60
Reply from 8.8.8.8: number of bytes=32 time=65ms TTL=60
Reply from 8.8.8.8: number of bytes=32 time=49ms TTL=60
#####Connecting to VPN#####
PING: transmission failed. General failure.
PING: transmission failed. General failure.
PING: transmission failed. General failure.
#####VPN is connected#####
Timed out request.
Timed out request.
Timed out request.
Timed out request.
Timed out request.
Timed out request.
Timed out request.
Timed out request.
#####VPN is disconnected#####
Reply from 8.8.8.8: number of bytes=32 time=49ms TTL=60
Reply from 8.8.8.8: number of bytes=32 time=49ms TTL=60
Reply from 8.8.8.8: number of bytes=32 time=49ms TTL=60
Reply from 8.8.8.8: number of bytes=32 time=49ms TTL=60
Reply from 8.8.8.8: number of bytes=32 time=49ms TTL=60
Reply from 8.8.8.8: number of bytes=32 time=49ms TTL=60
Reply from 8.8.8.8: number of bytes=32 time=49ms TTL=60
Code: Select all
# 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 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 veth35f58bf
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 vethbacadd4
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 veth802eeac
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 veth659055e
172.10.11.0 172.10.11.2 255.255.255.0 UG 0 0 0 tun0
172.10.11.2 0.0.0.0 255.255.255.255 UH 0 0 0 tun0
172.17.0.0 0.0.0.0 255.255.0.0 U 0 0 0 docker0
172.19.0.0 0.0.0.0 255.255.0.0 U 0 0 0 br-8b137c1fd954
172.20.0.0 0.0.0.0 255.255.0.0 U 0 0 0 br-d295c66d1d24
172.21.0.0 0.0.0.0 255.255.0.0 U 0 0 0 br-12a9da5f24a5
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
Code: Select all
#route print
IPv4 route table
===========================================================================
Active routes:
Network address Network mask Gateway address Interface Metrics
0.0.0.0 0.0.0.0 192.168.31.1 192.168.31.122 25
0.0.0.0 128.0.0.0 172.10.11.5 172.10.11.6 257
119.229.119.120 255.255.255.255 192.168.31.1 192.168.31.122 281
127.0.0.0 255.0.0.0 On-link 127.0.0.1 331
127.0.0.1 255.255.255.255 On-link 127.0.0.1 331
127.255.255.255 255.255.255.255 On-link 127.0.0.1 331
128.0.0.0 128.0.0.0 172.10.11.5 172.10.11.6 257
172.10.11.0 255.255.255.0 172.10.11.5 172.10.11.6 257
172.10.11.4 255.255.255.252 On-link 172.10.11.6 257
172.10.11.6 255.255.255.255 On-link 172.10.11.6 257
172.10.11.7 255.255.255.255 On-link 172.10.11.6 257
192.168.31.0 255.255.255.0 On-link 192.168.31.122 281
192.168.31.122 255.255.255.255 On-link 192.168.31.122 281
192.168.31.255 255.255.255.255 On-link 192.168.31.122 281
224.0.0.0 240.0.0.0 On-link 127.0.0.1 331
224.0.0.0 240.0.0.0 On-link 172.10.11.6 257
224.0.0.0 240.0.0.0 On-link 192.168.31.122 281
255.255.255.255 255.255.255.255 On-link 127.0.0.1 331
255.255.255.255 255.255.255.255 On-link 172.10.11.6 257
255.255.255.255 255.255.255.255 On-link 192.168.31.122 281
===========================================================================
Regular routes:
Absent
Code: Select all
#tracert 8.8.8.8
Trace route to dns.google [8.8.8.8]
with a maximum number of hops of 30:
1 45 ms 45 ms 45 ms 172.10.11.1
2 * * * Request timeout exceeded.
3 * * * Request timeout exceeded.
4 * * * Request timeout exceeded.
5 * * * Request timeout exceeded.
.....
30 * * * Request timeout exceeded.
Tracing is complete.
The same issue.
But veth* interfaces are disappeared.
Code: Select all
# 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 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1
172.10.11.0 172.10.11.2 255.255.255.0 UG 0 0 0 tun0
172.10.11.2 0.0.0.0 255.255.255.255 UH 0 0 0 tun0
172.17.0.0 0.0.0.0 255.255.0.0 U 0 0 0 docker0
172.19.0.0 0.0.0.0 255.255.0.0 U 0 0 0 br-8b137c1fd954
172.20.0.0 0.0.0.0 255.255.0.0 U 0 0 0 br-d295c66d1d24
172.21.0.0 0.0.0.0 255.255.0.0 U 0 0 0 br-12a9da5f24a5
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0