CentOS Icon CentOS Logo
CentOS Text
   
  
www.centos.org Forum Index
   CentOS 6 - Software Support
  Unable to transfer via TFTP

 

 Bottom   Previous Topic   Next Topic
  •  Rate Thread
      Rate this Thread
      Excellent
      Good
      Average
      Bad
      Terrible
Poster Thread
  •  zladson
      zladson
Unable to transfer via TFTP
#1
Peeking in the Member Window
Joined: 2012/5/22
From
Posts: 11
I have been tasked to configure a FTP and TFTP server. I have the FTP server working great. The TFTP server on the other hand, is giving me some troubles. I am using xinetd. I can see the connection establish in my /var/log/message file and I can even see the PID for in.tftp. SElinux and IP tables are disabled for testing purposes. Below are the output of my xinetd and tftp files as well as the /var/log/messages. ANy ideas where to go from here. I am fairly new to linux, a few classes in college and some work here and there at my current job. Thanks in advanced for any support, weather or not it is helpful.

xinetd output (this has not been changed by me at all)

# The next two items are intended to be a quick access place to
# temporarily enable or disable services.
#
#       enabled         =
#       disabled        =

# Define general logging characteristics.
        log_type        = SYSLOG daemon info
        log_on_failure  = HOST
        log_on_success  = PID HOST DURATION EXIT

# Define access restriction defaults
#
#       no_access       =
#       only_from       =
#       max_load        = 0
        cps             = 50 10
        instances       = 50
        per_source      = 10

# Address and networking defaults
#
#       bind            =
#       mdns            = yes
        v6only          = no

# setup environmental attributes
#
#       passenv         =
        groups          = yes
        umask           = 002

# Generally, banners are not used. This sets up their global defaults
#
#       banner          =
#       banner_fail     =
#       banner_success  =
}

includedir /etc/xinetd.d


tftp output (a few modification which have *** next to them)
# 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
{
        socket_type             = dgram
        protocol                = udp
        wait                    = yes
        user                    = root
        server                  = /usr/sbin/in.tftpd
        server_args             = /etc/hosted********
        disable                 = no***********
        per_source              = 11
        cps                     = 100 2
        flags                   = IPv4
}
[Moderator edit: Added code tags to preserve formatting.]

The hosted directory listed above has been chomod 766 and chmod 777, neither seem to work.

/var/log/message output

May 22 10:57:46 Hosted_Provisioning xinetd[1039]: START: tftp pid=1184 from=64.25.224.20
May 22 11:13:34 Hosted_Provisioning xinetd[1039]: EXIT: tftp status=0 pid=1184 duration=948(sec)

I notice that the start and exit times are a ways apart, although I don't know what this signifies. The services are started and running as well as set to on via chkconfig.

Again thanks for any help and I can post any other information that i need to. Thank you.
Posted on: 2012/5/22 17:23
Create PDF from Post Print
Top
  •  gerald_clark
      gerald_clark
Re: Unable to transfer via TFTP
#2
Professional Board Member
Joined: 2005/8/5
From Northern Illinois, USA
Posts: 6184
You have changed server_args from the default of '-s /var/lib/tftpboot'.
Put it back, and get it working before you make changes.
Posted on: 2012/5/22 17:47
Create PDF from Post Print
Top
  •  zladson
      zladson
Re: Unable to transfer via TFTP
#3
Peeking in the Member Window
Joined: 2012/5/22
From
Posts: 11
Yes I have, i have also left -s /var/lib/tftpboot in there and it still did not work. I will, however, put it back until we have come up with a solution. I have also chmod 766 and chmod 777 that directory to no avail. This was after i tested with everything defaulted. Thanks.


Edit:
Current output of /etc/xinet.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
{
        socket_type             = dgram
        protocol                = udp
        wait                    = yes
        user                    = root
        server                  = /usr/sbin/in.tftpd
        server_args             = -s /var/lib/tftpboot              (Permissions: 766)
        disable                 = no
        per_source              = 11
        cps                     = 100 2
        flags                   = IPv4
}
[Moderator edit: Added code tags to preserve formatting.]
Posted on: 2012/5/22 18:37
Create PDF from Post Print
Top
  •  zladson
      zladson
Re: Unable to transfer via TFTP
#4
Peeking in the Member Window
Joined: 2012/5/22
From
Posts: 11
Is it possible that my FTP configurations are messing with my TFTP server. I know that I am not allowing anonymous to log into the FTP server, could this be affecting the anonymous login for TFTP?
Posted on: 2012/5/23 16:26
Create PDF from Post Print
Top
  •  zladson
      zladson
Re: Unable to transfer via TFTP
#5
Peeking in the Member Window
Joined: 2012/5/22
From
Posts: 11
It is not causing issue. I disabled vstfpd and I am still getting the same issues with TFTP.
Posted on: 2012/5/23 17:47
Create PDF from Post Print
Top
  •  pschaff
      pschaff
Re: Unable to transfer via TFTP
#6
Moderator
Joined: 2006/12/13
From Tidewater, Virginia, North America
Posts: 18773
What is needed from tftp that vsftpd cannot provide?
_________________
Phil

Recommended reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions
Posted on: 2012/5/23 21:46
Create PDF from Post Print
Top
  •  zladson
      zladson
Re: Unable to transfer via TFTP
#7
Peeking in the Member Window
Joined: 2012/5/22
From
Posts: 11
Forgive me, but I do not think I understand the question. VSFTPD is my FTP server. I am trying to setup TFTP as well. FTP cannot provide me TFTP. I have devices that will not allow FTP but will allow TFTP. I am going to look a little deeper into VSFTPD now, as your response leads me to believe that it is capable of TFTP as well. Correct me if I am wrong. Thanks.
Posted on: 2012/5/24 13:44
Create PDF from Post Print
Top
  •  zladson
      zladson
Re: Unable to transfer via TFTP
#8
Peeking in the Member Window
Joined: 2012/5/22
From
Posts: 11
So after looking a little further into VSFTPD and speaking with one of my Sr. Engineers, it is not capable of TFTP. I am confused by your question now. I don't see how VSFTPD has anything to do with TFTP. Thanks.
Posted on: 2012/5/24 14:03
Create PDF from Post Print
Top
  •  pschaff
      pschaff
Re: Unable to transfer via TFTP
#9
Moderator
Joined: 2006/12/13
From Tidewater, Virginia, North America
Posts: 18773
I was just trying to clarify the requirements, as many people try to inappropriately use TFTP where anonymous FTP would do the job better. If you need TFTP for things like booting diskless clients, then it is the right tool for the job. If your knowledgeable Sr. Engineer says it is required then that is likely the case, but the requirement was not been made clear in your initial question - although I now see I missed the clue "server_args = -s /var/lib/tftpboot" in a later post.

With vsftpd out of the picture hopefully someone knowledgeable about the use of TFTP for providing boot services can advise.
_________________
Phil

Recommended reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions
Posted on: 2012/5/24 14:14
Create PDF from Post Print
Top
  •  zladson
      zladson
Re: Unable to transfer via TFTP
#10
Peeking in the Member Window
Joined: 2012/5/22
From
Posts: 11
I see, thank you. Just to clarify a little further, I am not booting disk-less clients. I am setting up a provisioning server for many different hosted phone solutions. Some of the phones, Cisco SPA series to be exact, do not allow for FTP. This is why I need the TFTP server. It is literally just a get command it sends to pull the preexisting configuration from the server to the phone.
Posted on: 2012/5/24 14:28
Create PDF from Post Print
Top
  •  zladson
      zladson
Re: Unable to transfer via TFTP
#11
Peeking in the Member Window
Joined: 2012/5/22
From
Posts: 11
I have created a blank server with just TFTP running on it. I am still having the same issues.
Posted on: 2012/5/29 21:39
Create PDF from Post Print
Top
  •  pschaff
      pschaff
Re: Unable to transfer via TFTP
#12
Moderator
Joined: 2006/12/13
From Tidewater, Virginia, North America
Posts: 18773
Exactly what errors are you seeing from the clients? Do you see anything relevant in the logs on the server?
_________________
Phil

Recommended reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions
Posted on: 2012/5/29 22:35
Create PDF from Post Print
Top
  •  zladson
      zladson
Re: Unable to transfer via TFTP
#13
Peeking in the Member Window
Joined: 2012/5/22
From
Posts: 11
The logs are posted above. My client just times out.
Posted on: 2012/5/30 13:33
Create PDF from Post Print
Top
  •  pschaff
      pschaff
Re: Unable to transfer via TFTP
#14
Moderator
Joined: 2006/12/13
From Tidewater, Virginia, North America
Posts: 18773
Perhaps asking the obvious, but is port number 69 open? Have you tried temporarily stopping iptables?
_________________
Phil

Recommended reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions
Posted on: 2012/5/30 14:25
Create PDF from Post Print
Top
  •  zladson
      zladson
Re: Unable to transfer via TFTP
#15
Peeking in the Member Window
Joined: 2012/5/22
From
Posts: 11
Iptables and Selinux are disabled. I have port 69 punch through the firewall. I can see my connection hit the server, but my client eventually times out. Once the first connection has hit i am unable to establish a second connection until the first one eventually times out. (see the above /var/log/message output.)
Posted on: 2012/5/30 16:47
Create PDF from Post Print
Top
  •  zladson
      zladson
Re: Unable to transfer via TFTP
#16
Peeking in the Member Window
Joined: 2012/5/22
From
Posts: 11
Removed user, flags, per source and pcf from /etc/xinetd.d/tftp. It now works internally via localhost and another server on the same subnet. Made some firewall adjustments and it is now working across the board.
Posted on: 2012/6/1 21:07
Create PDF from Post Print
Top
  •  pschaff
      pschaff
Re: Unable to transfer via TFTP
#17
Moderator
Joined: 2006/12/13
From Tidewater, Virginia, North America
Posts: 18773
Sounds good. Next steps: Start iptables, and if that works put SELinux in Enforcing mode.
_________________
Phil

Recommended reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions
Posted on: 2012/6/1 23:44
Create PDF from Post Print
Top
 Top   Previous Topic   Next Topic

 


 You cannot start a new topic.
 You can view topic.
 You cannot reply to posts.
 You cannot edit your posts.
 You cannot delete your posts.
 You cannot add new polls.
 You cannot vote in polls.
 You cannot attach files to posts.
 You cannot post without approval.




"Linux" is a registered trademark of Linus Torvalds. | All other trademarks are property of their respective owners. | All other content is Copyright @ 2004-2009 by the CentOS Project or "each individual contributor (forums, comments, etc.) unless otherwise assigned".| Theme based on a theme by 7dana.com