diff --git a/README.md b/README.md index 7d090d2..e0799ae 100644 --- a/README.md +++ b/README.md @@ -83,10 +83,27 @@ ____ Example usage: +```bash +# create client config template +sudo tee /etc/wireguard/client.conf.default > /dev/null <<'EOF' +[Interface] + Address = clientaddr/32 + PrivateKey = clientprivkey + DNS = 1.1.1.1,8.8.8.8 # edit this line! +[Peer] + PublicKey = serverpublkey + AllowedIPs = 10.0.0.0/8,192.168.0.0/16 # edit this line! + Endpoint = server.public.address:51820 # edit this line! + PersistentKeepalive = 5 +EOF +``` + ```bash # download sudo wget https://git.hmp.today/pavel.muhortov/wireguard-management/raw/branch/master/wg-client-management.sh -O /etc/wireguard/wg-client-management.sh sudo chmod +x /etc/wireguard/wg-client-management.sh +# create log directory +sudo mkdir /var/log/wireguard ``` ```bash