OPNsense Forum

English Forums => Virtual private networks => Topic started by: kermitxyz on March 19, 2026, 11:29:39 PM

Title: Wireguard VPN on mobile when inside LAN
Post by: kermitxyz on March 19, 2026, 11:29:39 PM
I have a wireguard VPN on my mobile which connects to OPNSense over 5G when I am away.  This works fine.  But, when I am back and the phone connects to the LAN via WiFi and the phone no longer connects to servers etc.

I understand that I need to do something to make this work, so I can just leave the VPN client connected all the time.  It would be much easier than having to manually turn the VPN client on and off every time I go out / come home.

Please could anyone help with this?  Is this best practice? 
Title: Re: Wireguard VPN on mobile when inside LAN
Post by: vimage22 on March 20, 2026, 12:25:00 PM
On my android phone, I noticed this as well. There was a preference to 'allow other apps to trigger wireguard', or something to that effect. I believe this defaulted to "on". It is off now, and have not noticed an auto connect. In my case, I prefer to manually activate when away.
If you lose functionality on LAN, you need to look at how "Endpoint address" is configured, on the phone. Does it route all traffic, or just LAN traffic?