Solution to Keep Tunnel Open on Home Network

Samples of working configurations.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
ChiefZack17
OpenVpn Newbie
Posts: 1
Joined: Sun Aug 09, 2020 6:39 pm

Solution to Keep Tunnel Open on Home Network

Post by ChiefZack17 » 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.

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: Solution to Keep Tunnel Open on Home Network

Post by TinCanTech » Sun Aug 09, 2020 7:31 pm

So you have no idea what you did or why it works ..

This belongs in Examples as "a bad example" ..

User avatar
Pippin
Forum Team
Posts: 1200
Joined: Wed Jul 01, 2015 8:03 am
Location: irc://irc.libera.chat:6697/openvpn

Re: Solution to Keep Tunnel Open on Home Network

Post by Pippin » Sun Aug 09, 2020 7:43 pm

This works on your network, doesn't mean it works for other networks.

Still, moved to examples ;)
I gloomily came to the ironic conclusion that if you take a highly intelligent person and give them the best possible, elite education, then you will most likely wind up with an academic who is completely impervious to reality.
Halton Arp

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: Solution to Keep Tunnel Open on Home Network

Post by TinCanTech » Sun Aug 09, 2020 10:03 pm

It will work anywhere ... regardless.

And it would work anyway without using TCP.

This is a solution to a problem that does not exist.

Post Reply