diff options
author | Bill Marquette <billm@pfsense.org> | 2008-01-27 23:58:37 +0000 |
---|---|---|
committer | Bill Marquette <billm@pfsense.org> | 2008-01-27 23:58:37 +0000 |
commit | 94c0939e65813351964239d14d35143e41a1bf71 (patch) | |
tree | 52ff2bb18ff202487fd2b50694d2aa5b091b3a21 /etc | |
parent | 2b97067c5424f7ae0c31c8ab34e967b515f1cf8f (diff) | |
download | pfsense-94c0939e65813351964239d14d35143e41a1bf71.zip pfsense-94c0939e65813351964239d14d35143e41a1bf71.tar.gz |
reply-to logic needed some touchups to handle the new gateway code also
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/filter.inc | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index ab1df4b..640e2c4 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -1645,8 +1645,15 @@ function generate_user_filter_rule($rule, $ngcounter) { } /* do not process reply-to for gateway'd rules */ - if(($rule['gateway'] == "") and ($ri != "") and ($rg != "") and (stristr($rule['interface'],"opt") == true)) { - $aline['reply'] = "reply-to (" . $ri . " " . $rg . ") "; + if(($rule['gateway'] == "") and (stristr($rule['interface'],"opt") == true)) { + foreach($config['gateways']['gateway_item'] as $gwy) { + if ($gwy['name'] == $config['interfaces'][$rule['interface']]['gateway']) { + $rg = $gwy['gateway']; + $aline['reply'] = "reply-to (" . $ri . " " . $rg . ") "; + break; + } + } + } /* if user has selected a custom gateway, lets work with it */ |