Give '2all' exclusion chains short names; fix bug

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@4706 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2006-10-19 15:13:58 +00:00
parent 74eb7d2918
commit e2c84a21be

View File

@ -4298,13 +4298,18 @@ activate_rules()
fi
;;
*2all)
chain1=${chain}_${zone1}_ex
if ! havechain $chain1; then
eval chain1=\$${chain}_${zone1}_ex
if [ -z "$chain1" ]; then
chain1=excl_${EXCLUSION_SEQ}
EXCLUSION_SEQ=$(( $EXCLUSION_SEQ + 1 ))
eval ${chain}_${zone}_ex=$chain1
createchain $chain1 no
insert_exclusions filter $chain1 $exclusions1
run_iptables -A $chain1 -j $chain
chain=$chain1
fi
chain=$chain1
;;
*)
insert_exclusions filter $chain $exclusions1