summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-02-15 00:05:51 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-02-15 00:05:51 +0000
commit564a42cf8ed83ba5669eacefefebe6c44112fefc (patch)
treec92e6a098bc8a1967598335e04a9858561d12aa1 /etc
parent1e024d52afe16ba90075841f82e099e8a6d23cf8 (diff)
downloadpfsense-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.inc8
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";
OpenPOWER on IntegriCloud