summaryrefslogtreecommitdiff
path: root/src/conf_mode
diff options
context:
space:
mode:
authorhagbard <vyosdev@derith.de>2019-03-06 13:41:17 -0800
committerhagbard <vyosdev@derith.de>2019-03-06 13:41:17 -0800
commita6ae2cb2bcefea2d3f48cb3b4397e8e5947af748 (patch)
tree408c53043e05e71997bf4f5bf833e5b3276a0698 /src/conf_mode
parent7ab4a6fdec88bdf61e5e450803138762abad2256 (diff)
downloadvyos-1x-a6ae2cb2bcefea2d3f48cb3b4397e8e5947af748.tar.gz
vyos-1x-a6ae2cb2bcefea2d3f48cb3b4397e8e5947af748.zip
[pptp] implementing MPPE 128-bit stateless compression option
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-xsrc/conf_mode/accel_pptp.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/conf_mode/accel_pptp.py b/src/conf_mode/accel_pptp.py
index 257c2f18e..6c53e8dd4 100755
--- a/src/conf_mode/accel_pptp.py
+++ b/src/conf_mode/accel_pptp.py
@@ -87,6 +87,10 @@ wins2={{wins[1]}}
bind={{outside_addr}}
verbose=5
ppp-max-mtu={{mtu}}
+mppe={{authentication['mppe']}}
+echo-interval=10
+echo-failure=3
+
[client-ip-range]
0.0.0.0/0
@@ -185,7 +189,8 @@ def get_config():
'local-users' : {
},
'radiussrv' : {},
- 'auth_proto' : 'auth_mschap_v2'
+ 'auth_proto' : 'auth_mschap_v2',
+ 'mppe' : 'require'
},
'outside_addr' : '',
'dns' : [],
@@ -278,6 +283,9 @@ def get_config():
if c.return_value('authentication require') == 'mschap-v2':
config_data['authentication']['auth_proto'] = 'auth_mschap_v2'
+ if c.exists('authentication mppe'):
+ config_data['authentication']['mppe'] = c.return_value('authentication mppe')
+
return config_data
def verify(c):