Generate wireguard configs for Linux (wg-quick), OpenWRT and MikroTik devices
Install the required dependencies using
pip install -r requirements.txt
and just run the script in place.
Note that GuardMyWire uses the wg
executable to generate Wireguard keys and qrencode
. So it requires wg
to work at all and qrencode
to generate mobile QR codes!
First, you need to create your JSON config files. See the examples, e.g. Site2Site.json.
Then, run
python3 guardmywire.py my-config.json
This will generate a my-config
directory containing:
config
subdirectory containing wg-quick
config files (the "normal" WireGuard config files - also for the Windows clientkeys
subdirectory containing private, public and pre-shared keys for all the peersmikrotik
subdirectory containing files with MikroTik terminal commands to setup the interface. RouterOS v7 required (v6 does not support Wireguard!)mobile
subdirectory with mobile QR codes in both PNG and SVG formal