mirror of
https://gitlab.com/shorewall/code.git
synced 2025-02-17 10:11:16 +01:00
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:
parent
74eb7d2918
commit
e2c84a21be
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user