diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-12-27 19:47:34 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-12-27 19:47:34 +0000 |
commit | 12bc1cf858b372067e076f55a8779e56d6eebfdb (patch) | |
tree | 812f33d00ebe08ef5f48d343125d8b1fa7e81ce1 | |
parent | 7cbad42249b75f023b7bd68d7523d5cb51d31a0d (diff) | |
download | pfsense-12bc1cf858b372067e076f55a8779e56d6eebfdb.zip pfsense-12bc1cf858b372067e076f55a8779e56d6eebfdb.tar.gz |
static routes need to add NAT entries for additional networks
Ticket #746
-rw-r--r-- | etc/inc/filter.inc | 8 |
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); + } + } } |