mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-20 17:58:07 +02:00
Fix exclusion in the SUBNET column
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@4611 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
0634e10073
commit
43627eee14
@ -236,6 +236,7 @@ __EOF__
|
|||||||
proto=
|
proto=
|
||||||
ports=
|
ports=
|
||||||
policy=
|
policy=
|
||||||
|
detectinterface=
|
||||||
|
|
||||||
[ -n "$nomasq" ] && source="$source except $nomasq"
|
[ -n "$nomasq" ] && source="$source except $nomasq"
|
||||||
;;
|
;;
|
||||||
@ -260,7 +261,7 @@ for network in \$networks; do
|
|||||||
__EOF__
|
__EOF__
|
||||||
for destnet in $(separate_list $destnets); do
|
for destnet in $(separate_list $destnets); do
|
||||||
indent >&3 << __EOF__
|
indent >&3 << __EOF__
|
||||||
run_iptables -t nat -A $chain -s \$network $(dest_ip_range $destnet) $proto $sports $policy -j $netchain
|
run_iptables -t nat -A $chain -s \$network $(dest_ip_range $destnet) $proto $ports $policy -j $newchain
|
||||||
__EOF__
|
__EOF__
|
||||||
done
|
done
|
||||||
indent >&3 << __EOF__
|
indent >&3 << __EOF__
|
||||||
@ -279,6 +280,7 @@ __EOF__
|
|||||||
proto=
|
proto=
|
||||||
ports=
|
ports=
|
||||||
policy=
|
policy=
|
||||||
|
detectinterface=
|
||||||
source="$source except $nomasq"
|
source="$source except $nomasq"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user