summaryrefslogtreecommitdiffstats
path: root/src/etc
diff options
context:
space:
mode:
authorJose Luis Duran <jlduran@users.noreply.github.com>2015-05-26 21:39:32 -0300
committerJose Luis Duran <jlduran@users.noreply.github.com>2015-09-22 06:01:20 -0300
commit3fac0afc0fa02e5d36e607236740638ae3acf044 (patch)
tree5175e8a1c22707ce32bd9f543f59db770975dbff /src/etc
parent0aa8caecff3738893e8d428f7a4280c7ba72245e (diff)
downloadpfsense-3fac0afc0fa02e5d36e607236740638ae3acf044.zip
pfsense-3fac0afc0fa02e5d36e607236740638ae3acf044.tar.gz
Add MS-CHAPv2 option to L2TP Configuration
See [#4732](https://redmine.pfsense.org/issues/4732)
Diffstat (limited to 'src/etc')
-rw-r--r--src/etc/inc/vpn.inc14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/etc/inc/vpn.inc b/src/etc/inc/vpn.inc
index 7585c59..3c029c5 100644
--- a/src/etc/inc/vpn.inc
+++ b/src/etc/inc/vpn.inc
@@ -1660,10 +1660,16 @@ function vpn_l2tp_configure() {
$l2tp_listen="set l2tp self $ipaddr";
}
- if ($l2tpcfg['paporchap'] == "chap") {
- $paporchap = "set link enable chap";
- } else {
- $paporchap = "set link enable pap";
+ switch ($l2tpcfg['paporchap']) {
+ case 'chap':
+ $paporchap = "set link enable chap";
+ break;
+ case 'chap-msv2':
+ $paporchap = "set link enable chap-msv2";
+ break;
+ default:
+ $paporchap = "set link enable pap";
+ break;
}
/* write mpd.conf */
OpenPOWER on IntegriCloud