From ba05611498d67249106b77b29f79d8b30493ee8f Mon Sep 17 00:00:00 2001 From: teastep Date: Fri, 20 Dec 2002 21:10:53 +0000 Subject: [PATCH] Fix bad bug in find_hosts_by_option() git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@376 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- Shorewall/firewall | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Shorewall/firewall b/Shorewall/firewall index 0434609de..d0170aaab 100755 --- a/Shorewall/firewall +++ b/Shorewall/firewall @@ -1159,7 +1159,7 @@ find_hosts_by_option() # $1 = option for interface in $all_interfaces; do eval options=\$`chain_base ${interface}`_options - list_search $options && \ + list_search $1 $options && \ echo ${interface}:0.0.0.0/0 done } @@ -1679,8 +1679,7 @@ setup_nat() { qt ip addr del $external dev $interface fi - if [ -z "$allints" -o "$allints" = "Yes" \ - -o "$allints" = "yes" ] + if [ -z "$allints" -o "$allints" = "Yes" -o "$allints" = "yes" ] then addnatrule nat_in -d $external -j DNAT --to-destination $internal addnatrule nat_out -s $internal -j SNAT --to-source $external