mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-16 14:03:00 +02:00
ovpn_reorganize_encryption: Added tls-auth into global section
- Since HMAC selection is already in global section, it makes sense to keep the encryption togehter. - Given tls-auth better understandable name. Signed-off-by: Erik Kapfer <ummeegge@ipfire.org> Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
committed by
Michael Tremer
parent
86308adb25
commit
0c4ffc6919
@@ -790,7 +790,6 @@ if ($cgiparams{'ACTION'} eq $Lang::tr{'save-adv-options'}) {
|
||||
$vpnsettings{'DHCP_DNS'} = $cgiparams{'DHCP_DNS'};
|
||||
$vpnsettings{'DHCP_WINS'} = $cgiparams{'DHCP_WINS'};
|
||||
$vpnsettings{'ROUTES_PUSH'} = $cgiparams{'ROUTES_PUSH'};
|
||||
$vpnsettings{'TLSAUTH'} = $cgiparams{'TLSAUTH'};
|
||||
my @temp=();
|
||||
|
||||
if ($cgiparams{'FRAGMENT'} eq '') {
|
||||
@@ -1201,6 +1200,7 @@ if ($cgiparams{'ACTION'} eq $Lang::tr{'save'} && $cgiparams{'TYPE'} eq '' && $cg
|
||||
$vpnsettings{'DCOMPLZO'} = $cgiparams{'DCOMPLZO'};
|
||||
$vpnsettings{'DCIPHER'} = $cgiparams{'DCIPHER'};
|
||||
$vpnsettings{'DAUTH'} = $cgiparams{'DAUTH'};
|
||||
$vpnsettings{'TLSAUTH'} = $cgiparams{'TLSAUTH'};
|
||||
#wrtie enable
|
||||
|
||||
if ( $vpnsettings{'ENABLED_BLUE'} eq 'on' ) {system("touch ${General::swroot}/ovpn/enable_blue 2>/dev/null");}else{system("unlink ${General::swroot}/ovpn/enable_blue 2>/dev/null");}
|
||||
@@ -2673,9 +2673,6 @@ ADV_ERROR:
|
||||
$selected{'LOG_VERB'}{'10'} = '';
|
||||
$selected{'LOG_VERB'}{'11'} = '';
|
||||
$selected{'LOG_VERB'}{$cgiparams{'LOG_VERB'}} = 'SELECTED';
|
||||
$checked{'TLSAUTH'}{'off'} = '';
|
||||
$checked{'TLSAUTH'}{'on'} = '';
|
||||
$checked{'TLSAUTH'}{$cgiparams{'TLSAUTH'}} = 'CHECKED';
|
||||
|
||||
&Header::showhttpheaders();
|
||||
&Header::openpage($Lang::tr{'status ovpn'}, 1, '');
|
||||
@@ -2805,17 +2802,6 @@ print <<END;
|
||||
</table>
|
||||
|
||||
<hr size='1'>
|
||||
|
||||
<table width='100%'>
|
||||
<tr>
|
||||
<td width='20%'></td> <td width='15%'> </td><td width='15%'> </td><td width='15%'></td><td width='35%'></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class='base'>HMAC tls-auth</td>
|
||||
<td><input type='checkbox' name='TLSAUTH' $checked{'TLSAUTH'}{'on'} /></td>
|
||||
</tr>
|
||||
</table><hr>
|
||||
END
|
||||
|
||||
if ( -e "/var/run/openvpn.pid"){
|
||||
@@ -3492,7 +3478,7 @@ foreach my $dkey (keys %confighash) {
|
||||
<tr><td class='boldbase' nowrap='nowrap'>Fragment:</td><td><b>$confighash{$key}[24]</b></td></tr>
|
||||
<tr><td class='boldbase' nowrap='nowrap'>$Lang::tr{'MTU'}</td><td><b>$confighash{$key}[31]</b></td></tr>
|
||||
<tr><td class='boldbase' nowrap='nowrap'>Management Port </td><td><b>$confighash{$key}[22]</b></td></tr>
|
||||
<tr><td class='boldbase' nowrap='nowrap'>$Lang::tr{'ovpn hmac'}:</td><td><b>$confighash{$key}[39]</b></td></tr>
|
||||
<tr><td class='boldbase' nowrap='nowrap'>$Lang::tr{'ovpn tls auth'}:</td><td><b>$confighash{$key}[39]</b></td></tr>
|
||||
<tr><td class='boldbase' nowrap='nowrap'>$Lang::tr{'cipher'}</td><td><b>$confighash{$key}[40]</b></td></tr>
|
||||
<tr><td> </td><td> </td></tr>
|
||||
</table>
|
||||
@@ -4533,6 +4519,9 @@ if ($cgiparams{'TYPE'} eq 'net') {
|
||||
$selected{'DAUTH'}{'SHA256'} = '';
|
||||
$selected{'DAUTH'}{'SHA1'} = '';
|
||||
$selected{'DAUTH'}{$cgiparams{'DAUTH'}} = 'SELECTED';
|
||||
$checked{'TLSAUTH'}{'off'} = '';
|
||||
$checked{'TLSAUTH'}{'on'} = '';
|
||||
$checked{'TLSAUTH'}{$cgiparams{'TLSAUTH'}} = 'CHECKED';
|
||||
|
||||
if (1) {
|
||||
&Header::showhttpheaders();
|
||||
@@ -5079,6 +5068,9 @@ END
|
||||
}
|
||||
}
|
||||
}
|
||||
if ($cgiparams{'TLSAUTH'} eq '') {
|
||||
$cgiparams{'TLSAUTH'} = 'off';
|
||||
}
|
||||
if ($cgiparams{'DOVPN_SUBNET'} eq '') {
|
||||
$cgiparams{'DOVPN_SUBNET'} = '10.' . int(rand(256)) . '.' . int(rand(256)) . '.0/255.255.255.0';
|
||||
}
|
||||
@@ -5121,6 +5113,10 @@ END
|
||||
$selected{'DAUTH'}{'SHA1'} = '';
|
||||
$selected{'DAUTH'}{$cgiparams{'DAUTH'}} = 'SELECTED';
|
||||
|
||||
$checked{'TLSAUTH'}{'off'} = '';
|
||||
$checked{'TLSAUTH'}{'on'} = '';
|
||||
$checked{'TLSAUTH'}{$cgiparams{'TLSAUTH'}} = 'CHECKED';
|
||||
|
||||
$checked{'DCOMPLZO'}{'off'} = '';
|
||||
$checked{'DCOMPLZO'}{'on'} = '';
|
||||
$checked{'DCOMPLZO'}{$cgiparams{'DCOMPLZO'}} = 'CHECKED';
|
||||
@@ -5255,6 +5251,13 @@ END
|
||||
<tr><td class='boldbase' nowrap='nowrap'>$Lang::tr{'comp-lzo'}</td>
|
||||
<td><input type='checkbox' name='DCOMPLZO' $checked{'DCOMPLZO'}{'on'} /></td>
|
||||
</tr>
|
||||
|
||||
<tr><td colspan='4'><br></td></tr>
|
||||
<tr>
|
||||
<td class='base'>$Lang::tr{'ovpn tls auth'}</td>
|
||||
<td><input type='checkbox' name='TLSAUTH' $checked{'TLSAUTH'}{'on'} /></td>
|
||||
</tr>
|
||||
|
||||
<tr><td colspan='4'><br><br></td></tr>
|
||||
END
|
||||
;
|
||||
|
||||
@@ -1887,6 +1887,7 @@
|
||||
'ovpn subnet' => 'OpenVPN-Subnetz:',
|
||||
'ovpn subnet is invalid' => 'Das OpenVPN-Subnetz ist ungültig.',
|
||||
'ovpn subnet overlap' => 'OpenVPNSubnetz überschneidet sich mit ',
|
||||
'ovpn tls auth' => 'TLS-Kanal Absicherung:',
|
||||
'ovpn warning rfc3280' => 'Das Host Zertifikat ist nicht RFC3280 Regelkonform. <br>Bitte IPFire auf die letzte Version updaten und generieren sie ein neues Root und Host Zertifikat so bald wie möglich.</br><br>Es müssen dann alle OpenVPN clients erneuert werden!</br>',
|
||||
'ovpn_fastio' => 'Fast-IO',
|
||||
'ovpn_fragment' => 'Fragmentgrösse',
|
||||
|
||||
@@ -1926,6 +1926,7 @@
|
||||
'ovpn subnet' => 'OpenVPN subnet:',
|
||||
'ovpn subnet is invalid' => 'OpenVPN subnet is invalid.',
|
||||
'ovpn subnet overlap' => 'OpenVPN Subnet overlaps with : ',
|
||||
'ovpn tls auth' => 'TLS-Channel Protection:',
|
||||
'ovpn warning rfc3280' => 'Your host certificate is not RFC3280 compliant. <br>Please update to the latest IPFire version and generate as soon as possible a new root and host certificate.</br><br>All OpenVPN clients needs then to be renewed!</br>',
|
||||
'ovpn_fastio' => 'Fast-IO',
|
||||
'ovpn_mssfix' => 'MSSFIX Size',
|
||||
|
||||
Reference in New Issue
Block a user