From 127230fd384531d8e45c586073614a6c215fc66d Mon Sep 17 00:00:00 2001 From: "bbruns@gmail.com" Date: Sun, 27 Jul 2014 21:49:13 +0000 Subject: [PATCH] fixes --- lib/iptables.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/iptables.inc b/lib/iptables.inc index 976360d..930a49b 100644 --- a/lib/iptables.inc +++ b/lib/iptables.inc @@ -182,12 +182,12 @@ function enable_mss_clamp { [[ ${type} == "out" ]] && type="${OutFilter}" [[ ${type} == "fwd" ]] && type="${FwdFilter}" [[ -z ${msssize} ]] && msssize="-" - [[ ${msssize} == "-" ]] && msssize="--clamp-mss-to-pmtu" [[ ${msssize} != "-" ]] && msssize="--set-mss ${msssize}" + [[ ${msssize} == "-" ]] && msssize="--clamp-mss-to-pmtu" ${debug} ${DebugColor} "${FUNCNAME}:${DEFAULT_COLOR} Read: ${interface} ${mss} ${type} ${msssize}" ${VER_IPTABLES} -A ${type} -p tcp --tcp-flags SYN,RST SYN -j TCPMSS \ -o ${interface} -m tcpmss --mss ${mss} ${msssize} - unset mss msssize interface type + unset interface mss type msssize done < "${FWCONFIGDIR}/ipv${IPVER}/mss-clamp.conf" ${debug} ${DebugColor} "${FUNCNAME}:${DEFAULT_COLOR} done"