diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-02-15 00:05:51 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-02-15 00:05:51 +0000 |
commit | 564a42cf8ed83ba5669eacefefebe6c44112fefc (patch) | |
tree | c92e6a098bc8a1967598335e04a9858561d12aa1 /etc | |
parent | 1e024d52afe16ba90075841f82e099e8a6d23cf8 (diff) | |
download | pfsense-564a42cf8ed83ba5669eacefefebe6c44112fefc.zip pfsense-564a42cf8ed83ba5669eacefefebe6c44112fefc.tar.gz |
No need for 2 carriage returns after rdr rule.
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 a11d6b3..fad58b2 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -815,20 +815,20 @@ 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 {$rule['local-port']}\n"; + "rdr on $natif proto { tcp udp } from any to {$extaddr} port {$extport[0]} -> {$target} port {$rule['local-port']}"; else $natrules .= - "rdr on $natif proto " . $rule['protocol'] . " from any to {$extaddr} port {$extport[0]} -> {$target} port {$rule['local-port']}\n"; + "rdr on $natif proto " . $rule['protocol'] . " from any to {$extaddr} port {$extport[0]} -> {$target} port {$rule['local-port']}"; } else { if($rule['protocol'] == "tcp/udp") $natrules .= "rdr on $natif proto { tcp udp } from any to {$extaddr} port {$extport[0]}:{$extport[1]} -> {$target} port {$extport[0]}:{$extport[1]}" . - "-> {$target} \n"; + "-> {$target}"; else $natrules .= "rdr on $natif proto " . $rule['protocol']. " from any to {$extaddr} port {$extport[0]}:{$extport[1]} -> {$target} port {$extport[0]}:{$extport[1]}" . - "-> {$target} \n"; + "-> {$target}"; } $natrules .= "\n"; |