From a6ae2cb2bcefea2d3f48cb3b4397e8e5947af748 Mon Sep 17 00:00:00 2001 From: hagbard Date: Wed, 6 Mar 2019 13:41:17 -0800 Subject: [pptp] implementing MPPE 128-bit stateless compression option --- src/conf_mode/accel_pptp.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/conf_mode/accel_pptp.py') 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): -- cgit v1.2.3