From 3a4f17e70aed9dee00c415ccd17797f2d72a3f06 Mon Sep 17 00:00:00 2001 From: teastep Date: Wed, 8 Nov 2006 16:04:20 +0000 Subject: [PATCH] back out broken part of last change git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@4811 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- Shorewall/compiler | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Shorewall/compiler b/Shorewall/compiler index 1fcb612a8..feda9077c 100755 --- a/Shorewall/compiler +++ b/Shorewall/compiler @@ -3537,9 +3537,6 @@ setup_blacklist() { add_common_rules() { local savelogparms="$LOGPARMS" local broadcasts="$(find_broadcasts) 255.255.255.255 224.0.0.0/4" - local policy - - [ -n "$POLICY_MATCH" ] && policy="-m policy --pol $ipsec --dir in" || policy= # # Populate the smurf chain # @@ -3635,6 +3632,7 @@ __EOF__ for host in $hosts; do ipsec=${host%^*} host=${host#*^} + [ -n "$POLICY_MATCH" ] && policy="-m policy --pol $ipsec --dir in" || policy= interface=${host%%:*} network=${host#*:} @@ -3747,6 +3745,7 @@ __EOF__ for host in $hosts; do ipsec=${host%^*} host=${host#*^} + [ -n "$POLICY_MATCH" ] && policy="-m policy --pol $ipsec --dir in" || policy= interface=${host%%:*} networks=${host#*:}