Skip to content

Commit

Permalink
Merge pull request #41 from maltalex/master
Browse files Browse the repository at this point in the history
Added configurable MTU
  • Loading branch information
siomiz authored Mar 15, 2018
2 parents 319cd96 + edc4bfd commit faa1828
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion copyables/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ else
fi
fi

: ${MTU:='1500'}
echo "# SecureNat MTU set to $MTU"

printf '# '
printf '=%.0s' {1..24}
echo
Expand All @@ -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

Expand Down

0 comments on commit faa1828

Please sign in to comment.