diff options
Diffstat (limited to 'src')
-rwxr-xr-x | src/conf_mode/accel_pptp.py | 10 |
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): |