diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-04-16 23:42:59 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-04-16 23:42:59 +0000 |
commit | de283d92e9076ff5e03f3dc6876f76ffb6fe1407 (patch) | |
tree | ad309caa54695b1c5f4b21a4c9b65e2c595ce6b9 /etc | |
parent | f79c2150b9aceb1b9577222da1bf9f920406149a (diff) | |
download | pfsense-de283d92e9076ff5e03f3dc6876f76ffb6fe1407.zip pfsense-de283d92e9076ff5e03f3dc6876f76ffb6fe1407.tar.gz |
MFC 11471
don't wrap curlies around destination host in port forward - this fixes the destination "any" issue reported on the forum
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/filter.inc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index 2b84716..d5fc90e 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -799,10 +799,10 @@ function filter_nat_rules_generate() { if($extport[0]) $natrules .= "rdr on $natif proto {$rule['protocol']} from any to {$extaddr} port { {$extport[0]} } -> {$target}{$localport}"; else - $natrules .= "rdr on $natif proto {$rule['protocol']} from any to { {$extaddr} } -> {$target}{$localport}"; + $natrules .= "rdr on $natif proto {$rule['protocol']} from any to {$extaddr} -> {$target}{$localport}"; break; default: - $natrules .= "rdr on $natif proto {$rule['protocol']} from any to { {$extaddr} } -> {$target}"; + $natrules .= "rdr on $natif proto {$rule['protocol']} from any to {$extaddr} -> {$target}"; break; } } else { @@ -812,10 +812,10 @@ function filter_nat_rules_generate() { break; case "udp": case "tcp": - $natrules .= "{$nordr}rdr on $natif proto {$rule['protocol']} from any to { {$extaddr} } port {$extport[0]}:{$extport[1]} -> {$target}{$localport}:*"; + $natrules .= "{$nordr}rdr on $natif proto {$rule['protocol']} from any to {$extaddr} port {$extport[0]}:{$extport[1]} -> {$target}{$localport}:*"; break; default: - $natrules .= "{$nordr}rdr on $natif proto {$rule['protocol']} from any to { {$extaddr} } -> {$target}"; + $natrules .= "{$nordr}rdr on $natif proto {$rule['protocol']} from any to {$extaddr} -> {$target}"; } } } |