mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-19 02:54:38 +00:00
ipsec: small tweaks
This commit is contained in:
parent
e96bfd5695
commit
c89569dbc3
@ -99,6 +99,19 @@ $p2_protos = array(
|
||||
'ah' => 'AH'
|
||||
);
|
||||
|
||||
$p2_pfskeygroups = array(
|
||||
0 => 'off',
|
||||
1 => '1 (768 bit)',
|
||||
2 => '2 (1024 bit)',
|
||||
5 => '5 (1536 bit)',
|
||||
14 => '14 (2048 bit)',
|
||||
15 => '15 (3072 bit)',
|
||||
16 => '16 (4096 bit)',
|
||||
17 => '17 (6144 bit)',
|
||||
18 => '18 (8192 bit)'
|
||||
);
|
||||
|
||||
|
||||
function ipsec_configure()
|
||||
{
|
||||
return array(
|
||||
@ -140,18 +153,6 @@ function ipsec_services()
|
||||
return $services;
|
||||
}
|
||||
|
||||
$p2_pfskeygroups = array(
|
||||
0 => 'off',
|
||||
1 => '1 (768 bit)',
|
||||
2 => '2 (1024 bit)',
|
||||
5 => '5 (1536 bit)',
|
||||
14 => '14 (2048 bit)',
|
||||
15 => '15 (3072 bit)',
|
||||
16 => '16 (4096 bit)',
|
||||
17 => '17 (6144 bit)',
|
||||
18 => '18 (8192 bit)'
|
||||
);
|
||||
|
||||
function ipsec_interfaces()
|
||||
{
|
||||
global $config;
|
||||
@ -532,7 +533,7 @@ function ipsec_convert_to_modp($index)
|
||||
return $convertion;
|
||||
}
|
||||
|
||||
function ipsec_configure_do($verbose = false, $interface = null)
|
||||
function ipsec_configure_do($verbose = false, $interface = '')
|
||||
{
|
||||
global $config, $p2_ealgos, $ipsec_loglevels;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user