TFTP Installation on CentOS 7:
# yum update
# yum install tftp tftp-server xinetd
<accept w/y and wait>
# vi /etc/xinetd.d/tftp
a. Change disable to No
b. Change the tftpboot folder to /tftpboot
server_args = -c -s /tftpboot
disable = no
If you are running SELinux, you'll need to allow the service to pass:
WARNING: This will also give anonymous access to the TFTP folder. In our case, we want this, as our SIP phones do not login.
# setsebool -P tftp_anon_write 1
Update the Firewall to allow port 69:
# iptables -I INPUT -p udp –dport 69 -j ACCEPT
To start the service manually:
# /etc/init.d/xinetd
start Starting xinetd:[ OK ]
To make it enabled to start with the system:
# chkconfig xinetd on
TFT Information:
The server config is at:
/etc/xinetd.d/tfp
(where tfp is the name of the conf file)
The folder where the server and the admin can place files is at:
/tftboot
Notes:
With FreePBX, fail2ban is also installed. If you need to re-image/firmware a 7941/61 with a new SIP version, you have to stop both services.
# service tftp stop
or
# systemctl stop tftp
For fail2ban:
# service fail2ban stop
previous page
|