mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-15 04:04:10 +01:00
Refine masq destination list code
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@1086 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
d362f734d9
commit
c07e450d5a
@ -3825,12 +3825,14 @@ setup_masq()
|
|||||||
chain=$newchain
|
chain=$newchain
|
||||||
destnets=0.0.0.0/0
|
destnets=0.0.0.0/0
|
||||||
|
|
||||||
for addr in `separate_list $nomasq`; do
|
if [ -n "$nonmasq" ]; then
|
||||||
addnatrule $chain -s $addr -j RETURN
|
for addr in `separate_list $nomasq`; do
|
||||||
done
|
addnatrule $chain -s $addr -j RETURN
|
||||||
|
done
|
||||||
|
source="$source except $nomasq"
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
|
||||||
if [ -n "$nomasq" ]; then
|
if [ -n "$nomasq" ]; then
|
||||||
newchain=masq${masq_seq}
|
newchain=masq${masq_seq}
|
||||||
createnatchain $newchain
|
createnatchain $newchain
|
||||||
|
Loading…
Reference in New Issue
Block a user