mirror of
https://gitlab.com/shorewall/code.git
synced 2025-02-05 12:29:18 +01:00
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,13 +6244,12 @@ activate_rules()
|
|||||||
createchain $frwd_chain No
|
createchain $frwd_chain No
|
||||||
|
|
||||||
if [ -n "$POLICY_MATCH" ]; then
|
if [ -n "$POLICY_MATCH" ]; then
|
||||||
eval source_hosts=\$${zone}_hosts
|
eval source_hosts=\$${zone}_ipsec_hosts
|
||||||
|
|
||||||
for host in $source_hosts; do
|
for host in $source_hosts; do
|
||||||
interface=${host%%:*}
|
interface=${host%%:*}
|
||||||
networks=${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
|
done
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user