diff --git a/lib/iptables.inc b/lib/iptables.inc index 64a51a2..a03dd04 100644 --- a/lib/iptables.inc +++ b/lib/iptables.inc @@ -594,7 +594,7 @@ function enable_portfw { [[ ${intip} != "-" ]] && intdest="--to-destination ${intip}:${intport}" [[ ${interface} != "-" ]] && interface="-i ${interface}" [[ ${intip} != "-" ]] && intip="-d ${intip}" - [[ ${intport} != "-" ]] && intip="--dport ${intport}" + [[ ${intport} != "-" ]] && intport="--dport ${intport}" [[ ${address} != "-" ]] && address="-d ${address}" [[ ${srcaddress} != "-" ]] && srcaddress="-s ${srcaddress}"