diff options
author | Erik Fonnesbeck <efonnes@gmail.com> | 2010-03-04 19:40:50 -0700 |
---|---|---|
committer | Erik Fonnesbeck <efonnes@gmail.com> | 2010-03-04 19:40:50 -0700 |
commit | 2993dcc2460c6befe73633d842c7cdc59e24fabc (patch) | |
tree | b2c7ebbd185ad7c951eb9bde2d2eee5575d18e5f /etc/inc | |
parent | 27c0c7c6fbcb9b960e93d87ec6d117076b55c9c6 (diff) | |
download | pfsense-2993dcc2460c6befe73633d842c7cdc59e24fabc.zip pfsense-2993dcc2460c6befe73633d842c7cdc59e24fabc.tar.gz |
Ticket #402. Check for external address of "any" on port forwards, since alias_expand only returns null in that case, and the port forward code would then use the IP address as the fallback.
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/filter.inc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index bb7cbbd..4070117 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -1098,6 +1098,8 @@ function filter_nat_rules_generate() { continue; $extaddr = alias_expand($rule['external-address']); + if($rule['external-address'] == "any") + $extaddr = "any"; if(!$extaddr) $extaddr = $FilterIflist[$natif]['ip']; $natif = $FilterIflist[$natif]['if']; |