Quick VPN toggle or other method for dealing with VPN blocks?

Hi all! New OpenWrt user here.

I recently received and set up my OpenWrt One, and one of the things I configured is a Wireguard VPN on the router itself following this guide from my VPN provider (Proton). Before, I used to have installed on my devices.

Whenever I encountered some problems due to the VPN (i.e. some pages or services that detect it and block my connection until I disable the VPN), I could quickly switch off the VPN through the app or some setting on my system. However, now that I configured it on the router itself, I'm not sure how to do that anymore.

Maybe that's the tradeoff for having the VPN there, I don't know. Since I'm quite new to this, I guess my questions are:

  • What's the best method for dealing with these types of situations?
  • Is is possible to switch the VPN on/off on demand through some command or LuCI setting?
  • Or should I configure different networks, one using the VPN and the other without, or something like that?

Thanks for your help!

You can use Policy based Routing to permanently route things you want through the wan.

But if you want a quick way to toggle vpn on and off e.g with your phone have a look at:

I use an app on my phone e.g connectbot which login with a key and executes the wireguard companion script on startup so I have more or less a one button start of the script