summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@sullrich-MacBookPro.local>2009-03-01 14:25:15 -0500
committerScott Ullrich <sullrich@sullrich-MacBookPro.local>2009-03-01 14:26:16 -0500
commit7ec890f32fd23134bb9456b4e63452bd3158a7cd (patch)
tree8f41c1128ceef302a3c8a14f51f94cfad6344e42 /etc
parentd2960c0e4295b0c29f58979dfdd9eba195eaa36f (diff)
downloadpfsense-7ec890f32fd23134bb9456b4e63452bd3158a7cd.zip
pfsense-7ec890f32fd23134bb9456b4e63452bd3158a7cd.tar.gz
Fix UDP NAT Reflection
Ticket #1528
Diffstat (limited to 'etc')
-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 9205461..c1a35ed 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -1008,10 +1008,10 @@ 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");
$natrules .= "rdr on {$ifname['if']} proto tcp from any to {$extaddr} port { {$xxx} } tag PFREFLECT -> 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");
$natrules .= "rdr on { {$ifname['if']} } proto udp from any to {$extaddr} port { {$xxx} } tag PFREFLECT -> 127.0.0.1 port {$starting_localhost_port}\n";
$xxx++;
$starting_localhost_port++;
OpenPOWER on IntegriCloud