roles/dch-openvpn-server: Use firemon_networks
The routes to FireMon networks are now defined using the `firemon_networks` Ansible variable. The global `iroute` and client-specific `route` options are generated from the CIDR blocks specified in this list.
This commit is contained in:
@@ -12,9 +12,9 @@ dh dh2048.pem
|
||||
topology subnet
|
||||
push "topology subnet"
|
||||
ifconfig 172.30.0.209 255.255.255.240
|
||||
route 192.168.0.0 255.255.0.0 172.30.0.210
|
||||
route 172.16.0.0 255.255.240.0 172.30.0.210
|
||||
route 172.28.33.0 255.255.255.0 172.30.0.210
|
||||
{% for net in firemon_networks %}
|
||||
route {{ net|ipaddr('network') }} {{ net|ipaddr('netmask') }} 172.30.0.210
|
||||
{% endfor %}
|
||||
client-to-client
|
||||
client-config-dir clients
|
||||
|
||||
|
||||
Reference in New Issue
Block a user