summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2008-12-19 23:15:36 +0000
committerErmal Luçi <eri@pfsense.org>2008-12-19 23:15:36 +0000
commit38fa8aea1a76b34948759ec558070c0f1eacf090 (patch)
tree9d0d49d5206185740c671b8b40c535208c4fdc3c /etc
parent77e858f0876ecaf150d46a25f3aad4e788776a06 (diff)
downloadpfsense-38fa8aea1a76b34948759ec558070c0f1eacf090.zip
pfsense-38fa8aea1a76b34948759ec558070c0f1eacf090.tar.gz
It does not make sense to add reply-to to block rules even though pf parses that.
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 14454e1..1f004e2 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -1237,7 +1237,7 @@ function generate_user_filter_rule($rule)
$foundlb = 0;
/* do not process reply-to for gateway'd rules */
- if ($rule['gateway'] == "" && interface_has_gateway($rule['interface'])) {
+ if ($rule['gateway'] == "" && interface_has_gateway($rule['interface']) && $type == "pass") {
$rg = get_interface_gateway($rule['interface']);
if (is_ipaddr($rg)) {
$aline['reply'] = "reply-to ( {$ifcfg['if']} {$rg} ) ";
OpenPOWER on IntegriCloud