A Tool of auto configuration generator of Wireguard.
- Automatrically select IP from the network pool assigned to client
- Full-mesh network configuration
-
prerequest:
- clone the code into local directory:
git clone https://github.com/TerenceLiu98/wgtools.git - install the requirement:
python -m pip install -r requirements.txt - install the wireguard before using the tool
- clone the code into local directory:
-
configuration:
- new a ipv4 pool:
python add.py network wg0 - new (a) peer(s):
python add.py node wg0 node1+python add.py node wg0 node2+python add.py node wg0 node3 - check the information:
cat wg0.conf - modify the endpoint:
python modify.py wg0 node1 Endpoint 1.1.1.1 - generate configuration for each node:
- this can directly generate all nodes' configuration:
python generate.py wg0 - generate configuration for each node:
python generate.py wg0 node1+python genenrate.py wg0 node2+python generate wg0 node3
- this can directly generate all nodes' configuration:
- new a ipv4 pool:
-
script
- copy the configuration to the machine
- use
wg-quickto quick start the wireguard - check the connectivity via `ping