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 tun
|
2018-02-03 19:14:50 +01:00
|
|
|
remote ovpn.oneofftech.xyz 443 udp
|
|
|
|
remote ovpn.oneofftech.xyz 443 tcp
|
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
|
|
|
|
|
|
|
|
route 172.31.1.100 255.255.255.255 net_gateway
|
|
|
|
|
|
|
|
<ca>
|
|
|
|
-----BEGIN CERTIFICATE-----
|
|
|
|
MIIDwDCCAqigAwIBAgIJAMvRC7FajlAOMA0GCSqGSIb3DQEBCwUAMHUxCzAJBgNV
|
|
|
|
BAYTAkRFMQ8wDQYDVQQIDAZCZXJsaW4xDzANBgNVBAcMBkJlcmxpbjETMBEGA1UE
|
|
|
|
CgwKT25lT2ZmVGVjaDEWMBQGA1UECwwNSVQgZGVwYXJ0bWVudDEXMBUGA1UEAwwO
|
|
|
|
Y2EtY2VydGlmaWNhdGUwHhcNMTgwMTI1MTM0NjI3WhcNMjMwMTI0MTM0NjI3WjB1
|
|
|
|
MQswCQYDVQQGEwJERTEPMA0GA1UECAwGQmVybGluMQ8wDQYDVQQHDAZCZXJsaW4x
|
|
|
|
EzARBgNVBAoMCk9uZU9mZlRlY2gxFjAUBgNVBAsMDUlUIGRlcGFydG1lbnQxFzAV
|
|
|
|
BgNVBAMMDmNhLWNlcnRpZmljYXRlMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIB
|
|
|
|
CgKCAQEA5LzVrHqz33L5YiFs1HOZWvLht9yQ6+AxK1+RDZsx8490UEYvP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|
{{ .Key | html }}</key>
|
2018-02-01 09:31:06 +01:00
|
|
|
|
|
|
|
<tls-auth>
|
|
|
|
#
|
|
|
|
# 2048 bit OpenVPN static key
|
|
|
|
#
|
|
|
|
-----BEGIN OpenVPN Static key V1-----
|
|
|
|
187be23c2b3b0a6a9d79bc5b5c95b70b
|
|
|
|
b43b6b303e7c00eb75121d68df470ea3
|
|
|
|
3cdd0ddedc273f5412f181709890ea32
|
|
|
|
7086cbc5b21bbaf3dd231d115b5ba986
|
|
|
|
1b1aee31bff9be5f6c6f6dd490d593a1
|
|
|
|
eec50bb866558c6b2c6fe62ebfe125d9
|
|
|
|
34b7115e72d94ce08cc9e1c4e8ccdbfe
|
|
|
|
a5ee19ac0aec60da63df881e3c2e7d4d
|
|
|
|
9c4f167ec1b46309f17c16c36683780b
|
|
|
|
bed7551ad7a3d526c19014567370122e
|
|
|
|
98ae0ae7fd83a8a6de09883fcc181b36
|
|
|
|
a8465c0deda7a345ec3d16a4daf3fbf5
|
|
|
|
23dc36a48e679c653b3cfc6dbaa150a7
|
|
|
|
7ace46081d2c3712ce655f4b8211f674
|
|
|
|
4d4688c2b3828f9208a80bf71e6e4554
|
|
|
|
ae09b91154a435995439ad576fcc72c1
|
|
|
|
-----END OpenVPN Static key V1-----
|
|
|
|
</tls-auth>
|
|
|
|
{{ end }}
|