From dcb0e19acccbb068bb9421c2eff13f216792a35d Mon Sep 17 00:00:00 2001 From: Brielle Date: Thu, 9 Apr 2015 15:32:21 -0600 Subject: [PATCH] Fix 'all' option for mss clamp --- lib/iptables.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/iptables.inc b/lib/iptables.inc index 38e8c9c..76d938b 100644 --- a/lib/iptables.inc +++ b/lib/iptables.inc @@ -184,8 +184,8 @@ function enable_mss_clamp { [[ -z ${msssize} ]] && msssize="-" [[ ${msssize} != "-" ]] && msssize="--set-mss ${msssize}" [[ ${msssize} == "-" ]] && msssize="--clamp-mss-to-pmtu" - [[ ${interface} == "all" ]] && interface="" [[ ${interface} != "all" ]] && interface="-o ${interface}" + [[ ${interface} == "all" ]] && interface="" ${debug} ${DebugColor} "${FUNCNAME}:${DEFAULT_COLOR} Read: ${interface} ${mss} ${type} ${msssize}" ${VER_IPTABLES} -A ${type} -p tcp --tcp-flags SYN,RST SYN -j TCPMSS \ ${interface} -m tcpmss --mss ${mss} ${msssize}