Re-add optimization for complex zones

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@771 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2003-10-19 14:57:48 +00:00
parent 3362cce7c0
commit 20a23dc925

View File

@ -4424,7 +4424,9 @@ activate_rules()
subnet1=${host1#*:} subnet1=${host1#*:}
if list_search $host1 $source_hosts && ! list_search $host1 $routeback; then if list_search $host1 $source_hosts && ! list_search $host1 $routeback; then
run_iptables -A $frwd_chain -s ! $subnet1 -o $interface1 -d $subnet1 -j $chain if [ `list_count $source_hosts` -gt 1 ]; then
run_iptables -A $frwd_chain -s ! $subnet1 -o $interface1 -d $subnet1 -j $chain
fi
else else
run_iptables -A $frwd_chain -o $interface1 -d $subnet1 -j $chain run_iptables -A $frwd_chain -o $interface1 -d $subnet1 -j $chain
fi fi