Updates
This commit is contained in:
@@ -30,6 +30,7 @@ cat <<EOF > /etc/wireguard/clients/$CLIENT_NAME.conf
|
||||
[Interface]
|
||||
Address = $NEXT_IP/24
|
||||
PrivateKey = $(cat /etc/wireguard/clients/keys/$CLIENT_NAME.priv.key)
|
||||
DNS = 10.0.0.1 # DNS via the VPN
|
||||
|
||||
# $CLIENT_NAME configuration
|
||||
[Peer]
|
||||
|
||||
@@ -12,6 +12,7 @@ cat <<EOF > /etc/wireguard/wg0.conf
|
||||
PrivateKey = $(cat /etc/wireguard/server_priv.key)
|
||||
Address = 10.0.0.1/24 # Server has IP in the wg network
|
||||
ListenPort = 51820
|
||||
DNS = 192.168.2.22 # AdGuard DNS server IP
|
||||
EOF
|
||||
|
||||
# Enable IP forwarding, persistent
|
||||
|
||||
4
services/wireguard/update.sh
Normal file
4
services/wireguard/update.sh
Normal file
@@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
if [ "$1" = "reload" ]; then
|
||||
rc-service wg-quick.wg0 restart
|
||||
fi
|
||||
Reference in New Issue
Block a user