Operating System - Linux
1829115 Members
14576 Online
109986 Solutions
New Discussion

Re: tftpd setup and "TRANSFER TIMEOUTS"

 
rmueller58
Valued Contributor

tftpd setup and "TRANSFER TIMEOUTS"

All,

Running Fedora FC6, have tftpd defined in /etc/xinetd.d/tftp as follows:

# 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 = -l -s /usr/boot
per_source = 11
cps = 100 2
flags = IPv4
}


I ran "chkconfig tftp on"
then view it via
chkconfig --list |grep tftp
tftp: on

and can see it running when I do a
netstat -a |grep tftp

udp 0 0 *:tftp *:*


I can "connect" to the tftp service via a client, and get active status:
# tftp xxx.yyy.zzz.A
tftp> status
Connected to xxx.yyy.zzz.A.
Mode: netascii Verbose: off Tracing: off
Rexmt-interval: 5 seconds, Max-timeout: 25 seconds

I have a xyplex boot file that needs to load terminal servers, via this method. this file /usr/boot/xpcs00s.sys has the following permissions:


-r--r--r-- 1 root root 711808 Jan 4 11:07 xpcs00s.sys

Can someone with some intimate knowledge of tftp perhaps point in a direction as to why the connection times out?

I loaded tftp-server from RPMFIND..

Any insight appreciated

Rex Mueller
Educational Service Unit #3
La Vista NE

5 REPLIES 5
rmueller58
Valued Contributor

Re: tftpd setup and "TRANSFER TIMEOUTS"

As an aside I shutoff IPTABLES, still getting timeouts.

getting from XXX.YYY.ZZZ.A:xpcs00s.sys to xpcs00s.sys [octet]
sent RRQ
sent RRQ
sent RRQ
sent RRQ
sent RRQ
Transfer timed out.

Ivan Ferreira
Honored Contributor

Re: tftpd setup and "TRANSFER TIMEOUTS"

It's not common to use /usr/boot as the source directory for tftp, normally /tftpboot is used and the permissions for this directory is 1777. See this article:

http://www.onlamp.com/pub/a/bsd/2003/06/05/FreeBSD_Basics.html
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
rmueller58
Valued Contributor

Re: tftpd setup and "TRANSFER TIMEOUTS"

Ivan,

Unfortunately we have multiple terminal servers that define tftp via a command line boot that uses /usr/boot

FWIW our xinetd.conf looks as such as well
# This is the master xinetd configuration file. Settings in the
# default section will be inherited by all service configurations
# unless explicitly overridden in the service configuration. See
# xinetd.conf in the man pages for a more detailed explanation of
# these attributes.

defaults
{
# 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

rmueller58
Valued Contributor

Re: tftpd setup and "TRANSFER TIMEOUTS"

FWIW I modifying the script to point to the /tftpboot directory with identical results..

rmueller58
Valued Contributor

Re: tftpd setup and "TRANSFER TIMEOUTS"

I got it working by modeling a second Linux box install. found a permissions issue and resolved it.