diff --git a/src/etc/inc/plugins.inc.d/ipsec.inc b/src/etc/inc/plugins.inc.d/ipsec.inc
index e65722ac8..3dc57c9a0 100644
--- a/src/etc/inc/plugins.inc.d/ipsec.inc
+++ b/src/etc/inc/plugins.inc.d/ipsec.inc
@@ -99,18 +99,6 @@ $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(
diff --git a/src/www/vpn_ipsec.php b/src/www/vpn_ipsec.php
index e56660b86..538009612 100644
--- a/src/www/vpn_ipsec.php
+++ b/src/www/vpn_ipsec.php
@@ -186,6 +186,22 @@ legacy_html_escape_form_data($a_phase2);
$service_hook = 'ipsec';
include("head.inc");
+$dhgroups = array(
+ 1 => '1 (768 bits)',
+ 2 => '2 (1024 bits)',
+ 5 => '5 (1536 bits)',
+ 14 => '14 (2048 bits)',
+ 15 => '15 (3072 bits)',
+ 16 => '16 (4096 bits)',
+ 17 => '17 (6144 bits)',
+ 18 => '18 (8192 bits)',
+ 19 => '19 (256 bit elliptic curve)',
+ 20 => '20 (384 bit elliptic curve)',
+ 21 => '21 (521 bit elliptic curve)',
+ 22 => '22 (1024(sub 160) bits)',
+ 23 => '23 (2048(sub 224) bits)',
+ 24 => '24 (2048(sub 256) bits)'
+);
?>
@@ -399,26 +415,7 @@ $( document ).ready(function() {
}?> +
=strtoupper($ph1ent['hash-algorithm']);?> +
-
- '1 (768 bits)',
- 2 => '2 (1024 bits)',
- 5 => '5 (1536 bits)',
- 14 => '14 (2048 bits)',
- 15 => '15 (3072 bits)',
- 16 => '16 (4096 bits)',
- 17 => '17 (6144 bits)',
- 18 => '18 (8192 bits)',
- 19 => '19 (256 bit elliptic curve)',
- 20 => '20 (384 bit elliptic curve)',
- 21 => '21 (521 bit elliptic curve)',
- 22 => '22 (1024(sub 160) bits)',
- 23 => '23 (2048(sub 224) bits)',
- 24 => '24 (2048(sub 256) bits)'
- );
-?>
- =gettext("DH Group"); ?> =$p1_dhgroups[$ph1ent['dhgroup']];?>
+ =gettext("DH Group"); ?> =$dhgroups[$ph1ent['dhgroup']];?>
= html_safe($p1_authentication_methods[$ph1ent['authentication_method']]['name']) ?>
@@ -548,7 +545,7 @@ $( document ).ready(function() {
|
- =gettext("Group"); ?> =$p2_pfskeygroups[$ph2ent['pfsgroup']];?> |
+ =gettext("Group"); ?> =$dhgroups[$ph2ent['pfsgroup']];?> |
=gettext("off"); ?> |
diff --git a/src/www/vpn_ipsec_mobile.php b/src/www/vpn_ipsec_mobile.php
index 44af66f6c..8c75ca099 100644
--- a/src/www/vpn_ipsec_mobile.php
+++ b/src/www/vpn_ipsec_mobile.php
@@ -504,8 +504,24 @@ endfor; ?>
onclick="pfs_group_change()" />