summaryrefslogtreecommitdiffstats
path: root/usr/local/www/vpn_ipsec_phase1.php
diff options
context:
space:
mode:
authorErmal LUÇI <eri@pfsense.org>2015-01-14 12:27:48 +0100
committerErmal LUÇI <eri@pfsense.org>2015-01-15 09:29:40 +0100
commitf579c0fb422b5db64392d636f1977ee093553698 (patch)
tree41407fd357ed1a975579c6027ab45551b2835ea7 /usr/local/www/vpn_ipsec_phase1.php
parent88a46519d9b3eec4b8433c394d87e09963c6a9d0 (diff)
downloadpfsense-f579c0fb422b5db64392d636f1977ee093553698.zip
pfsense-f579c0fb422b5db64392d636f1977ee093553698.tar.gz
Add EAP-MSChapv2 implementation for Windows ipsec support as reported here https://forum.pfsense.org/index.php?topic=81657.15
Diffstat (limited to 'usr/local/www/vpn_ipsec_phase1.php')
-rw-r--r--usr/local/www/vpn_ipsec_phase1.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/usr/local/www/vpn_ipsec_phase1.php b/usr/local/www/vpn_ipsec_phase1.php
index 9463d2f..04dd443 100644
--- a/usr/local/www/vpn_ipsec_phase1.php
+++ b/usr/local/www/vpn_ipsec_phase1.php
@@ -162,6 +162,10 @@ if ($_POST) {
// Only require PSK here for normal PSK tunnels (not mobile) or xauth.
// For RSA methods, require the CA/Cert.
switch ($method) {
+ case 'eap-mschapv2':
+ if ($pconfig['iketype'] != 'ikev2')
+ $input_errors[] = gettext("EAP-MSChapv2 can only be used with IKEv2 type VPNs.");
+ break;
case "eap-tls":
if ($pconfig['iketype'] != 'ikev2')
$input_errors[] = gettext("EAP-TLS can only be used with IKEv2 type VPNs.");
@@ -448,6 +452,7 @@ function methodsel_change() {
value = document.iform.authentication_method.options[index].value;
switch (value) {
+ case 'eap-mschapv2':
case 'eap-tls':
document.getElementById('opt_psk').style.display = 'none';
document.getElementById('opt_peerid').style.display = '';
OpenPOWER on IntegriCloud