diff options
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/filter.inc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index 2f61056..10ee1e8 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -1102,6 +1102,10 @@ function filter_nat_rules_generate() { $natif = "wan"; else $natif = $rule['interface']; + + if (!isset($FilterIflist[$natif])) + continue; + $extaddr = alias_expand($rule['external-address']); if(!$extaddr) $extaddr = $FilterIflist[$natif]['ip']; |