Compare commits
2 Commits
88dd80e6fd
...
36675d0523
Author | SHA1 | Date |
---|---|---|
|
36675d0523 | |
|
07356697c8 |
|
@ -71,6 +71,8 @@ dch_networks:
|
||||||
|
|
||||||
firemon_networks:
|
firemon_networks:
|
||||||
- 192.168.0.0/16
|
- 192.168.0.0/16
|
||||||
|
- 172.16.0.0/20
|
||||||
|
- 172.24.16.0/20
|
||||||
- 172.28.33.0/24
|
- 172.28.33.0/24
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -24,12 +24,12 @@
|
||||||
mode=0755
|
mode=0755
|
||||||
state=directory
|
state=directory
|
||||||
- name: ensure openvpn client config files are set
|
- name: ensure openvpn client config files are set
|
||||||
copy:
|
template:
|
||||||
src={{ item }}
|
src={{ item }}
|
||||||
dest=/etc/openvpn/server/clients/{{ item|basename }}
|
dest=/etc/openvpn/server/clients/{{ (item|basename|splitext)[0] }}
|
||||||
mode=0640
|
mode=0640
|
||||||
notify: restart pyrocufflink openvpn server
|
notify: restart pyrocufflink openvpn server
|
||||||
with_fileglob: 'clients/*'
|
with_fileglob: '../templates/clients/*.j2'
|
||||||
|
|
||||||
- name: ensure openvpn ca certificate is installed
|
- name: ensure openvpn ca certificate is installed
|
||||||
copy:
|
copy:
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
ifconfig-push 172.30.0.210 255.255.255.240
|
ifconfig-push 172.30.0.210 255.255.255.240
|
||||||
iroute 192.168.0.0 255.255.0.0
|
{% for net in firemon_networks %}
|
||||||
iroute 172.16.0.0 255.255.240.0
|
iroute {{ net|ipaddr('network') }} {{ net|ipaddr('netmask') }}
|
||||||
iroute 172.28.33.0 255.255.255.0
|
{% endfor %}
|
||||||
push "route 172.30.0.0 255.255.255.192 172.30.0.209"
|
push "route 172.30.0.0 255.255.255.192 172.30.0.209"
|
||||||
push "route 172.31.0.0 255.255.255.224 172.30.0.209"
|
push "route 172.31.0.0 255.255.255.224 172.30.0.209"
|
|
@ -12,9 +12,9 @@ dh dh2048.pem
|
||||||
topology subnet
|
topology subnet
|
||||||
push "topology subnet"
|
push "topology subnet"
|
||||||
ifconfig 172.30.0.209 255.255.255.240
|
ifconfig 172.30.0.209 255.255.255.240
|
||||||
route 192.168.0.0 255.255.0.0 172.30.0.210
|
{% for net in firemon_networks %}
|
||||||
route 172.16.0.0 255.255.240.0 172.30.0.210
|
route {{ net|ipaddr('network') }} {{ net|ipaddr('netmask') }} 172.30.0.210
|
||||||
route 172.28.33.0 255.255.255.0 172.30.0.210
|
{% endfor %}
|
||||||
client-to-client
|
client-to-client
|
||||||
client-config-dir clients
|
client-config-dir clients
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue