summaryrefslogtreecommitdiffstats
path: root/etc/inc/filter.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-08-29 21:36:03 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-08-29 21:36:03 +0000
commite5098817d2f16a4034b4781f9a4bf6069b7c1d8d (patch)
tree19c59cd0cbbbe9846be8cf81b7c249e72807afaa /etc/inc/filter.inc
parent33c702ad7099aa95011dbcd312a6dfbb48ce94b4 (diff)
downloadpfsense-e5098817d2f16a4034b4781f9a4bf6069b7c1d8d.zip
pfsense-e5098817d2f16a4034b4781f9a4bf6069b7c1d8d.tar.gz
NAT reflection is created for the int. instead for the ext. port
Ticket #1088
Diffstat (limited to 'etc/inc/filter.inc')
-rw-r--r--etc/inc/filter.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index 14b74b1..40fa18b 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -929,7 +929,7 @@ function filter_nat_rules_generate() {
foreach($toadd_array as $tda){
fwrite($inetd_fd, "{$starting_localhost_port}\tstream\ttcp/udp\tnowait/0\tnobody\t/usr/bin/nc nc -w 20 {$target} {$tda}\n");
if($ifname_real)
- $natrules .= "rdr on \${$ifname_real} proto {$protocol} from any to {$extaddr} port { {$tda} } -> 127.0.0.1 port {$starting_localhost_port}\n";
+ $natrules .= "rdr on \${$ifname_real} proto {$protocol} from any to {$extaddr} port { {$xxx} } -> 127.0.0.1 port {$starting_localhost_port}\n";
$xxx++;
$starting_localhost_port++;
}
@@ -955,7 +955,7 @@ function filter_nat_rules_generate() {
foreach($toadd_array as $tda){
fwrite($inetd_fd, "{$starting_localhost_port}\tstream\t{$protocol}\tnowait/0\tnobody\t/usr/bin/nc nc -w 20 {$target} {$tda}\n");
if($ifname_real)
- $natrules .= "rdr on \${$ifname_real} proto {$protocol} from any to {$extaddr} port { {$tda} } -> 127.0.0.1 port {$starting_localhost_port}\n";
+ $natrules .= "rdr on \${$ifname_real} proto {$protocol} from any to {$extaddr} port { {$xxx} } -> 127.0.0.1 port {$starting_localhost_port}\n";
$xxx++;
$starting_localhost_port++;
}
OpenPOWER on IntegriCloud