From db24e79ddd30a5e801ab733b19bd1a74f7b285ec Mon Sep 17 00:00:00 2001 From: bbruns Date: Sun, 6 Apr 2014 18:48:48 +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 85fda2e..c30dc87 100644 --- a/lib/iptables.inc +++ b/lib/iptables.inc @@ -552,7 +552,7 @@ function enable_portfw { [[ ${address} == "-" ]] && address="" [[ ${srcaddress} == "-" ]] && srcaddress="" - ${VER_IPTABLES} -A ${PortForward} ${protocol} ${service} ${interface} ${address} ${srcaddress} -j DNAT ${intdest} + ${VER_IPTABLES} -A ${PortForward} -t nat ${protocol} ${service} ${interface} ${address} ${srcaddress} -j DNAT ${intdest} ${VER_IPTABLES} -A ${InFilter} ${protocol} ${service} ${interface} ${address} ${srcaddress} ${conntrack_state} -j ACCEPT done < "${FWCONFIGDIR}/ipv${IPVER}/portfw.conf"