From 842fb73b8beca3ab991643f97170b30da2fbbb05 Mon Sep 17 00:00:00 2001 From: Chris Buechler Date: Sat, 17 Apr 2010 15:49:13 -0400 Subject: use 6969 for tftp-proxy --- etc/inc/filter.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index 1e3f692..12d07ef 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -1066,7 +1066,7 @@ function filter_nat_rules_generate() { $tftpifs = explode(",", $config['system']['tftpinterface']); foreach($tftpifs as $tftpif) { if ($FilterIflist[$tftpif]) - $natrules .= "rdr pass on {$FilterIflist[$tftpif]['if']} proto udp from any to any port tftp -> 127.0.0.1 port tftp\n"; + $natrules .= "rdr pass on {$FilterIflist[$tftpif]['if']} proto udp from any to any port tftp -> 127.0.0.1 port 6969\n"; } } @@ -1091,7 +1091,7 @@ function filter_nat_rules_generate() { // Open inetd.conf write handle $inetd_fd = fopen("/var/etc/inetd.conf","w"); /* add tftp protocol helper */ - fwrite($inetd_fd, "tftp\tdgram\tudp\twait\t\troot\t/usr/local/sbin/tftp-proxy\ttftp-proxy -v\n"); + fwrite($inetd_fd, "tftp-proxy\tdgram\tudp\twait\t\troot\t/usr/local/sbin/tftp-proxy\ttftp-proxy -v\n"); if(isset($config['nat']['rule'])) { if(!isset($config['system']['disablenatreflection'])) { @@ -2466,4 +2466,4 @@ function discover_pkg_rules($ruletype) { return $rules; } -?> +?> \ No newline at end of file -- cgit v1.1