GuardMyWire
GuardMyWire copied to clipboard
Generate wireguard configs for Linux and MikroTik devices
GuardMyWire
Generate wireguard configs for Linux (wg-quick), OpenWRT and MikroTik devices
Installation
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!
Howto use
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:
- A
configsubdirectory containingwg-quickconfig files (the "normal" WireGuard config files - also for the Windows client - A
keyssubdirectory containing private, public and pre-shared keys for all the peers - A
mikrotiksubdirectory containing files with MikroTik terminal commands to setup the interface. RouterOS v7 required (v6 does not support Wireguard!) - A
mobilesubdirectory with mobile QR codes in both PNG and SVG formal