diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-08-29 21:36:03 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-08-29 21:36:03 +0000 |
commit | e5098817d2f16a4034b4781f9a4bf6069b7c1d8d (patch) | |
tree | 19c59cd0cbbbe9846be8cf81b7c249e72807afaa | |
parent | 33c702ad7099aa95011dbcd312a6dfbb48ce94b4 (diff) | |
download | pfsense-e5098817d2f16a4034b4781f9a4bf6069b7c1d8d.zip pfsense-e5098817d2f16a4034b4781f9a4bf6069b7c1d8d.tar.gz |
NAT reflection is created for the int. instead for the ext. port
Ticket #1088
-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 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++; } |