diff options
author | Scott Ullrich <sullrich@sullrich-MacBookPro.local> | 2009-03-01 14:30:18 -0500 |
---|---|---|
committer | Scott Ullrich <sullrich@sullrich-MacBookPro.local> | 2009-03-01 14:30:18 -0500 |
commit | 53a063cdfd5dded324a97744ee20ea6ed090966b (patch) | |
tree | e8c2c5ad3159f5870d88f88955652ccea2024ee7 /etc | |
parent | 3cd08dda17ec7860ed931e359fa9388fe218e3a8 (diff) | |
download | pfsense-53a063cdfd5dded324a97744ee20ea6ed090966b.zip pfsense-53a063cdfd5dded324a97744ee20ea6ed090966b.tar.gz |
Fix UDP NAT Reflection
Ticket #1528
Diffstat (limited to 'etc')
-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 81d5010..46cb95e 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -1164,11 +1164,11 @@ function filter_nat_rules_generate() { $toadd_array[] = $loc_pt_translated; } foreach($toadd_array as $tda){ - fwrite($inetd_fd, "{$starting_localhost_port}\tstream\ttcp/udp\tnowait/0\tnobody\t/usr/bin/nc nc -u -w {$reflectiontimeout} {$target} {$tda}\n"); + fwrite($inetd_fd, "{$starting_localhost_port}\tstream\ttcp/udp\tnowait/0\tnobody\t/usr/bin/nc nc -w {$reflectiontimeout} {$target} {$tda}\n"); if($ifname_real) $natrules .= "rdr on \${$ifname_real} proto tcp from any to {$extaddr} port { {$xxx} } -> 127.0.0.1 port {$starting_localhost_port}\n"; $starting_localhost_port++; - fwrite($inetd_fd, "{$starting_localhost_port}\tstream\ttcp/udp\tnowait/0\tnobody\t/usr/bin/nc nc -w {$reflectiontimeout} {$target} {$tda}\n"); + fwrite($inetd_fd, "{$starting_localhost_port}\tstream\ttcp/udp\tnowait/0\tnobody\t/usr/bin/nc nc -u -w {$reflectiontimeout} {$target} {$tda}\n"); if($ifname_real) $natrules .= "rdr on \${$ifname_real} proto udp from any to {$extaddr} port { {$xxx} } -> 127.0.0.1 port {$starting_localhost_port}\n"; $xxx++; |