Skip to content

Instantly share code, notes, and snippets.

View fasmat's full-sized avatar

Matthias Fasching fasmat

View GitHub Profile
@fasmat
fasmat / wg_client.sh
Created February 13, 2021 16:09
A short shell script to manage wireguard clients
#!/bin/bash
show_usage() {
echo "Usage: $0 [list|add|show|remove] [client_name]"
echo " list lists all registered peers"
echo " add adds a new client with the given name to wireguard"
echo " show shows the wireguard configuration for the client with the given name"
echo " remove removes a client from wireguard"
}