Update comments

Added PersistentKeepalive option
This commit is contained in:
Teddysun 2021-04-05 13:55:44 +09:00
parent 605837ca5e
commit 26090ded9d
No known key found for this signature in database
GPG Key ID: 09BD4C080AD6C46D

View File

@ -453,6 +453,7 @@ PrivateKey = ${SERVER_PRIVATE_KEY}
PublicKey = ${CLIENT_PUBLIC_KEY} PublicKey = ${CLIENT_PUBLIC_KEY}
AllowedIPs = ${CLIENT_WG_IPV4}/32,${CLIENT_WG_IPV6}/128 AllowedIPs = ${CLIENT_WG_IPV4}/32,${CLIENT_WG_IPV6}/128
PresharedKey = ${CLIENT_PRE_SHARED_KEY} PresharedKey = ${CLIENT_PRE_SHARED_KEY}
PersistentKeepalive = 25
EOF EOF
else else
cat > /etc/wireguard/${SERVER_WG_NIC}.conf <<EOF cat > /etc/wireguard/${SERVER_WG_NIC}.conf <<EOF
@ -465,6 +466,7 @@ PrivateKey = ${SERVER_PRIVATE_KEY}
PublicKey = ${CLIENT_PUBLIC_KEY} PublicKey = ${CLIENT_PUBLIC_KEY}
AllowedIPs = ${CLIENT_WG_IPV4}/32 AllowedIPs = ${CLIENT_WG_IPV4}/32
PresharedKey = ${CLIENT_PRE_SHARED_KEY} PresharedKey = ${CLIENT_PRE_SHARED_KEY}
PersistentKeepalive = 25
EOF EOF
fi fi
chmod 600 /etc/wireguard/${SERVER_WG_NIC}.conf chmod 600 /etc/wireguard/${SERVER_WG_NIC}.conf