forked from extern/shorewall_code
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:
parent
3362cce7c0
commit
20a23dc925
@ -4424,7 +4424,9 @@ activate_rules()
|
||||
subnet1=${host1#*:}
|
||||
|
||||
if list_search $host1 $source_hosts && ! list_search $host1 $routeback; then
|
||||
if [ `list_count $source_hosts` -gt 1 ]; then
|
||||
run_iptables -A $frwd_chain -s ! $subnet1 -o $interface1 -d $subnet1 -j $chain
|
||||
fi
|
||||
else
|
||||
run_iptables -A $frwd_chain -o $interface1 -d $subnet1 -j $chain
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user