summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--etc/inc/filter.inc8
1 files changed, 7 insertions, 1 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index af982d5..ab1df4b 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -1635,7 +1635,13 @@ function generate_user_filter_rule($rule, $ngcounter) {
$rg = file_get_contents("{$g['tmp_path']}/{$ri}_router");
$rg = rtrim($rg);
} elseif ($config['interfaces'][$rule['interface']]['gateway'] <> "") {
- $rg = $config['interfaces'][$rule['interface']]['gateway'];
+ $rgwy = $config['interfaces'][$rule['interface']]['gateway'];
+ foreach($config['gateways']['gateway_item'] as $gwy) {
+ if ($gwy['name'] == $rgw) {
+ $rg = $gwy['gateway'];
+ break;
+ }
+ }
}
/* do not process reply-to for gateway'd rules */
OpenPOWER on IntegriCloud