Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
Virtual private networks
»
Wireguard on laptop
« previous
next »
Print
Pages: [
1
]
Author
Topic: Wireguard on laptop (Read 843 times)
opn_support
Newbie
Posts: 8
Karma: 0
Wireguard on laptop
«
on:
October 28, 2022, 05:20:35 pm »
How-to configure the Wireguard setup, that when a laptop is out of the local network it can access the environment but when the laptop is locally it will not use the wireguard tunnel?
It looks like the current setup only allows you to have all the data go through the tunnel (even if you're on the local network) or only provide allowed IPs and the the local of the other traffic will not go through the tunnel.
Is there some auto enable disable of the client that can detect is it's on a local network or not?
Logged
tiermutter
Hero Member
Posts: 1097
Karma: 61
Re: Wireguard on laptop
«
Reply #1 on:
October 28, 2022, 05:24:36 pm »
Afaik WG has no such option to override VPN for direct reachable networks like OVPN provides.
I guess the only way is to disable/ enable the tunnel manually.
Logged
i am not an expert... just trying to help...
Greelan
Hero Member
Posts: 1028
Karma: 72
Re: Wireguard on laptop
«
Reply #2 on:
October 29, 2022, 04:39:51 pm »
That would be a client side thing.
For example, the WG app for iOS has an “on-demand activation” setting that automatically starts the VPN if the device is on cellular and/or wifi, with the ability with wifi to specify only specific SSIDs to trigger it or exclude specific SSIDs from triggering it.
Logged
tiermutter
Hero Member
Posts: 1097
Karma: 61
Re: Wireguard on laptop
«
Reply #3 on:
October 29, 2022, 04:45:32 pm »
For Android I am using "automate" to toggle WG on/off when connected/disconnected from home WLAN.
Depending on your OS this may be possible for you too. Maybe a script will work to change the routing table, excluding the LANs subnet from being routed through WG when connected to the home LAN.
Logged
i am not an expert... just trying to help...
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
Virtual private networks
»
Wireguard on laptop