From edc4bfde1752cefb42bb14d06a8d72ed2a9b2f83 Mon Sep 17 00:00:00 2001 From: maltalex Date: Fri, 9 Mar 2018 19:23:51 +0100 Subject: [PATCH] Added configurable MTU --- copyables/entrypoint.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/copyables/entrypoint.sh b/copyables/entrypoint.sh index d7450654..69aed251 100644 --- a/copyables/entrypoint.sh +++ b/copyables/entrypoint.sh @@ -32,6 +32,9 @@ else fi fi +: ${MTU:='1500'} +echo "# SecureNat MTU set to $MTU" + printf '# ' printf '=%.0s' {1..24} echo @@ -56,7 +59,7 @@ done # enable SecureNAT /usr/bin/vpncmd localhost /SERVER /CSV /HUB:DEFAULT /CMD SecureNatEnable - +/usr/bin/vpncmd localhost /SERVER /CSV /HUB:DEFAULT /CMD NatSet /MTU:$MTU /LOG:no /TCPTIMEOUT:3600 /UDPTIMEOUT:1800 # enable OpenVPN /usr/bin/vpncmd localhost /SERVER /CSV /CMD OpenVpnEnable yes /PORTS:1194