2016-11-15 01:33:17 +01:00
|
|
|
{%- set conf = pillar['openvpn'][name] %}
|
|
|
|
client
|
|
|
|
dev {{ name }}
|
|
|
|
dev-type tun
|
|
|
|
tun-ipv6
|
|
|
|
proto udp
|
|
|
|
|
|
|
|
remote {{ conf['server'] }}
|
|
|
|
resolv-retry infinite
|
|
|
|
nobind
|
|
|
|
|
|
|
|
user nobody
|
|
|
|
group nogroup
|
|
|
|
persist-key
|
|
|
|
persist-tun
|
|
|
|
|
|
|
|
log /var/log/openvpn-{{ name }}.log
|
|
|
|
|
|
|
|
#ifconfig-noexec
|
|
|
|
route 0.0.0.0 0.0.0.0
|
|
|
|
#route-nopull
|
2016-11-16 01:17:28 +01:00
|
|
|
up /etc/openvpn/{{ name }}.up
|
2016-11-15 01:33:17 +01:00
|
|
|
script-security 2
|
|
|
|
|
|
|
|
auth-user-pass /etc/openvpn/{{ name }}.auth
|
|
|
|
auth-retry nointeract
|
|
|
|
|
|
|
|
ca [inline]
|
|
|
|
|
|
|
|
tls-client
|
|
|
|
tls-auth [inline]
|
|
|
|
ns-cert-type server
|
|
|
|
|
|
|
|
keepalive 10 30
|
|
|
|
cipher AES-256-CBC
|
|
|
|
comp-lzo
|
|
|
|
|
|
|
|
|
|
|
|
passtos
|
2016-11-18 02:34:34 +01:00
|
|
|
verb 1
|
2016-11-15 01:33:17 +01:00
|
|
|
|
|
|
|
|
|
|
|
<ca>
|
|
|
|
{{ conf['ca'] }}
|
|
|
|
</ca>
|
|
|
|
|
|
|
|
<tls-auth>
|
|
|
|
{{ conf['key'] }}
|
|
|
|
</tls-auth>
|