mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Do not check for disabled nat reflection before installing tftp helper.
This commit is contained in:
parent
a38bf2457e
commit
06110a2a3a
@ -956,12 +956,12 @@ function filter_nat_rules_generate() {
|
||||
if (isset($config['nat']['rule'])) {
|
||||
$natrules .= "# NAT Inbound Redirects\n";
|
||||
|
||||
$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 -v\n");
|
||||
|
||||
if(!isset($config['system']['disablenatreflection'])) {
|
||||
$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 -v\n");
|
||||
|
||||
/* start redirects on port 19000 of localhost */
|
||||
$starting_localhost_port = 19000;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user