Solution to Keep Tunnel Open on Home Network
Posted: Sun Aug 09, 2020 6:50 pm
Since the OpenVPN app doesn't yet natively allow you to automatically connect when leaving home network, I've found a work-around through which you can remain connected to the VPN even when at home - no, there's no benefit to this other than that you don't have to manually reconnect.
I saw a forum recommendation to change the local subnet to something in the 10.0.0.0/8 range. By itself, this didn't allow the connection to stay open and created a new problem that I couldn't connect to my pi-hole when connected to the VPN. What did work was changing the TUN mode service port to TCP port 443. Now, for whatever reason, I can stay connected to my VPN all the time and can also access the pi-hole remotely.
Just thought I'd share this since it's taken me days to work out and I wasnt able to find this solution anywhere.
I saw a forum recommendation to change the local subnet to something in the 10.0.0.0/8 range. By itself, this didn't allow the connection to stay open and created a new problem that I couldn't connect to my pi-hole when connected to the VPN. What did work was changing the TUN mode service port to TCP port 443. Now, for whatever reason, I can stay connected to my VPN all the time and can also access the pi-hole remotely.
Just thought I'd share this since it's taken me days to work out and I wasnt able to find this solution anywhere.