summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2010-04-17 15:49:13 -0400
committerChris Buechler <cmb@pfsense.org>2010-04-17 15:49:13 -0400
commit842fb73b8beca3ab991643f97170b30da2fbbb05 (patch)
tree09b3c82bc5e369ace52586414e3485d10296a610
parent09bbbebbcff5d516a03ffe9f54113c56e9a13009 (diff)
downloadpfsense-842fb73b8beca3ab991643f97170b30da2fbbb05.zip
pfsense-842fb73b8beca3ab991643f97170b30da2fbbb05.tar.gz
use 6969 for tftp-proxy
-rw-r--r--etc/inc/filter.inc6
1 files 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
OpenPOWER on IntegriCloud