This commit is contained in:
Maurice
2025-10-01 14:44:32 +02:00
parent 6c3919d860
commit b08e4809ac
5 changed files with 6 additions and 2 deletions

View File

@@ -19,7 +19,6 @@ wg genkey | tee /etc/wireguard/clients/keys/$CLIENT_NAME.priv.key | wg pubkey >
wg genpsk | tee /etc/wireguard/clients/keys/$CLIENT_NAME.psk.key
cat <<EOF >> /etc/wireguard/wg0.conf
[Peer]
PublicKey = $(cat /etc/wireguard/clients/keys/$CLIENT_NAME.pub.key)
PresharedKey = $(cat /etc/wireguard/clients/keys/$CLIENT_NAME.psk.key)

View File

@@ -1,4 +1,6 @@
#!/bin/sh
chmod +x add_client.sh
echo "Setting up Wireguard ..."
apk add wireguard-tools wireguard-tools-openrc