Difference between revisions of "Troubleshoot TFTP"
Line 3: | Line 3: | ||
− | Create a file named test.txt with some content in /tftpboot path of the tftp server | + | '''Create a file''' named test.txt with some content in /tftpboot path of the tftp server |
<pre>sudo echo "Is my TFTP service working?" > /tftpboot/test.txt</pre> | <pre>sudo echo "Is my TFTP service working?" > /tftpboot/test.txt</pre> | ||
− | Try to get the file with Linux: | + | '''Try to get the file with Linux:''' |
<pre>tftp x.x.x.x | <pre>tftp x.x.x.x | ||
tftp> get test.txt | tftp> get test.txt | ||
Line 13: | Line 13: | ||
cat test.txt</pre> | cat test.txt</pre> | ||
− | Try to get the file with Windows: | + | '''Try to get the file with Windows:''' |
<pre>tftp x.x.x.x get test.txt</pre> | <pre>tftp x.x.x.x get test.txt</pre> | ||
Line 35: | Line 35: | ||
[[File:TFTP Windows Firewall.png]] | [[File:TFTP Windows Firewall.png]] | ||
+ | |||
+ | |||
+ | '''Disable & Stop Firewall in Fedora 21''' | ||
+ | <pre>systemctl disable firewalld.service</pre> | ||
+ | <pre>systemctl stop firewalld.service</pre> | ||
+ | Can be undone with "start" and "enable". | ||
+ | |||
+ | '''Check Firewall in Fedora 21''' | ||
+ | <pre>systemctl status firewalld.service</pre> | ||
+ | |||
+ | |||
+ | '''Check Firewall in Debian/Ubuntu''' | ||
+ | <pre>sudo iptables -L</pre> | ||
+ | |||
+ | |||
+ | If disabled, the output should look like this: | ||
+ | |||
+ | <pre>Chain INPUT (policy ACCEPT) | ||
+ | target prot opt source destination | ||
+ | |||
+ | Chain FORWARD (policy ACCEPT) | ||
+ | target prot opt source destination | ||
+ | |||
+ | Chain OUTPUT (policy ACCEPT) | ||
+ | target prot opt source destination</pre> |
Revision as of 13:25, 15 April 2015
Testing TFTP
Create a file named test.txt with some content in /tftpboot path of the tftp server
sudo echo "Is my TFTP service working?" > /tftpboot/test.txt
Try to get the file with Linux:
tftp x.x.x.x tftp> get test.txt //Sent 159 bytes in 0.0 seconds tftp> quit cat test.txt
Try to get the file with Windows:
tftp x.x.x.x get test.txt
Troubleshooting TFTP
To test from windows, TFTP Client must be installed and the Firewall must allow traffic through port 69.
Control Panel -> Programs and Features -> Turn Windows Features on or off -> TFTP Client
Temporarily turn off Windows Firewall to allow TFTP:
Disable & Stop Firewall in Fedora 21
systemctl disable firewalld.service
systemctl stop firewalld.service
Can be undone with "start" and "enable".
Check Firewall in Fedora 21
systemctl status firewalld.service
Check Firewall in Debian/Ubuntu
sudo iptables -L
If disabled, the output should look like this:
Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination