From 4110f50003e70da2cbfbed37ceba022ea5c3e8ff Mon Sep 17 00:00:00 2001 From: "bbruns@gmail.com" Date: Sat, 5 Apr 2014 20:55:00 +0000 Subject: [PATCH] --- lib/iptables.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/iptables.inc b/lib/iptables.inc index 259415e..deecd29 100644 --- a/lib/iptables.inc +++ b/lib/iptables.inc @@ -363,7 +363,7 @@ function enable_nat { [[ ${dstaddress} == "-" ]] && dstaddress="" [[ ${srcaddress} == "-" ]] && srcaddress="" - ${VER_IPTABLES} -A ${NAT} ${srcinterface} ${srcaddress} ${dstinterface} ${dstaddress} ${action} + ${VER_IPTABLES} -A ${NAT} -t nat ${srcinterface} ${srcaddress} ${dstinterface} ${dstaddress} ${action} ${VER_IPTABLES} -A ${FwdFilter} ${M_STATE} ${C_STATE} RELATED,ESTABLISHED ${srcinterface} ${srcaddress} ${dstinterface} -j ACCEPT done < "${FWCONFIGDIR}/ipv${IPVER}/nat.conf" ${debug} ${DebugColor} "${FUNCNAME}:${DEFAULT_COLOR} done"