diff --git a/wireguard.sh b/wireguard.sh index 6d79182..9a60cda 100644 --- a/wireguard.sh +++ b/wireguard.sh @@ -453,6 +453,7 @@ PrivateKey = ${SERVER_PRIVATE_KEY} PublicKey = ${CLIENT_PUBLIC_KEY} AllowedIPs = ${CLIENT_WG_IPV4}/32,${CLIENT_WG_IPV6}/128 PresharedKey = ${CLIENT_PRE_SHARED_KEY} +PersistentKeepalive = 25 EOF else cat > /etc/wireguard/${SERVER_WG_NIC}.conf <