LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-30-2009, 09:58 AM   #1
Treikayan
Member
 
Registered: Oct 2008
Location: Albany Park, Chicago IL
Distribution: RHEL 5.1 i386
Posts: 75

Rep: Reputation: 15
Unhappy 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.
 
Old 07-30-2009, 10:11 AM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
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.
 
Old 07-30-2009, 11:59 AM   #3
Treikayan
Member
 
Registered: Oct 2008
Location: Albany Park, Chicago IL
Distribution: RHEL 5.1 i386
Posts: 75

Original Poster
Rep: Reputation: 15
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.
 
Old 07-30-2009, 12:56 PM   #4
Treikayan
Member
 
Registered: Oct 2008
Location: Albany Park, Chicago IL
Distribution: RHEL 5.1 i386
Posts: 75

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Treikayan View Post
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

Last edited by Treikayan; 07-30-2009 at 01:24 PM. Reason: Added tfpd -version
 
Old 10-05-2009, 09:11 AM   #5
abath
LQ Newbie
 
Registered: Oct 2009
Posts: 1

Rep: Reputation: 0
Quote:
Originally Posted by Treikayan View Post
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
after re-create tftp dir, tftp doesn't work anymore lastguy Linux - Networking 2 11-16-2007 03:33 PM
tftp issue, unable to transfer kernel image using tftp to boot ltsp-client noobs4linux Linux - Networking 1 02-07-2007 01:53 AM
how to start timing and print the timing result on portions of java codes ?? alred Programming 2 05-15-2006 10:00 AM
timing in c++ deveraux83 Programming 2 04-20-2004 05:34 PM
TFTP-Problem: TFTP timed out Bikerpete Linux - General 2 08-14-2003 05:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration