-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
macos-openvpn-server: Update to openvpn 2.5, easy-rsa 3, EC-based PKI
- Loading branch information
Showing
11 changed files
with
427 additions
and
443 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,35 @@ | ||
#### | ||
## Domainname Mac UDP client configuration version 2.0 | ||
## Mac UDP client configuration version 2.0 | ||
#### | ||
client | ||
dev tun | ||
proto udp | ||
remote server.domainname.com 443 | ||
remote domainname.tld 443 | ||
redirect-gateway def1 | ||
resolv-retry infinite | ||
nobind | ||
;user nobody | ||
;group nobody | ||
persist-key | ||
persist-tun | ||
;ca ca.crt | ||
;cert clientname.crt | ||
;key clientname.key | ||
remote-cert-tls server | ||
<ca> | ||
-----BEGIN CERTIFICATE----- | ||
MY CERT from ca.crt | ||
-----END CERTIFICATE----- | ||
; paste ca.pem and remove these comments: | ||
; openssl x509 -in pki/ca.crt | pbcopy | ||
</ca> | ||
ns-cert-type server | ||
;tls-auth ta.key 1 | ||
<cert> | ||
; paste client cert and remove these comments: | ||
; openssl x509 -in pki/issued/client-domainname.crt -text | pbcopy | ||
</cert> | ||
<key> | ||
; paste client key and remove these comments: | ||
; openssl pkey -in pki/private/client-domainname.key -out pki/private/client-domainname.key.decrypted | ||
; pbcopy < pki/private/client-domainname.key.decrypted | ||
; rm pki/private/client-domainname.key.decrypted | ||
</key> | ||
key-direction 1 | ||
<tls-auth> | ||
# | ||
# 4096 bit OpenVPN static key | ||
# | ||
-----BEGIN OpenVPN Static key V1----- | ||
MY CERT from ta.key | ||
-----END OpenVPN Static key V1----- | ||
</tls-auth> | ||
; fields from server certificate: sudo cat keys/server-domainname.crt | ||
verify-x509-name 'C=US, O=DomainName, OU=OpenVPN, CN=domainname.tld' subject | ||
;auth-user-pass | ||
;tls-remote server-domainname | ||
;cipher BF-CBC ; susceptible to SWEET32 attacks | ||
cipher AES-256-CBC | ||
<tls-crypt> | ||
; paste ta.key and remove these comments: | ||
; pbcopy < pki/ta.key | ||
</tls-crypt> | ||
cipher AES-256-GCM | ||
tls-version-min 1.3 | ||
; openvpn --show-tls | grep -e '^TLS' | grep -v 128 | grep -v -e 'SHA$' | grep -v GCM | ||
tls-cipher TLS-ECDHE-RSA-WITH-AES-256-CBC-SHA384:TLS-ECDHE-ECDSA-WITH-AES-256-CBC-SHA384:TLS-DHE-RSA-WITH-AES-256-CBC-SHA256:TLS-DHE-DSS-WITH-AES-256-CBC-SHA256:TLS-ECDH-RSA-WITH-AES-256-CBC-SHA384:TLS-ECDH-ECDSA-WITH-AES-256-CBC-SHA384 | ||
tls-version-min 1.2 | ||
auth SHA512 | ||
;client-http-proxy 10.0.1.3 3128 | ||
verb 3 | ||
# shaper 50000 | ||
; tls-cipher TLS_CHACHA20_POLY1305_SHA256:TLS-ECDHE-ECDSA-WITH-CHACHA20-POLY1305-SHA256:TLS-ECDHE-RSA-WITH-CHACHA20-POLY1305-SHA256:TLS-DHE-RSA-WITH-CHACHA20-POLY1305-SHA256:TLS-ECDHE-ECDSA-WITH-AES-256-CBC-SHA384:TLS-ECDHE-RSA-WITH-AES-256-CBC-SHA384:TLS-DHE-RSA-WITH-AES-256-CBC-SHA256 | ||
;client-http-proxy 10.0.1.3 8118 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.