forked from extern/shorewall_code
Optimize generation of IPSEC jumps to zone forward chain
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@1703 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
48732a2dae
commit
1765308c88
@ -6244,14 +6244,13 @@ activate_rules()
|
||||
createchain $frwd_chain No
|
||||
|
||||
if [ -n "$POLICY_MATCH" ]; then
|
||||
eval source_hosts=\$${zone}_hosts
|
||||
eval source_hosts=\$${zone}_ipsec_hosts
|
||||
|
||||
for host in $source_hosts; do
|
||||
interface=${host%%:*}
|
||||
networks=${host#*:}
|
||||
|
||||
is_ipsec_host $zone $host && \
|
||||
run_iptables -A $(forward_chain $interface) $(match_source_hosts $networks) $(match_ipsec_in $zone $host) -j $frwd_chain
|
||||
run_iptables -A $(forward_chain $interface) $(match_source_hosts $networks) $(match_ipsec_in $zone $host) -j $frwd_chain
|
||||
done
|
||||
fi
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user