summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--etc/inc/filter.inc8
1 files changed, 8 insertions, 0 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index 778d23a..8c4633d 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -536,6 +536,14 @@ function filter_nat_rules_generate() {
"{$pppoecfg['remoteip']}/{$pppoe_subnet}");
}
+ /* static routes */
+ if (is_array($config['staticroutes']['route'])) {
+ foreach ($config['staticroutes']['route'] as $route) {
+ if ($route['interface'] != "wan")
+ $natrules .= filter_nat_rules_generate_if($wanif,
+ $route['network'], "", null);
+ }
+ }
}
OpenPOWER on IntegriCloud