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
10c6828e
Commit
10c6828e
authored
Aug 04, 2016
by
Ad Schellevis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(ipsec) add EAP-MSCHAPv2
https://github.com/opnsense/core/issues/1102
parent
0dd120ff
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
ipsec.inc
src/etc/inc/ipsec.inc
+4
-0
vpn_ipsec_phase1.php
src/www/vpn_ipsec_phase1.php
+3
-0
No files found.
src/etc/inc/ipsec.inc
View file @
10c6828e
...
@@ -899,6 +899,10 @@ EOD;
...
@@ -899,6 +899,10 @@ EOD;
case
'eap-tls'
:
case
'eap-tls'
:
$authentication
=
"leftauth=eap-tls
\n\t
rightauth=eap-tls"
;
$authentication
=
"leftauth=eap-tls
\n\t
rightauth=eap-tls"
;
break
;
break
;
case
'eap-mschapv2'
:
$authentication
=
"leftauth = pubkey
\n\t
rightauth = eap-mschapv2"
;
$authentication
.=
"
\n\t
eap_identity=%any"
;
break
;
case
'xauth_rsa_server'
:
case
'xauth_rsa_server'
:
$authentication
=
"leftauth = pubkey
\n\t
rightauth = pubkey"
;
$authentication
=
"leftauth = pubkey
\n\t
rightauth = pubkey"
;
$authentication
.=
"
\n\t
rightauth2 = xauth-generic"
;
$authentication
.=
"
\n\t
rightauth2 = xauth-generic"
;
...
...
src/www/vpn_ipsec_phase1.php
View file @
10c6828e
...
@@ -178,6 +178,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
...
@@ -178,6 +178,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
// For RSA methods, require the CA/Cert.
// For RSA methods, require the CA/Cert.
switch
(
$method
)
{
switch
(
$method
)
{
case
"eap-tls"
:
case
"eap-tls"
:
case
"eap-mschapv2"
:
if
(
$pconfig
[
'iketype'
]
!=
'ikev2'
)
{
if
(
$pconfig
[
'iketype'
]
!=
'ikev2'
)
{
$input_errors
[]
=
sprintf
(
gettext
(
"%s can only be used with IKEv2 type VPNs."
),
strtoupper
(
$method
));
$input_errors
[]
=
sprintf
(
gettext
(
"%s can only be used with IKEv2 type VPNs."
),
strtoupper
(
$method
));
}
}
...
@@ -430,6 +431,7 @@ include("head.inc");
...
@@ -430,6 +431,7 @@ include("head.inc");
case
'
hybrid_rsa_server
'
:
case
'
hybrid_rsa_server
'
:
case
'
xauth_rsa_server
'
:
case
'
xauth_rsa_server
'
:
case
'
rsasig
'
:
case
'
rsasig
'
:
case
'
eap-mschapv2
'
:
$
(
"
.auth_eap_tls
"
).
show
();
$
(
"
.auth_eap_tls
"
).
show
();
$
(
"
.auth_eap_tls :input
"
).
prop
(
"
disabled
"
,
false
);
$
(
"
.auth_eap_tls :input
"
).
prop
(
"
disabled
"
,
false
);
$
(
"
.auth_eap_tls_caref
"
).
show
();
$
(
"
.auth_eap_tls_caref
"
).
show
();
...
@@ -651,6 +653,7 @@ include("head.inc");
...
@@ -651,6 +653,7 @@ include("head.inc");
'xauth_rsa_server'
=>
array
(
'name'
=>
'Mutual RSA + Xauth'
,
'mobile'
=>
true
),
'xauth_rsa_server'
=>
array
(
'name'
=>
'Mutual RSA + Xauth'
,
'mobile'
=>
true
),
'xauth_psk_server'
=>
array
(
'name'
=>
'Mutual PSK + Xauth'
,
'mobile'
=>
true
),
'xauth_psk_server'
=>
array
(
'name'
=>
'Mutual PSK + Xauth'
,
'mobile'
=>
true
),
'eap-tls'
=>
array
(
'name'
=>
'EAP-TLS'
,
'mobile'
=>
true
),
'eap-tls'
=>
array
(
'name'
=>
'EAP-TLS'
,
'mobile'
=>
true
),
'eap-mschapv2'
=>
array
(
'name'
=>
'EAP-MSCHAPV2'
,
'mobile'
=>
true
),
'rsasig'
=>
array
(
'name'
=>
'Mutual RSA'
,
'mobile'
=>
false
),
'rsasig'
=>
array
(
'name'
=>
'Mutual RSA'
,
'mobile'
=>
false
),
'pre_shared_key'
=>
array
(
'name'
=>
'Mutual PSK'
,
'mobile'
=>
false
)
);
'pre_shared_key'
=>
array
(
'name'
=>
'Mutual PSK'
,
'mobile'
=>
false
)
);
foreach
(
$p1_authentication_methods
as
$method_type
=>
$method_params
)
:
foreach
(
$p1_authentication_methods
as
$method_type
=>
$method_params
)
:
...
...
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