From 5a778540da2fd2677fda2ba482090ee17d217b05 Mon Sep 17 00:00:00 2001 From: teastep Date: Sun, 23 Feb 2003 14:22:14 +0000 Subject: [PATCH] Tweak the comma-separated list parsing fix git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@466 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- Shorewall/firewall | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/Shorewall/firewall b/Shorewall/firewall index 2f5a88b78..2a8ac02f9 100755 --- a/Shorewall/firewall +++ b/Shorewall/firewall @@ -4174,6 +4174,8 @@ add_to_zone() # $1 = [:] $2 = zone # Normalize the first argument to this function # newhost="$interface:$host" + + terminator=fatal_error # # Create a new Zone state file # @@ -4203,18 +4205,6 @@ add_to_zone() # $1 = [:] $2 = zone # If the zone passed in the command has a dnat chain then insert a rule in # the nat table PREROUTING chain to jump to that chain when the source # matches the new host(s)# -# Setup Intrazone chain if appropriate -# -setup_intrazone() # $1 = zone -{ - eval hosts=\$${1}_hosts - - if have_interfaces_in_zone_with_option $1 multi; then - ensurechain ${1}2${1} - fi -} - - # chain=${zone}_dnat @@ -4406,6 +4396,8 @@ delete_from_zone() # $1 = [:] $2 = zone while read z hosts; do eval ${z}_hosts=\"$hosts\" done < ${STATEDIR}/zones + + terminator=fatal_error # # Delete any nat table entries for the host(s) #