From 3d24150f4b01ea8700d82e68afdc09fa4f11ca46 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Tue, 31 May 2005 16:23:06 +0000 Subject: Do not process a rule that is attached to a disabled interface --- etc/inc/filter.inc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'etc') diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index b73cbbd..709551c 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -1272,6 +1272,10 @@ function generate_user_filter_rule($rule, $ngcounter) { return; } + /* do not process this rule if the attached interface is disabled */ + if(!$config['interfaces'][$rule['interface']]['enable']) + return; + $pptpdcfg = $config['pptpd']; if ($pptpdcfg['mode'] == "server") { -- cgit v1.1