summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2011-07-15 20:12:24 +0000
committerErmal <eri@pfsense.org>2011-07-15 20:12:24 +0000
commite5df770bb21116790c13fc7062941d4ee0031697 (patch)
tree5f49f7fce8c122d2858e3fd36cfe120b68ed65fe /etc
parentacebc1ec9a6b96f4a2c9f2b60a72d40af9b93d08 (diff)
downloadpfsense-e5df770bb21116790c13fc7062941d4ee0031697.zip
pfsense-e5df770bb21116790c13fc7062941d4ee0031697.tar.gz
Ticket #1552. Do not allow route-to to be set on block/reject rules for now. The issue is in the kernel but for 2.0 this protection is enough.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/filter.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index 20b032a..ff93db5 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -1934,7 +1934,7 @@ function filter_generate_user_rule($rule) {
}
}
/* if user has selected a custom gateway, lets work with it */
- else if($rule['gateway'] <> "") {
+ else if($rule['gateway'] <> "" && $type == "pass") {
if (isset($GatewaysList[$rule['gateway']]))
/* Add the load balanced gateways */
$aline['route'] = " \$GW{$rule['gateway']} ";
OpenPOWER on IntegriCloud