Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
a8982f02
Commit
a8982f02
authored
Jan 19, 2016
by
Ad Schellevis
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #661 from 8191/enh_ipsecview
IPsec tunnels: enhance table of configured tunnels
parents
5936b4e1
f8e24207
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
53 additions
and
14 deletions
+53
-14
vpn_ipsec.php
src/www/vpn_ipsec.php
+53
-14
No files found.
src/www/vpn_ipsec.php
View file @
a8982f02
...
...
@@ -310,12 +310,12 @@ $( document ).ready(function() {
<tr>
<td>
</td>
<td>
</td>
<td>
<?=
gettext
(
"
IKE
"
);
?>
</td>
<td>
<?=
gettext
(
"
Type
"
);
?>
</td>
<td>
<?=
gettext
(
"Remote Gateway"
);
?>
</td>
<td>
<?=
gettext
(
"Mode"
);
?>
</td>
<td>
<?=
gettext
(
"P
1 Protoco
l"
);
?>
</td>
<td>
<?=
gettext
(
"
P1 Transforms
"
);
?>
</td>
<td>
<?=
gettext
(
"
P1
Description"
);
?>
</td>
<td>
<?=
gettext
(
"P
hase 1 Proposa
l"
);
?>
</td>
<td>
<?=
gettext
(
"
Authentication
"
);
?>
</td>
<td>
<?=
gettext
(
"Description"
);
?>
</td>
<td>
</td>
</tr>
...
...
@@ -335,7 +335,8 @@ $( document ).ready(function() {
</button>
</td>
<td>
<?=
empty
(
$ph1ent
[
'iketype'
])
||
$ph1ent
[
'iketype'
]
==
"ikev1"
?
"V1"
:
"V2"
;
?>
<?=
empty
(
$ph1ent
[
'protocol'
])
||
$ph1ent
[
'protocol'
]
==
"inet"
?
"IPv4"
:
"IPv6"
;
?>
<?=
empty
(
$ph1ent
[
'iketype'
])
||
$ph1ent
[
'iketype'
]
==
"ikev1"
?
"IKE"
:
"IKEv2"
;
?>
</td>
<td>
<?php
...
...
@@ -382,12 +383,40 @@ $( document ).ready(function() {
if
(
$ph1ent
[
'encryption-algorithm'
][
'keylen'
]
==
"auto"
)
{
echo
" ("
.
gettext
(
"auto"
)
.
")"
;
}
else
{
echo
" (
{
$ph1ent
[
'encryption-algorithm'
][
'keylen'
]
}
"
.
gettext
(
"bits"
)
.
")"
;
echo
" (
{
$ph1ent
[
'encryption-algorithm'
][
'keylen'
]
}
"
.
gettext
(
"bits"
)
.
")"
;
}
}
?>
}
?>
+
<?=
strtoupper
(
$ph1ent
[
'hash-algorithm'
]);
?>
+
<?php
$p1_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)'
,
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'
]];
?>
</td>
<td>
<?=
strtoupper
(
$ph1ent
[
'hash-algorithm'
]);
?>
<?php
$p1_authentication_methods
=
array
(
'hybrid_rsa_server'
=>
array
(
'name'
=>
'Hybrid RSA + Xauth'
,
'mobile'
=>
true
),
'xauth_rsa_server'
=>
array
(
'name'
=>
'Mutual RSA + Xauth'
,
'mobile'
=>
true
),
'xauth_psk_server'
=>
array
(
'name'
=>
'Mutual PSK + Xauth'
,
'mobile'
=>
true
),
'eap-tls'
=>
array
(
'name'
=>
'EAP-TLS'
,
'mobile'
=>
true
),
'rsasig'
=>
array
(
'name'
=>
'Mutual RSA'
,
'mobile'
=>
false
),
'pre_shared_key'
=>
array
(
'name'
=>
'Mutual PSK'
,
'mobile'
=>
false
)
);
?>
<?=
$p1_authentication_methods
[
$ph1ent
[
'authentication_method'
]][
'name'
];
?>
</td>
<td>
<?=
$ph1ent
[
'descr'
];
?>
...
...
@@ -438,12 +467,12 @@ $( document ).ready(function() {
<tr>
<td>
</td>
<td>
</td>
<td>
<?=
gettext
(
"
Mod
e"
);
?>
</td>
<td>
<?=
gettext
(
"
Typ
e"
);
?>
</td>
<td>
<?=
gettext
(
"Local Subnet"
);
?>
</td>
<td>
<?=
gettext
(
"Remote Subnet"
);
?>
</td>
<td>
<?=
gettext
(
"
P2 Protocol
"
);
?>
</td>
<td>
<?=
gettext
(
"
P2 Transform
s"
);
?>
</td>
<td>
<?=
gettext
(
"P
2 Auth Methods
"
);
?>
</td>
<td>
<?=
gettext
(
"
Encryption Protocols
"
);
?>
</td>
<td>
<?=
gettext
(
"
Authenticity Protocol
s"
);
?>
</td>
<td>
<?=
gettext
(
"P
FS
"
);
?>
</td>
<td
class =
"list"
>
</td>
</tr>
</thead>
...
...
@@ -465,7 +494,10 @@ $( document ).ready(function() {
<span
class=
"glyphicon glyphicon-play"
></span>
</button>
</td>
<td>
<?=
$ph2ent
[
'mode'
];
?>
</td>
<td>
<?=
$p2_protos
[
$ph2ent
[
'protocol'
]];
?>
<?=
isset
(
$ph2ent
[
'mode'
])
?
array_search
(
$ph2ent
[
'mode'
],
array
(
"IPv4 tunnel"
=>
"tunnel"
,
"IPv6 tunnel"
=>
"tunnel6"
,
"transport"
=>
"transport"
))
:
""
;
?>
</td>
<?php
if
((
$ph2ent
[
'mode'
]
==
"tunnel"
)
||
(
$ph2ent
[
'mode'
]
==
"tunnel6"
))
:?>
<
td
>
...
...
@@ -480,7 +512,6 @@ $( document ).ready(function() {
<
td
>&
nbsp
;
</
td
>
<?
php
endif
;
?>
<td>
<?=
$p2_protos
[
$ph2ent
[
'protocol'
]];
?>
</td>
<td>
<?php
foreach
(
$ph2ent
[
'encryption-algorithm-option'
]
as
$k
=>
$ph2ea
)
{
...
...
@@ -508,6 +539,14 @@ $( document ).ready(function() {
}
}
?>
</td>
<?php
if
(
isset
(
$ph2ent
[
'pfsgroup'
]))
:
?>
<td>
<?=
gettext
(
"Group"
);
?>
<?=
$p2_pfskeygroups
[
$ph2ent
[
'pfsgroup'
]];
?>
</td>
<?php
else
:
?>
<td>
<?=
gettext
(
"off"
);
?>
</td>
<?php
endif
;
?>
<td>
<button
data-id=
"
<?=
$j
;
?>
"
data-act=
"movep2"
title=
"
<?=
gettext
(
"move selected entries before this"
);
?>
"
data-toggle=
"tooltip"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment