diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-10-12 17:13:00 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-10-12 17:13:00 +0000 |
commit | 5de75aefaf71c34a7cca411a3d988b62df4bf5a6 (patch) | |
tree | f77430c0587f4a1b69406430df67b84fe6adce25 /etc | |
parent | afb07cf1534c335bc9cffd49f00ba171cea5702c (diff) | |
download | pfsense-5de75aefaf71c34a7cca411a3d988b62df4bf5a6.zip pfsense-5de75aefaf71c34a7cca411a3d988b62df4bf5a6.tar.gz |
Handle multiple port aliases correctly
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/filter.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index 07feae0..79121f5 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -605,10 +605,10 @@ function filter_nat_rules_generate() { if ((!$extport[1]) || ($extport[0] == $extport[1])) { if($rule['protocol'] == "tcp/udp") $natrules .= - "rdr on $natif proto { tcp udp } from any to {$extaddr} port {$extport[0]} -> {$target} port {$localport}"; + "rdr on $natif proto { tcp udp } from any to {$extaddr} port { {$extport[0]} } -> {$target} port { {$localport} }"; else $natrules .= - "rdr on $natif proto {$rule['protocol']} from any to {$extaddr} port {$extport[0]} -> {$target} port {$localport}"; + "rdr on $natif proto {$rule['protocol']} from any to {$extaddr} port { {$extport[0]} } -> {$target} port { {$localport} }"; } else { if($rule['protocol'] == "tcp/udp") |