Commit 4a77e5c6 authored by Ad Schellevis's avatar Ad Schellevis

(filter) trash disablevpnrules in pptpd

parent 2466822b
...@@ -342,7 +342,7 @@ function filter_core_rules_system($fw, $defaults) ...@@ -342,7 +342,7 @@ function filter_core_rules_system($fw, $defaults)
// TODO: move to pptpd plugin when filter.lib.inc is part of the standard release // TODO: move to pptpd plugin when filter.lib.inc is part of the standard release
$pptpdcfg = $config['pptpd']; $pptpdcfg = $config['pptpd'];
if (isset($pptpdcfg['mode']) && $pptpdcfg['mode'] == 'server' && !isset($config['system']['disablevpnrules'])) { if (isset($pptpdcfg['mode']) && $pptpdcfg['mode'] == 'server') {
$fw->registerFilterRule(5, $fw->registerFilterRule(5,
array('direction' => 'in', 'interface' => 'wan', 'statetype' => 'modulate','protocol' => 'tcp', array('direction' => 'in', 'interface' => 'wan', 'statetype' => 'modulate','protocol' => 'tcp',
'to' => '(self)', 'to_port' => '1723', 'quick' => false, 'label' =>'allow pptpd'), 'to' => '(self)', 'to_port' => '1723', 'quick' => false, 'label' =>'allow pptpd'),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment