TFTP time out error
-
- Posts: 1
- Joined: 2011/09/16 18:18:41
TFTP time out error
Hi
I am currently running CentOS 5.6 and trying to install and configure TFTP.
/etc/xinetd.d/tftp
[code]
# 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
per_source = 11
cps = 100 2
flags = IPv4
}[/code][Moderator edit: Added [i]code[/i] tags to preserve formatting.]
Started it /sbin/service xinetd start
When I try to TFTP from a client, I get a timeout. Reading through forums on the web someone mentioned testing it locally via tftp localhost. This times out as well.
I shutdown IPTables and SELinux.
Any assistance would be greatly appreciated.
Thanks
I am currently running CentOS 5.6 and trying to install and configure TFTP.
/etc/xinetd.d/tftp
[code]
# 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
per_source = 11
cps = 100 2
flags = IPv4
}[/code][Moderator edit: Added [i]code[/i] tags to preserve formatting.]
Started it /sbin/service xinetd start
When I try to TFTP from a client, I get a timeout. Reading through forums on the web someone mentioned testing it locally via tftp localhost. This times out as well.
I shutdown IPTables and SELinux.
Any assistance would be greatly appreciated.
Thanks
Re: TFTP time out error
I was having the same issue until I opened the tftp port ACCEPT udp -- anywhere anywhere state NEW udp dpt:tftp
But from your thread you say you have the firewall off and SELinux off. I'm sure you checked that tftp service is running.
Are you able to ping the server from the client.
But from your thread you say you have the firewall off and SELinux off. I'm sure you checked that tftp service is running.
Are you able to ping the server from the client.
-
- Posts: 15
- Joined: 2011/09/08 18:41:56
Re: TFTP time out error
You should make sure to restart xinetd
service xinetd restart
then do a
netstat -a |grep tftp
make sure tftp is listening
service xinetd restart
then do a
netstat -a |grep tftp
make sure tftp is listening
-
- Posts: 10642
- Joined: 2005/08/05 15:19:54
- Location: Northern Illinois, USA
TFTP time out error
xinetd services don't listen on the ports.
Xinetd launches them only when a connection is attempted.
Xinetd launches them only when a connection is attempted.
-
- Posts: 15
- Joined: 2011/09/08 18:41:56
Re: TFTP time out error
I apologize, you are correct.
Re: TFTP time out error
[quote]
xinetd services don't listen on the ports.
[/quote]
Yes they do. Xinetd listens to the port and spawns the correct server for the port and passes the socket over to it.
[code]
# chkconfig --list | grep tftp
tftp: on
# netstat -antup | grep 69
udp 0 0 0.0.0.0:69 0.0.0.0:* 3164/xinetd
[/code]
xinetd services don't listen on the ports.
[/quote]
Yes they do. Xinetd listens to the port and spawns the correct server for the port and passes the socket over to it.
[code]
# chkconfig --list | grep tftp
tftp: on
# netstat -antup | grep 69
udp 0 0 0.0.0.0:69 0.0.0.0:* 3164/xinetd
[/code]
-
- Posts: 10642
- Joined: 2005/08/05 15:19:54
- Location: Northern Illinois, USA
Re: TFTP time out error
That is what I said.
Netstat will not show a connection to tftp unless there is a current connection.
Tftp does not listen. Xinetd does.
Netstat will not show a connection to tftp unless there is a current connection.
Tftp does not listen. Xinetd does.
Re: TFTP time out error
Sorry, I read your comment as meaning that nothing listened on the port and then magic happened when a connection was attempted :-)
But the command listed above by [b]charlesgmoore[/b] would still have worked to show the listener
[code]
# netstat -a | grep tftp
udp 0 0 *:tftp
[/code]
But the command listed above by [b]charlesgmoore[/b] would still have worked to show the listener
[code]
# netstat -a | grep tftp
udp 0 0 *:tftp
[/code]
-
- Posts: 10642
- Joined: 2005/08/05 15:19:54
- Location: Northern Illinois, USA
Re: TFTP time out error
You are correct.
Now, are there any hints in the logs?
Now, are there any hints in the logs?
-
- Posts: 15
- Joined: 2011/09/08 18:41:56
Re: TFTP time out error
maybe a tail -f /var/log/gmessages and see if anything pops up when you reboot the tftp device.
or
do a tcpdump for port 69 and see if the device is even hitting the box.
or
do a tcpdump for port 69 and see if the device is even hitting the box.