From 55c12bbb168d8fa5355ed6421bd9085692e1e5ed Mon Sep 17 00:00:00 2001 From: Pavel Muhortov Date: Thu, 17 Aug 2023 09:36:42 +0300 Subject: [PATCH] add client config template --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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