mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
use 6969 for tftp-proxy
This commit is contained in:
parent
09bbbebbcf
commit
842fb73b8b
@ -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;
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
Loading…
Reference in New Issue
Block a user