1. install the server
sudo apt-get install tftp-server [ubuntu]
or
sudo yum install tftp-server [fedora ]
2. edit config file /etc/xinetd.d/tftp, enable the service by changing
"disable = yes" to "disable = no"
you may want to change the default tftp location by modifying the server args with your choice of location.
3. Check the service and restart the super server
sudo chkconfig tftp on
sudo chkconfig xinetd on
sudo service xinetd restart
4. Unit testing
A. Check if the port is opened
sudo nmap -sU 127.0.0.1 -> you should find tftp for UDP/69
B. test from same host,
tftp 127.0.0.1
tftp> get
C. If tftp fails, there can be issue with firewall setting, you may need to create pinhole for the same.
else there can be access/permission issue with the directory/file.
D. Try from remote host.
No comments:
Post a Comment