OPNsense Forum

Archive => 18.7 Legacy Series => Topic started by: shtech on September 05, 2018, 06:55:03 pm

Title: Unbound Overrides don't work when on VPN
Post by: shtech on September 05, 2018, 06:55:03 pm
I am behind my opnsense fw. I connect to an openvpn at a client's. Internal resolution of their lan works fine.
Their DNS Server: 192.168.1.13
Opnsense FW: 192.168.3.1

While I am connected to that openvpn, local lan DNS fails. NSLOOKUP shows that it tries the client's DNS server, then it tries the next server which is my FW. It returns nothing.

Code: [Select]
;; Got SERVFAIL reply from 192.168.1.13, trying next server
Server: 192.168.3.1
Address: 192.168.3.1#53

** server can't find XXXX: NXDOMAIN

However, if I disconnect from the vpn my overrides work correctly. It's really strange.

Unbound is set to "All" for interfaces, firewall isn't blocking the connection.

My workstation is opensuse leap 42.3. Redirect gateway is NOT enabled on the VPN. Anywhere I should look?
Title: Re: Unbound Overrides don't work when on VPN
Post by: Baliste on February 04, 2019, 12:17:04 pm
Hello,

Did you find a solution to your problem ?
I am facing the same kind of situation.
My OpenVPN clients can't resolve the DNS reccords defined in Unbound Overrides ...

Thanks,

Frédéric
Title: Re: Unbound Overrides don't work when on VPN
Post by: Baliste on February 04, 2019, 12:46:45 pm
Hello,

I find a post here with the same kind of problem. They said to add the OpenVPN tunnel network to the unbound ACL. I did it and it is working now.

Frédéric