From 19823df89a98bc34bab491e9efc5a96b52a1b709 Mon Sep 17 00:00:00 2001 From: Henry N Date: Thu, 26 Mar 2020 20:11:09 +0100 Subject: [PATCH] Add explicit-exit-notify for UDP For faster reconnects with UDP is better to send the the explicit-exit-notify to server. With this the server can directly see, that the client will exit. --- openvpn-install.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/openvpn-install.sh b/openvpn-install.sh index d6508b2..c84ae48 100755 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -961,6 +961,7 @@ WantedBy=multi-user.target" > /etc/systemd/system/iptables-openvpn.service echo "client" > /etc/openvpn/client-template.txt if [[ "$PROTOCOL" = 'udp' ]]; then echo "proto udp" >> /etc/openvpn/client-template.txt + echo "explicit-exit-notify" >> /etc/openvpn/client-template.txt elif [[ "$PROTOCOL" = 'tcp' ]]; then echo "proto tcp-client" >> /etc/openvpn/client-template.txt fi