diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-11-21 17:52:51 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-11-21 17:52:51 +0000 |
commit | a12a67aff9faa32757a2994ce5b6a6c44d5405c4 (patch) | |
tree | e8a9957e997ffab63a655ef37d8958b76a136d14 /etc | |
parent | f4c9d1380eaf8ce687408984562cb36fed934f24 (diff) | |
download | pfsense-a12a67aff9faa32757a2994ce5b6a6c44d5405c4.zip pfsense-a12a67aff9faa32757a2994ce5b6a6c44d5405c4.tar.gz |
MFC 7931
Correctly setup inetd items for tcp and udp
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/filter.inc | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index a8b6378..5ca032b 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -696,12 +696,13 @@ function filter_nat_rules_generate() { for($x=$extport[0]; $x<$range_end; $x++) { - if($rule['protocol'] == "tcp/udp") + if($rule['protocol'] == "tcp/udp") { $protocol = "{ tcp udp }"; - else + fwrite($fd, "{$starting_localhost_port}\tstream\ttcp/udp\tnowait\tnobody\t/usr/bin/nc nc -w 20 {$target} {$x}\n"); + } else { $protocol = $rule['protocol']; - - fwrite($fd, "{$starting_localhost_port}\tstream\t{$protocol}\tnowait\tnobody\t/usr/bin/nc nc -w 20 {$target} {$x}\n"); + fwrite($fd, "{$starting_localhost_port}\tstream\t{$protocol}\tnowait\tnobody\t/usr/bin/nc nc -w 20 {$target} {$x}\n"); + } $natrules .= "rdr on {$ifname_real} proto {$protocol} from any to {$extaddr} port { {$x} } -> 127.0.0.1 port {$starting_localhost_port}\n"; @@ -2130,4 +2131,4 @@ function return_vpn_subnet($adr) { return " # error - {$adr['network']} "; } -?>
\ No newline at end of file +?> |