From 9dcbdf02ae1555abd735748b9a037cc687a32e62 Mon Sep 17 00:00:00 2001 From: syrok0010 Date: Mon, 28 Mar 2022 18:47:05 +0300 Subject: [PATCH] Add keep alive to clients --- wireguard-install.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/wireguard-install.sh b/wireguard-install.sh index 9126172..a5835b9 100644 --- a/wireguard-install.sh +++ b/wireguard-install.sh @@ -310,6 +310,7 @@ DNS = ${CLIENT_DNS_1},${CLIENT_DNS_2} PublicKey = ${SERVER_PUB_KEY} PresharedKey = ${CLIENT_PRE_SHARED_KEY} Endpoint = ${ENDPOINT} +PersistentKeepalive = 20 AllowedIPs = 0.0.0.0/0,::/0" >>"${HOME_DIR}/${SERVER_WG_NIC}-client-${CLIENT_NAME}.conf" # Add the client as a peer to the server