Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@
<type>dropdown</type>
<help>
Add an additional layer of HMAC authentication on top of the TLS control channel to mitigate DoS attacks and attacks on the TLS stack.
The prefixed mode determines if this measurement is only used for authentication (--tls-auth) or includes encryption (--tls-crypt).
The prefixed mode determines if this measurement is only used for authentication (--tls-auth) or includes encryption (--tls-crypt) and (--tls-crypt-v2).
</help>
<grid_view>
<visible>false</visible>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<label>Mode</label>
<width>220px</width>
<type>dropdown</type>
<help>Define the use of this key, authentication (--tls-auth) or authentication and encryption (--tls-crypt)</help>
<help>Define the use of this key, authentication (--tls-auth) or authentication and encryption (--tls-crypt) or (--tls-crypt-v2)</help>
</field>
<field>
<id>statickey.key</id>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,11 @@ protected function openvpnInlineFiles()
$conf[] = "<tls-crypt>";
$conf = array_merge($conf, explode("\n", trim(base64_decode($this->config['tls']))));
$conf[] = "</tls-crypt>";
}
elseif ($this->config['tlsmode'] === 'crypt-v2') {
$conf[] = "<tls-crypt-v2>";
$conf = array_merge($conf, explode("\n", trim(base64_decode($this->config['tls']))));
$conf[] = "</tls-crypt-v2>";
} else {
$conf[] = "<tls-auth>";
$conf = array_merge($conf, explode("\n", trim(base64_decode($this->config['tls']))));
Expand Down
1 change: 1 addition & 0 deletions src/opnsense/mvc/app/models/OPNsense/OpenVPN/OpenVPN.xml
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,7 @@
<OptionValues>
<auth>auth (Authenticate control channel packets)</auth>
<crypt>crypt (Encrypt and authenticate all control channel packets)</crypt>
<crypt-v2>crypt-v2 (Encrypt and authenticate all control channel packets)</crypt-v2>
</OptionValues>
</mode>
<key type="TextField">
Expand Down