scripts/start.sh aktualisiert
This commit is contained in:
@@ -54,7 +54,7 @@ create_peer() {
|
||||
[Peer] # Client ${1}
|
||||
PublicKey = ${2}
|
||||
$(if [ ! -z "${3}}" ]; then echo "PresharedKey = ${3}"; fi)
|
||||
AllowedIPs = ${SERVER_IP%.*}.${1}/32
|
||||
AllowedIPs = ${WG_NET_IP%.*}.${1}/32
|
||||
|
||||
EOF
|
||||
}
|
||||
@@ -65,7 +65,7 @@ create_config() {
|
||||
fi
|
||||
cat <<EOF > ${DATA_DIR}/wg${WG_CONFIG_ID}/client/peer${1}.conf
|
||||
[Interface]
|
||||
Address = ${SERVER_IP%.*}.${1}/32
|
||||
Address = ${WG_NET_IP%.*}.${1}/32
|
||||
PrivateKey = ${1}
|
||||
|
||||
[Peer]
|
||||
|
Reference in New Issue
Block a user