I have an OpenVPN server on Ubuntu and several OpenVPN clients on Windows 10, both are behind a router (port forwarding has been done). Each client can connect fine and can ping/connect to each other, they can also ping the DNS server (8.8.8.8) but cannot resolve DNS names (if I try to ping www.google.com or similar, I get no result). I tried to change some settings in the routing table of a client, but with no success. Anyway I can get it to work? My routing table (before connection to OpenVPN) is the following:
Network address Mask Gateway Interface Metrics
0.0.0.0 0.0.0.0 192.168.1.1 192.168.1.67 281
0.0.0.0 255.255.255.255 192.168.1.1 192.168.1.67 26
8.0.0.0 255.255.255.0 192.168.1.1 192.168.1.67 26
8.0.0.0 255.255.255.255 192.168.1.1 192.168.1.67 26
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
192.168.1.0 255.255.255.0 On-link 192.168.1.67 281
192.168.1.0 255.255.255.0 192.168.1.1 192.168.1.67 26
192.168.1.0 255.255.255.255 192.168.1.1 192.168.1.67 26
192.168.1.67 255.255.255.255 On-link 192.168.1.67 281
192.168.1.255 255.255.255.255 On-link 192.168.1.67 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 192.168.1.67 281
224.0.0.0 240.0.0.0 On-link a 9256
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 192.168.1.67 281
255.255.255.255 255.255.255.255 On-link a 9256
Permanent routes:
Network address Mask Gateway Metrics
0.0.0.0 0.0.0.0 192.168.1.1 Deafault
while the routing table after connection is the following:
Network address Mask Gateway Interface Metrics
0.0.0.0 0.0.0.0 192.168.1.1 192.168.1.67 281
0.0.0.0 255.255.255.255 192.168.1.1 192.168.1.67 26
8.0.0.0 255.255.255.0 192.168.1.1 192.168.1.67 26
8.0.0.0 255.255.255.255 192.168.1.1 192.168.1.67 26
10.8.0.0 255.255.255.0 10.8.0.1 10.8.0.4 4
10.8.0.0 255.255.255.255 10.8.0.1 10.8.0.4 4
10.8.0.4 255.255.255.255 On-link 10.8.0.4 259
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
192.168.1.0 255.255.255.0 On-link 192.168.1.67 281
192.168.1.0 255.255.255.0 192.168.1.1 192.168.1.67 26
192.168.1.0 255.255.255.255 192.168.1.1 192.168.1.67 26
192.168.1.67 255.255.255.255 On-link 192.168.1.67 281
192.168.1.255 255.255.255.255 On-link 192.168.1.67 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 10.8.0.4 259
224.0.0.0 240.0.0.0 On-link 192.168.1.67 281
224.0.0.0 240.0.0.0 On-link a 9256
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 10.8.0.4 259
255.255.255.255 255.255.255.255 On-link 192.168.1.67 281
255.255.255.255 255.255.255.255 On-link a 9256
Permanent routes:
network address Mask Gateway Metrics
0.0.0.0 0.0.0.0 192.168.1.1 Default
the addresses starting with 10.8.x.x are the VPN addresses, while 192.168.x.x are the IPs of the router the Windows client is connected to. Any tip?
fc
would do;diff
could do better but it's not stock Windows).