Expose AllowedIPs settings inside setupVars.conf

This commit is contained in:
Orazio 2020-11-14 09:35:51 +01:00
parent 443ef51e29
commit 3ed54bf71d
2 changed files with 5 additions and 1 deletions

View file

@ -110,7 +110,7 @@ echo "[Peer]
PublicKey = $(cat keys/server_pub)
PresharedKey = $(cat "keys/${CLIENT_NAME}_psk")
Endpoint = ${pivpnHOST}:${pivpnPORT}
AllowedIPs = 0.0.0.0/0, ::0/0" >> "configs/${CLIENT_NAME}.conf"
AllowedIPs = ${ALLOWED_IPS}" >> "configs/${CLIENT_NAME}.conf"
echo "::: Client config generated"
echo "### begin ${CLIENT_NAME} ###