Laptop with OpenVPN client has the VPN's DNS blocked

Ok maybe I misunderstood. This nameserver setting was taken when the stock firmware is running or the OpenWrt?

The following is with the stock firmware running:

$ cat /etc/resolv.conf 
# Generated by NetworkManager
nameserver 192.168.0.1

And with OpenWrt?

fwiw, who is your ISP and what modem do they provide?

Next time you try openwrt, perhaps change its LAN IP address to 192.168.0.1. It shouldn't make any difference unless the modem you are using is already using 192.168.1.x subnet on its LAN port.

Guys, I'm sorry for the huge delay.

I've flashed back to OpenWRT and changed the LAN IP address to 192.168.0.1 and there is no change.
Here are the DNS settings at different setups:

OpenWRT WiFi Router

VPN OFF

$ cat /etc/resolv.conf       
# Generated by NetworkManager
search lan
nameserver 192.168.0.1
nameserver fd06:f148:dcde::1
$ ping gitlab.mycompany.com 
ping: gitlab.mycompany.com: Name or service not known

VPN ON

$ cat /etc/resolv.conf       
# Generated by NetworkManager
search lan
nameserver 192.168.0.1
nameserver fd06:f148:dcde::1
$ ping gitlab.mycompany.com 
ping: gitlab.mycompany.com: Name or service not known

Android HotSpot

VPN OFF

$ cat /etc/resolv.conf       
# Generated by NetworkManager
nameserver 192.168.43.127
$ ping gitlab.mycompany.com
PING gitlab.mycompany.com (10.91.0.13) 56(84) bytes of data.

Note: when I ping the address is resolved from the DNS cache I guess.

VPN ON

$ cat /etc/resolv.conf       
# Generated by NetworkManager
nameserver 192.168.43.127
$ ping gitlab.mycompany.com
PING gitlab.mycompany.com (10.91.0.13) 56(84) bytes of data.
64 bytes from 10.91.0.13 (10.91.0.13): icmp_seq=1 ttl=63 time=43.1 ms
64 bytes from 10.91.0.13 (10.91.0.13): icmp_seq=2 ttl=63 time=59.3 ms
64 bytes from 10.91.0.13 (10.91.0.13): icmp_seq=3 ttl=63 time=44.3 ms
64 bytes from 10.91.0.13 (10.91.0.13): icmp_seq=4 ttl=63 time=49.3 ms

Network->DHCP and DNS->General Settings-> Untick "Rebind protection"

Well.. this untick did it. Thank you for your time and patience!

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.