Hey guys! I’m wondering how you manage your VPN connection when switching from your home wifi to mobile data. The way I have VPN configured I don’t get internet when connected to my home wifi. Do you constantly keep switching on and off your VPN connection depending on your location?
I have wireguard and adguard setup on my home server and on my device I have a VPN tunnel with my home’s Public IP as endpoint and the home server local IP for DNS.
With this configuraiton, when tunnel is on, and device is on the home wifi, the tunnel has issues to resolve the home public IP hence all the internet drops.
I don’t have any possibility to enable router hairpin and I’d like not to make use of cloud DNS records to use domains instead of IP.
This is why you need to turn off your VPN at home. The only way around is to either use hairpin or split-brain DNS (ie. use a hostname / dns to get to the IP).
Not necessarily a good idea if you use public WiFi networks when not at home.
@xiki I activate VPN, if I not at home and deactivate in the other case. May be there same better ways (on Android), but it is the most easy way for me .
They’re using IP-addresses, not hostnames, so DNS is not the issue. The problem is that their router doesn’t have hairpin NAT enabled, so they can’t use their external IP-address from the local network.