From 28506915d3945681f38bc89c0832d2bb093aa47a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ermal=20Lu=E7i?= Date: Thu, 18 Jun 2009 18:05:16 +0000 Subject: Restor previous NEGATE behaviour for 'any' destination behaviour --- etc/inc/filter.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index 73e5bf8..8ef1e1f 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -1500,7 +1500,7 @@ function generate_user_filter_rule($rule) /* exception(s) to a user rules can go here. */ /* rules with a gateway or pool should create another rule for routing to vpns */ - if (($aline['route'] <> "") && (trim($aline['type']) == "pass") && (trim($dst) == "any")) { + if (($aline['route'] <> "") && (trim($aline['type']) == "pass") && strstr($dst, "any")) { /* negate VPN/PPTP/PPPoE networks for load balancer/gateway rules */ $vpns = " to "; $line .= $aline['type'] . $aline['direction'] . $aline['log'] . $aline['quick'] . @@ -2291,4 +2291,4 @@ EOD; return($ipfrules); } -?> \ No newline at end of file +?> -- cgit v1.1