summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-08-25 20:11:52 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-08-25 20:11:52 +0000
commit1b5f08e252b4e828e29b52e3e06027d270ecf140 (patch)
tree5655af7993458c876c997ca3e0eca1e906ce5f49 /etc/inc
parentb1b55ed213182ead905748212ec0b2c4693cebc7 (diff)
downloadpfsense-1b5f08e252b4e828e29b52e3e06027d270ecf140.zip
pfsense-1b5f08e252b4e828e29b52e3e06027d270ecf140.tar.gz
Do not process reply-to for a rule with its gateway set.
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/filter.inc7
1 files changed, 5 insertions, 2 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index c411aea..123014c 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -1348,8 +1348,11 @@ function generate_user_filter_rule($rule, $ngcounter) {
if(file_exists("/tmp/{$rule['if']}_router"))
$rg = file_get_contents("/tmp/{$rule['if']}_router");
- if($rg <> "" and $ri <> "" and stristr($rule['interface'],"opt") == true) {
- $line .= "reply-to (" . $ri . " " . $rg . ") ";
+ /* do not process reply-to for gateway'd rules */
+ if($rule['gateway'] == "") {
+ if($rg <> "" and $ri <> "" and stristr($rule['interface'],"opt") == true) {
+ $line .= "reply-to (" . $ri . " " . $rg . ") ";
+ }
}
/* if user has selected a custom gateway, lets work with it */
OpenPOWER on IntegriCloud