2020-11-17 12:48:26 -05:00
|
|
|
{{- range $server := .Hosts }}
|
2021-02-20 07:48:41 -05:00
|
|
|
remote {{ $server.Host }} {{ $server.Port }} {{ $server.Protocol }}
|
2020-11-17 12:48:26 -05:00
|
|
|
{{- end }}
|
|
|
|
|
2020-05-14 19:13:33 -04:00
|
|
|
verb 4
|
|
|
|
client
|
|
|
|
nobind
|
|
|
|
dev tun
|
|
|
|
cipher AES-128-CBC
|
|
|
|
key-direction 1
|
|
|
|
#redirect-gateway def1
|
|
|
|
tls-client
|
|
|
|
remote-cert-tls server
|
2021-02-26 07:11:13 -05:00
|
|
|
# uncomment below lines for use with linux
|
2021-02-15 01:03:38 -05:00
|
|
|
#script-security 2
|
2021-10-19 09:47:27 -04:00
|
|
|
# if you use resolved
|
2020-05-14 19:13:33 -04:00
|
|
|
#up /etc/openvpn/update-resolv-conf
|
|
|
|
#down /etc/openvpn/update-resolv-conf
|
2021-02-26 07:11:13 -05:00
|
|
|
# if you use systemd-resolved first install openvpn-systemd-resolved package
|
2021-02-15 01:03:38 -05:00
|
|
|
#up /etc/openvpn/update-systemd-resolved
|
|
|
|
#down /etc/openvpn/update-systemd-resolved
|
|
|
|
|
|
|
|
{{- if .PasswdAuth }}
|
|
|
|
auth-user-pass
|
|
|
|
{{- end }}
|
|
|
|
|
2020-05-14 19:13:33 -04:00
|
|
|
<cert>
|
|
|
|
{{ .Cert -}}
|
|
|
|
</cert>
|
|
|
|
<key>
|
|
|
|
{{ .Key -}}
|
|
|
|
</key>
|
|
|
|
<ca>
|
|
|
|
{{ .CA -}}
|
|
|
|
</ca>
|
|
|
|
<tls-auth>
|
|
|
|
{{ .TLS -}}
|
|
|
|
</tls-auth>
|