diff options
-rw-r--r-- | etc/inc/filter.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index 6776b89..973fce6 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -1729,7 +1729,8 @@ EOD; foreach ($optcfg as $oc) { if (!$oc['bridge']) if($oc['sa'] <> "") - $ipfrules .= "block in $log quick on $wanif from {$oc['sa']}/{$oc['sn']} to any label \"interface spoof check\"\n"; + if(isset($oc['enable'])) + $ipfrules .= "block in $log quick on $wanif from {$oc['sa']}/{$oc['sn']} to any label \"interface spoof check\"\n"; } /* allow PPTP traffic if PPTP client is enabled on WAN */ |