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