What is the recommended way to switch between full and split tunnels using WireGuard? #1253
kris-anderson
started this conversation in
General
Replies: 1 comment 2 replies
-
Yes, this is the intended way and I'm happy that it works for you. Is there a way/process that you would find more convenient to do the switch? E.g. if you do the manual switch based on some condition that is predictable/automatable. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am currently using WireGuard to connect to my home network. Each of my devices needs it's own IP address assigned to it it, and I have 4 devices currently:
Within the WireGuard configuration, you need to specify the allowed IPs. For my split tunnel, I'll add something like
192.168.0.0/16
. For my full tunnel, I'll add0.0.0.0/0
.In order to do that though, I need 2 profiles for each of my devices, which means I now have 8 profiles in Passepartout synced between all my devices.
There's a Routing module in Passepartout, and from my testing, it looks like I can get down to 4 profiles, one for each device, by making use of this module. I can have WireGuard setup to use
192.168.0.0/16
for the allowed IPs, and in the Routing module, I can add0.0.0.0/0
. When I enable the Routing module, I seem to be full tunnel. With this setup, I only need 1 profile per device, and I can toggle the Routing module on or off depending on if I want split or full tunnel.I believe my understanding above is correct, but please correct me if any of that isn't true. :)
All that being said, is one of those methods preferred over another? Is there another method I haven't discovered that would be even better for switching between full and split tunnel?
Beta Was this translation helpful? Give feedback.
All reactions