script to create, delete, and list wg users for a server role.
init
- put all scripts on /usr/local/bin/ and make them executable;
- edit /usr/local/bin/wguser's top lines to meet your enviorment;
- first executing 'wguser add username' will be initilizing a directory of /etc/wireguard.
usage
- wguser add username
- wguser del username
- wguser list
- wguser list | grep peer_ip
- wguser list | grep username
enjoy.