mirror of
https://github.com/angristan/openvpn-install.git
synced 2025-12-15 16:37:03 +01:00
feat: add remote-cert-tls client to server configuration (#1359)
## Summary - Add `remote-cert-tls client` directive to server config to ensure only certificates with "TLS Web Client Authentication" EKU can connect - Document the feature in the Security and Encryption section of README.md
This commit is contained in:
@@ -372,6 +372,12 @@ So both provide an additional layer of security and mitigate DoS attacks. They a
|
||||
|
||||
The script supports both and uses `tls-crypt` by default.
|
||||
|
||||
### Certificate type verification (`remote-cert-tls`)
|
||||
|
||||
The server is configured with `remote-cert-tls client`, which requires connecting peers to have a certificate with the "TLS Web Client Authentication" extended key usage. This prevents a server certificate from being used to impersonate a client.
|
||||
|
||||
Similarly, clients are configured with `remote-cert-tls server` to ensure they only connect to servers presenting valid server certificates. This protects against an attacker with a valid client certificate setting up a rogue server.
|
||||
|
||||
### Data Channel Offload (DCO)
|
||||
|
||||
[Data Channel Offload](https://openvpn.net/as-docs/openvpn-data-channel-offload.html) (DCO) is a kernel acceleration feature that significantly improves OpenVPN performance by keeping data channel encryption/decryption in kernel space, eliminating costly context switches between user and kernel space for each packet.
|
||||
|
||||
@@ -1243,6 +1243,7 @@ cipher $CIPHER
|
||||
ncp-ciphers $CIPHER
|
||||
tls-server
|
||||
tls-version-min 1.2
|
||||
remote-cert-tls client
|
||||
tls-cipher $CC_CIPHER
|
||||
client-config-dir /etc/openvpn/ccd
|
||||
status /var/log/openvpn/status.log
|
||||
|
||||
Reference in New Issue
Block a user