Simple Wireguard user manipulation CLI
Create /etc/wireguard
structure like in example.folder:
wg0/
users/
wg_head_template.txt
wg_user_template.txt
wg0.conf
Fill wg_head_template.txt
with server setup, fill wg_user_template.txt
with peer data ( and expand for each user).
./wg_cli.py list
./wg_cli.py add_user -n short_user_name -f "Full Name" -i <IP> -k Key
e.g.:
./wg_cli.py add_user -n jdoe -f "John Doe" -i 192.168.130.17 -k 7oLuxhVAbJIjZrQxLEErjZ0I0cj9qt0Qcqb+3DgqqRc=
./wg_cli.py del_user -n short_user_name
e.g.:
./wg_cli.py del_user -n jdoe