VPN client and Google domains
-
Good day!
Have VPN client on pfsense and home traffic going over this client. In general setting DNS servers are empty. DNS resolver outbound interface set to localhost. No any problems with internet anywhere. DNS leak test show me VPN/DNS servers. But can not entering any Google domains or Youtube. Youtube inform that PC is offline. Can someone explain , what is going on? -
Is the client you're testing from using pfSense for DNS?
You might be hitting some DoH issue, try a different browser.
Steve
-
@stephenw10 I'm tried other browser but still the same. All browsers use system default DNS. Laptop also using pfsense DNS.
-
@stephenw10 Tried from pfsense DNS lookup to google.com and received - Host "google.com" could not be resolved but bing.com OK!
-
Try it against a different DNS server:
dig @8.8.8.8 google.com
Seems like maybe your VPN providers DNS servers are doing something.
-
@stephenw10 This is result
-
OK so it resolves fine against 8.8.8.8.
So what is it trying to resolve against that's failing? The VPN providers servers? -
@stephenw10 Idk just have working VPN client on pfsense from ExpressVPN. But this Google crying))) Looks like Google thinking that my Laptop dont have working DNS but I'm not expert))
-
@stephenw10 I tried from Laptop with native VPN client connected and Youtube start working . But wanna use on pfsense for whole home network with Google domains in working condition. This disaster did my day today)))
-
Ok so check what the clients are using for DNS. It would normally be the pfSense LAN IP address.
Check what DNS servers pfSense is using in Diag > DNS Lookup.
If you set Unbound to localhost did you also set it to forwarding mode?
Is the VPN client setting itself as the default route when it connects?
-
@stephenw10 said in VPN client and Google domains:
Ok so check what the clients are using for DNS. It would normally be the pfSense LAN IP address.
Check what DNS servers pfSense is using in Diag > DNS Lookup.
If you set Unbound to localhost did you also set it to forwarding mode?
Is the VPN client setting itself as the default route when it connects?- Client using pfSense LAN IP
- Pfsense using 127.0.0.1 as DNS server
- Negative, Unbound not in forwarding mode
- Default route gateway is my ISP gateway if talking about System/routing settings
-
-
-
Ok, then Unbound is going to using the default route for resolving which is directly via the WAN and not via the VPN. Unless your VPN wasn't connected when you checked that?
So I would expect a DNS leak test to show the WAN IP and not the VPN.However it should still be able to resolve google via either route. You might try turning up the logging level in unbound and check for errors.
Did this just start happening?
-
@stephenw10 I don' t have any leakages and don not see any errors in log
-
-
@stephenw10 VPN all time was connected
-
Ok, then your default route must switch when the client connects. Which is expected with the gateway set to automatic like that if the OpenVPN config doesn't expressly prevent it.
However Unbound should still be able to resolve via either route.You probably need to turn up the logging level further to see query level logs.
You might try disabling IPSec and see if that allows it to resolve though.
Steve
-
@stephenw10 Solved by set in firewall rule( Lan traffic to ExpressVpn) default gateway to ExpressVpn. Thank you for your assistance. Have a good weekend!