From 08eed6d0b42273a3ddea9a412ddecedbe4210c1b Mon Sep 17 00:00:00 2001 From: teastep Date: Mon, 2 Sep 2002 17:39:46 +0000 Subject: [PATCH] Second try at DNAT fw ... fix git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@229 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- STABLE/firewall | 2 +- Shorewall/firewall | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/STABLE/firewall b/STABLE/firewall index 0cfc2a4ce..beea3f772 100755 --- a/STABLE/firewall +++ b/STABLE/firewall @@ -1536,7 +1536,7 @@ add_nat_rule() { # Generate nat table rules if [ "$source" = "$FW" ]; then - run_iptables -t nat -A OUTPUT $proto $sports -d addr \ + run_iptables -t nat -A OUTPUT $proto $sports -d $addr \ $multiport $dports -j $target1 else chain=`dnat_chain $source` diff --git a/Shorewall/firewall b/Shorewall/firewall index 6f402d493..7802817a6 100755 --- a/Shorewall/firewall +++ b/Shorewall/firewall @@ -1537,7 +1537,7 @@ add_nat_rule() { # Generate nat table rules if [ "$source" = "$FW" ]; then - run_iptables -t nat -A OUTPUT $proto $sports -d addr \ + run_iptables -t nat -A OUTPUT $proto $sports -d $addr \ $multiport $dports -j $target1 else chain=`dnat_chain $source`