From ebd37bd763c4f0ccda55b8d6334545152636e4e0 Mon Sep 17 00:00:00 2001 From: bbruns Date: Sun, 6 Apr 2014 18:45:49 +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 b805dba..0cda933 100644 --- a/lib/iptables.inc +++ b/lib/iptables.inc @@ -540,7 +540,7 @@ function enable_portfw { # Do some creative work with variables to make building the iptables rules fairly painless [[ ${service} != "-" ]] && service="--dport ${service}" [[ ${protocol} != "-" ]] && protocol="-p ${protocol}" - [[ ${intip} != "-" ]] && intdest="--to ${intip}:${intport}" + [[ ${intip} != "-" ]] && intdest="--to-destination ${intip}:${intport}" ([[ ${interface} != "-" ]] && [[ ${interface} != "" ]]) && interface="-i ${interface}" ([[ ${address} != "-" ]] && [[ ${address} != "" ]]) && address="-d ${address}" ([[ ${srcaddress} != "-" ]] && [[ ${srcaddress} != "" ]]) && srcaddress="-s ${srcaddress}"