Updates
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
#!/bin/sh
|
||||
chmod +x add_client.sh
|
||||
|
||||
echo "Setting up Wireguard ..."
|
||||
apk add wireguard-tools wireguard-tools-openrc
|
||||
|
||||
|
||||
Reference in New Issue
Block a user