VPN/OpenVPN - reintroduce "cipher" keyword for older clients. closes https://github.com/opnsense/core/issues/6420 partly reverts 1e28d5b352 , only remove "none" cipher for now and assure its not being set by default for new connections.

This commit is contained in:
Ad Schellevis 2023-03-16 09:37:06 +01:00
parent 9f771860a7
commit 4b2b600509
3 changed files with 5 additions and 5 deletions

View File

@ -528,7 +528,7 @@ function openvpn_reconfigure($mode, $settings, $device_only = false)
$conf .= "persist-key\n";
$conf .= "proto {$proto}\n";
if (!empty($cipher) && $cipher != 'none') {
$conf .= "data-ciphers-fallback {$cipher}\n";
$conf .= "cipher {$cipher}\n";
}
$conf .= "auth {$digest}\n";
$conf .= "up /usr/local/etc/inc/plugins.inc.d/openvpn/ovpn-linkup\n";

View File

@ -916,7 +916,7 @@ $( document ).ready(function() {
</td>
</tr>
<tr>
<td><a id="help_for_crypto" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Encryption algorithm (fallback)"); ?></td>
<td><a id="help_for_crypto" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Encryption algorithm (deprecated)"); ?></td>
<td>
<select name="crypto" class="form-control">
<?php
@ -927,7 +927,7 @@ $( document ).ready(function() {
endforeach; ?>
</select>
<div class="hidden" data-for="help_for_crypto">
<?= gettext('Fallback cipher selection in case none of the default data-ciphers is supported by the client. Only preserved for backwards compatibility reasons.') ?>
<?= gettext('Cipher selection for older clients. Only preserved for backwards compatibility reasons.') ?>
</div>
</td>
</tr>

View File

@ -992,7 +992,7 @@ $( document ).ready(function() {
</td>
</tr>
<tr>
<td><a id="help_for_crypto" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Encryption algorithm (fallback)"); ?></td>
<td><a id="help_for_crypto" href="#" class="showhelp"><i class="fa fa-info-circle"></i></a> <?=gettext("Encryption algorithm (deprecated)"); ?></td>
<td>
<select name="crypto" class="selectpicker">
<?php
@ -1005,7 +1005,7 @@ $( document ).ready(function() {
endforeach; ?>
</select>
<div class="hidden" data-for="help_for_crypto">
<?= gettext('Fallback cipher selection in case none of the default data-ciphers is supported by the client. Only preserved for backwards compatibility reasons.') ?>
<?= gettext('Cipher selection for older clients. Only preserved for backwards compatibility reasons.') ?>
</div>
</td>
</tr>