dch-openvpn: Support road-warrior clients
Moving the route definitions to global scope, and defining an address pool, will allow other clients besides *dhatch-d4b* to connect to and use the OpenVPN tunnel service. This may be useful in situations where IPsec is blockedjenkins-master
parent
a1ca06a3c5
commit
b61070fea8
|
@ -2,5 +2,3 @@ ifconfig-push 172.30.0.210 255.255.255.240
|
||||||
{% for net in firemon_networks %}
|
{% for net in firemon_networks %}
|
||||||
iroute {{ net|ipaddr('network') }} {{ net|ipaddr('netmask') }}
|
iroute {{ net|ipaddr('network') }} {{ net|ipaddr('netmask') }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
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"
|
|
||||||
|
|
|
@ -12,9 +12,15 @@ 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
|
||||||
|
ifconfig-pool 172.30.0.216 172.30.0.222
|
||||||
{% for net in firemon_networks %}
|
{% for net in firemon_networks %}
|
||||||
route {{ net|ipaddr('network') }} {{ net|ipaddr('netmask') }} 172.30.0.210
|
route {{ net|ipaddr('network') }} {{ net|ipaddr('netmask') }} 172.30.0.210
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
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.64 255.255.255.240 172.30.0.209"
|
||||||
|
push "dhcp-option DNS 172.30.0.4"
|
||||||
|
push "dhcp-option DNS 172.30.0.3"
|
||||||
client-to-client
|
client-to-client
|
||||||
client-config-dir clients
|
client-config-dir clients
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue