diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-10-12 18:02:20 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-10-12 18:02:20 +0000 |
commit | a25689564e9c89cdd37cfc408c62bd755b029cbe (patch) | |
tree | f197591440f919cc6a16861b8aad7983a3780793 /etc/inc | |
parent | e8c5095b89ec75499d04ec68bfe6b539531b4383 (diff) | |
download | pfsense-a25689564e9c89cdd37cfc408c62bd755b029cbe.zip pfsense-a25689564e9c89cdd37cfc408c62bd755b029cbe.tar.gz |
Remove port * from end of line and force logical mapping of ports being redirected
Diffstat (limited to 'etc/inc')
-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 d920f71..150385a 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} "; 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} "; } else { if($rule['protocol'] == "tcp/udp") |