ovpn-certman/assets/templates/files/config.ovpn

33 lines
588 B
Text
Raw Permalink Normal View History

2018-02-03 18:14:47 +01:00
{{ define "base" }}# Client configuration for {{ .User }}@{{ .Name }}
2018-02-01 09:31:06 +01:00
client
dev {{ .Dev }}
remote {{ .Host }} {{ .Port }} {{ .Proto }}
2018-02-01 09:31:06 +01:00
resolv-retry infinite
nobind
persist-key
persist-tun
2019-04-23 02:14:16 +02:00
cipher AES-256-GCM
2018-02-01 09:31:06 +01:00
auth SHA512
2019-04-23 02:14:16 +02:00
2019-04-25 13:59:40 +02:00
remote-cert-tls server
2018-02-01 09:31:06 +01:00
key-direction 1
2019-04-23 02:14:16 +02:00
tls-cipher TLS-DHE-RSA-WITH-AES-256-GCM-SHA384:TLS-DHE-RSA-WITH-AES-256-CBC-SHA256:TLS-DHE-RSA-WITH-AES-128-GCM-SHA256:TLS-DHE-RSA-WITH-AES-128-CBC-SHA256
2018-02-01 09:31:06 +01:00
tls-version-min 1.2
2019-04-23 02:14:16 +02:00
2018-02-01 09:31:06 +01:00
verb 3
<ca>
{{ .CA | html }}</ca>
2018-02-01 09:31:06 +01:00
<cert>
2018-02-03 18:14:47 +01:00
{{ .Cert | html }}</cert>
2018-02-01 09:31:06 +01:00
<key>
2018-02-03 18:14:47 +01:00
{{ .Key | html }}</key>
2018-02-01 09:31:06 +01:00
<tls-auth>
{{ .TA | html }}</tls-auth>
2018-02-01 09:31:06 +01:00
{{ end }}