Quantcast
Channel: pfSense
Viewing all articles
Browse latest Browse all 790

Respond to DNS requests from openvpn clients conditionally

$
0
0

Hello! Let me try to explain my scenario with examples: The work site use the network 10.0.1.0/24 and the internal DNS server resolves the site www.servicetest.com to 10.0.1.240.

The site www.servicetest.com is available on the internet too, in the address 51.89.121.53.

We have a PFSense box with OpenVPN configured. When a client is disconected, it can access the site normally resolving to its public address (51.89.121.53), but when it connects the VPN, the site resolves to the private address (10.0.1.240) and become unavailable, because this is the response of the work site DNS server.

I've tried to change the order of DNS Servers available on OpenVPN settings, putting the DNS 8.8.8.8 as the first DNS and the work site dns server as the second. nslookup returnos public IP but ping resolves to the private IP.

What i want is when a DNS...


Viewing all articles
Browse latest Browse all 790

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>