dch-gw: Host Pyrocufflink VPN locally

This commit adjusts the firewall and networking configuration on dc0 to
host the Pyrocufflink remote access IPsec VPN locally instead of
forwarding it to the internal VPN server.
This commit is contained in:
2018-05-20 13:00:46 -05:00
parent 42b8d2e54f
commit f8641cb912
6 changed files with 19 additions and 20 deletions

View File

@@ -1,5 +1,17 @@
table ip nat {
set vpn_subnets {
type ipv4_addr
flags interval
elements = {
172.31.0.64/28,
{% for prefix in firemon_networks %}
{{ prefix }},
{% endfor %}
}
}
chain postrouting {
ip daddr @vpn_subnets counter accept
oif {{ ansible_default_ipv4.interface }} masquerade
}
}