diff options
author | Ermal <eri@pfsense.org> | 2011-07-15 20:12:24 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2011-07-15 20:12:24 +0000 |
commit | e5df770bb21116790c13fc7062941d4ee0031697 (patch) | |
tree | 5f49f7fce8c122d2858e3fd36cfe120b68ed65fe /etc | |
parent | acebc1ec9a6b96f4a2c9f2b60a72d40af9b93d08 (diff) | |
download | pfsense-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.inc | 2 |
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']} "; |