2018-02-03 18:14:47 +01:00
|
|
|
{{ define "base" }}# Client configuration for {{ .User }}@{{ .Name }}
|
2018-02-01 09:31:06 +01:00
|
|
|
client
|
2018-04-22 20:34:51 +02:00
|
|
|
dev {{ .Dev }}
|
|
|
|
remote {{ .Host }} {{ .Port }} {{ .Proto }}
|
2018-02-01 09:31:06 +01:00
|
|
|
resolv-retry infinite
|
|
|
|
nobind
|
|
|
|
persist-key
|
|
|
|
persist-tun
|
|
|
|
|
|
|
|
cipher AES-256-CBC
|
|
|
|
auth SHA512
|
|
|
|
ns-cert-type server
|
|
|
|
key-direction 1
|
|
|
|
tls-version-min 1.2
|
|
|
|
;comp-lzo
|
|
|
|
verb 3
|
|
|
|
|
|
|
|
<ca>
|
2018-04-22 20:34:51 +02:00
|
|
|
{{ .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>
|
2018-04-22 20:34:51 +02:00
|
|
|
{{ .TA | html }}</tls-auth>
|
2018-02-01 09:31:06 +01:00
|
|
|
{{ end }}
|