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:
teastep 2004-01-22 03:27:03 +00:00
parent d362f734d9
commit c07e450d5a

View File

@ -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