wireguard-switcher

module
v0.0.0-...-b0b1d78 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 25, 2021 License: GPL-2.0

README

Wireguard switcher

Small helper program to quickly switch between wireguard config files.

Usage

There are curently two commands supported:

  • random
  • off

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

  • Wiregurad
  • wg-quick

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL