mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-01 23:45:53 +02: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
|
fi
|
||||||
;;
|
;;
|
||||||
*2all)
|
*2all)
|
||||||
chain1=${chain}_${zone1}_ex
|
eval chain1=\$${chain}_${zone1}_ex
|
||||||
if ! havechain $chain1; then
|
|
||||||
|
if [ -z "$chain1" ]; then
|
||||||
|
chain1=excl_${EXCLUSION_SEQ}
|
||||||
|
EXCLUSION_SEQ=$(( $EXCLUSION_SEQ + 1 ))
|
||||||
|
eval ${chain}_${zone}_ex=$chain1
|
||||||
createchain $chain1 no
|
createchain $chain1 no
|
||||||
insert_exclusions filter $chain1 $exclusions1
|
insert_exclusions filter $chain1 $exclusions1
|
||||||
run_iptables -A $chain1 -j $chain
|
run_iptables -A $chain1 -j $chain
|
||||||
chain=$chain1
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
chain=$chain1
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
insert_exclusions filter $chain $exclusions1
|
insert_exclusions filter $chain $exclusions1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user