Hi, it would be great if HA could control the Fritz VPN (in my case WireGuard) and turn it on/off. This way I could use HA to put the VPN control on a button (like the Ikea on/off battery button). My wife would be very happy to not have to log in to Fritz, navigate to VPN menus, to toggle the VPN. Unfortunately, not even the Fritz Android app has a shortcut to the VPN control. Need to log in to Fritz. Thanks a lot for all the great work!
why do you want to switch it on or off? should not the wireguard setting on the device which connects to the fritzbox takes care to switch the vpn on or off?
Deluxestyle is correct, you don’t need to switch WG on/off on your fritzbox.
You setup a WG connection on the fritzbox (once), you use those the associated codes to setup WG on an iPhone/Android phone (need to install WG app for this).
Now with the phone you can establish the vpn connection (switch it on/off), no need to login to your fritzbox anymore.
I signed up to this forum to ask the same question. I have the same need; I want an easy toggle to switch the WG tunnel on/off.
This Wireguard tunnel is switched on on the Router itself, and goes to a VPN provider, so that all Internet traffic to the router is encrypted, and all devices connected to it are using the same VPN.
Is there any way to get a toggle for that?
You are mistaken, there is no VPN provider in between.
You setup wireguard in your Fritzbox for a particular device, you share the key that is created with that device (like an iPhone).
If you now activate the VPN connection (ie wireguard) on your iPhone, it establishes a direct VPN link between your device and your Fritzbox, there is no VPN provider in between.
To disconnect, you switch off the VPN connection on your device (breaks the link between your device and your Fritzbox)
So there is no need to switch off the VPN connection on your Fritzbox.
Again, you only need the Fritzbox once, to configure the initial wireguard setup.
(I’m using this now for about two years, never had to look at my Fritzbox to do any “switching”.)
Hope this is helpful.
Sorry, but no. You refer to a connection between a mobile device and the router.
I am talking about a tunnel from the router to a VPN service, which is different. If I enable that VPN service on the router (I need to do that in the web interface), then all my devices inside my home network will connect through the tunnel of the VPN provider to the outside world. These devices do not need to have any VPN client running.
Sometimes I want to disable that VPN service because it can cause some connection issues (streaming services or banking). It would be great to have a single button for that in HA. I hope I explained it clearer now.