LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   TFTP keeps timing out (https://www.linuxquestions.org/questions/linux-newbie-8/tftp-keeps-timing-out-743923/)

Treikayan 07-30-2009 09:58 AM

TFTP keeps timing out
 
Hello,

I have installed TFTP Server on CentOS 5.1 but I'm having a problem getting it to work. It keeps timing out.

PACKAGES INSTALLED:
xinetd tftp tftp-server

chkconfig on xinetd
chkconfig on tftp

service xinetd restart
Stopping xinetd: [ OK ]
Starting xinetd: [ OK ]
.
.

TFTP CONFIG:

Code:

[root@ ~ tftpboot]# less /etc/xinetd.d/tftp
# default: off
# description: The tftp server serves files using the trivial file transfer \
#      protocol.  The tftp protocol is often used to boot diskless \
#      workstations, download configuration files to network-aware printers, \
#      and to start the installation process for some operating systems.
service tftp
{
        disable = no
        socket_type            = dgram
        protocol                = udp
        wait                    = yes
        user                    = root
        server                  = /usr/sbin/in.tftpd
        server_args            = -s /tftpboot -u root -c
        per_source              = 11
        cps                    = 100 2
        flags                  = IPv4
}

FIREWALL SETTINGS:

Quote:

.
.
ACCEPT tcp -- 0-224-93-208.~ .net/22 anywhere tcp state NEW
ACCEPT udp -- 0-224-93-208. ~ .net/22 anywhere udp dpt:tftp state NEW
Source server and Destination server are both on the same subnet (from iptables listing)!

Quote:

[root@ ~ Desktop]# tftp -v 208.93.224.250 -c put test.txt
Connected to 208.93.224.250 (208.93.224.250), port 69
putting test.txt to 208.93.224.250:test.txt [netascii]
Transfer timed out.
After the source server says timed out. I checked the destination server (/tftpboot) and I have *part* of the file, but with no data in the file. Could someone assist me on how to fix this? Thank you.

colucix 07-30-2009 10:11 AM

I have had the same problem (on my Centos 5.3) some time ago, then I found that I had to install the hpa version. I downloaded tftp-hpa-5.0.tar.gz from http://www.kernel.org/pub/software/network/tftp/, I compiled using
Code:

./configure --without-tcpwrappers --without-ipv6
then it worked like a bomb! Hope this helps.

Treikayan 07-30-2009 11:59 AM

Thank you. I downloaded the same version, but I don't think it's installing properly. Is this version compatible with CentOS 5.1? I'm still having the same problem with TFTP.

Treikayan 07-30-2009 12:56 PM

Quote:

Originally Posted by Treikayan (Post 3625681)
Thank you. I downloaded the same version, but I don't think it's installing properly. Is this version compatible with CentOS 5.1? I'm still having the same problem with TFTP.

Still not working and I took a tethereal capture

Code:

|Time    | 208.93.224.249    | 208.93.224.250    |
|0.000    |        Write Request, File          |TFTP: Write Request, File: test.txt\000, Transfer type: netascii\000
|        |(34392)  ------------------>  (69)    |
|0.078    |        Acknowledgement, Bl          |TFTP: Acknowledgement, Block: 0
|        |(34392)  <------------------  (42942)  |
|0.078    |        Destination unreach          |ICMP: Destination unreachable (Host administratively prohibited)
|        |(42942)  ------------------>  (34392)  |
|5.001    |        Write Request, File          |TFTP: Write Request, File: test.txt\000, Transfer type: netascii\000
|        |(34392)  ------------------>  (69)    |
|5.006    |        Acknowledgement, Bl          |TFTP: Acknowledgement, Block: 0
|        |(34392)  <------------------  (42942)  |
|5.006    |        Destination unreach          |ICMP: Destination unreachable (Host administratively prohibited)
|        |(42942)  ------------------>  (34392)  |
|10.003  |        Write Request, File          |TFTP: Write Request, File: test.txt\000, Transfer type: netascii\000
|        |(34392)  ------------------>  (69)    |
|10.008  |        Acknowledgement, Bl          |TFTP: Acknowledgement, Block: 0
|        |(34392)  <------------------  (42942)  |
|10.008  |        Destination unreach          |ICMP: Destination unreachable (Host administratively prohibited)
|        |(42942)  ------------------>  (34392)  |
|15.005  |        Write Request, File          |TFTP: Write Request, File: test.txt\000, Transfer type: netascii\000
|        |(34392)  ------------------>  (69)    |
|15.009  |        Acknowledgement, Bl          |TFTP: Acknowledgement, Block: 0
|        |(34392)  <------------------  (42942)  |
|15.009  |        Destination unreach          |ICMP: Destination unreachable (Host administratively prohibited)
|        |(42942)  ------------------>  (34392)  |
|20.007  |        Write Request, File          |TFTP: Write Request, File: test.txt\000, Transfer type: netascii\000
|        |(34392)  ------------------>  (69)    |
|20.011  |        Acknowledgement, Bl          |TFTP: Acknowledgement, Block: 0
|        |(34392)  <------------------  (42942)  |
|20.011  |        Destination unreach          |ICMP: Destination unreachable (Host administratively prohibited)
|        |(42942)  ------------------>  (34392)  |

[root@ ~ tftpboot]# /usr/sbin/in.tftpd -V
tftp-hpa 5.0, with remap, without tcpwrappers

abath 10-05-2009 09:11 AM

Quote:

Originally Posted by Treikayan (Post 3625739)
Still not working and I took a tethereal capture

hi, did you get this working after all? I've got the same problem and am struggling to find a decent solution.


All times are GMT -5. The time now is 11:42 AM.