From f13c0fc66c34899fcd85287a1e0f92b3dcb48a69 Mon Sep 17 00:00:00 2001 From: Brielle Date: Fri, 29 May 2015 11:47:15 -0600 Subject: [PATCH] Oops, mss clamp not allowed on input chain --- lib/iptables.inc | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/iptables.inc b/lib/iptables.inc index 16abaaf..faa69d9 100644 --- a/lib/iptables.inc +++ b/lib/iptables.inc @@ -183,12 +183,10 @@ function enable_mss_clamp { [[ ${type} == "-" ]] && type="out" [[ ${type} == "out" ]] && type="${OutFilter}" [[ ${type} == "fwd" ]] && type="${FwdFilter}" - [[ ${type} == "in" ]] && type="${InFilter}" [[ -z ${msssize} ]] && msssize="-" [[ ${msssize} != "-" ]] && msssize="--set-mss ${msssize}" [[ ${msssize} == "-" ]] && msssize="--clamp-mss-to-pmtu" #[[ ${interface} != "all" ]] && interface="-o ${interface}" - [[ ${type} == "${InFilter}" ]] && interface="-i ${interface}" [[ ${type} == "${OutFilter}" ]] && interface="-o ${interface}" [[ ${isallinterfaces} == "yes" ]] && interface="" ${debug} ${DebugColor} "${FUNCNAME}:${DEFAULT_COLOR} Read: ${interface} ${mss} ${type} ${msssize}"