Wireguard switcher
Small helper program to quickly switch between
wireguard config files.
Usage
There are curently two commands supported:
All commands expect a folder to be configured with
the -f
flag. If this flag is not present, the
current folder will be taken as config base.
Config folder are searched recursively for .conf
wireguard configuration files.
random
This will choose a random configuration from the
configured config folder and terminate any other
active config from that folder.
off
Terminates all active configs from the configured
folder.
Examples
Switch off all configs from a folder
wireguard-switcher -f ~/wireguard-configs off
Switch to a random config from a folder
wireguard-switcher -f ~/wireguard-configs random
Dependencies