diff --git a/lib/iptables.inc b/lib/iptables.inc index 0cda933..85fda2e 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 ${intdst} + ${VER_IPTABLES} -A ${PortForward} ${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"