From c2fe6eb39cd7086692a5c424a1651a4b01b51b56 Mon Sep 17 00:00:00 2001 From: Brielle Date: Mon, 25 Apr 2016 17:06:52 -0600 Subject: [PATCH] Fix for mss clamping --- lib/iptables.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/iptables.inc b/lib/iptables.inc index 658b15c..ffcd6a4 100644 --- a/lib/iptables.inc +++ b/lib/iptables.inc @@ -188,6 +188,7 @@ function enable_mss_clamp { [[ ${msssize} == "-" ]] && msssize="--clamp-mss-to-pmtu" #[[ ${interface} != "all" ]] && interface="-o ${interface}" [[ ${type} == "${OutFilter}" ]] && interface="-o ${interface}" + [[ ${type} == "${FwdFilter}" ]] && interface="-o ${interface}" [[ ${isallinterfaces} == "yes" ]] && interface="" ${debug} ${DebugColor} "${FUNCNAME}:${DEFAULT_COLOR} Read: ${interface} ${mss} ${type} ${msssize}" ${VER_IPTABLES} -A ${type} -p tcp --tcp-flags SYN,RST SYN -j TCPMSS \