LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-03-2014, 12:41 AM   #1
fjkum
Member
 
Registered: Feb 2006
Posts: 40

Rep: Reputation: 15
CentOS 6.4: tftpd Connection refused


Hi,

I am facing a problem getting the tftpd to work.

Here is my hardware setup:
(1) Two NICs (both detected during boot)
(2) CentOS 6.4 32-bit
(3) tftpd-server installed (yum install tftpd-server)
(4) tftp client installed (yum install tftp)

First NIC is connected to corporate network (DHCP). the second NIC is used for the tftp server (Static IP).

Here are my things that I have done so far:
(1) Edited /etc/selinux/config and disable the SELINUX. (Rebooted after making the change)
(2) Edited /etc/xinetd.d/tftp to include '-vvv' in the server_args to show more messages in the /var/log/messages.
(3) Restarted xinetd. (service xinetd restart)
(4) Disabled Firewall.
(5) Tested locally for tftp file transfer and it works.
(6) Connect the tftp client device.
(7) Getting the following message in /var/log/messages:

Mar 3 21:40:14 localhost in.tftpd[2867]: RRQ from 192.168.3.1 filename bootfile
Mar 3 21:40:14 localhost in.tftpd[2867]: tftpd: read(ack): Connection refused

So, I have ran out of options to try. Anyone can shed some light?

TIA.
 
Old 03-03-2014, 05:52 PM   #2
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,979
Blog Entries: 1

Rep: Reputation: 209Reputation: 209Reputation: 209
What does your /etc/xinetd.d/tftp file look like (please use code tags) and what are the permissions on the filesystem?

--C
 
Old 03-03-2014, 06:01 PM   #3
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,232

Rep: Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296
Quote:
Originally Posted by fjkum View Post
Hi,

I am facing a problem getting the tftpd to work.

Here is my hardware setup:
(1) Two NICs (both detected during boot)
(2) CentOS 6.4 32-bit
(3) tftpd-server installed (yum install tftpd-server)
(4) tftp client installed (yum install tftp)

First NIC is connected to corporate network (DHCP). the second NIC is used for the tftp server (Static IP).
I'm not sure I understand what you are saying. Are you mixing together the description of your server and your client, or are you trying to run the tftp server and client on the same system?

Assuming that they are separate, does the client have a single ethernet port which connects to the server's static IP NIC and is it on the same network segment (no NAT or routers in between)?

Assuming it is on the same segment, are routes correct in the server? Show the route table.
 
Old 03-03-2014, 09:24 PM   #4
fjkum
Member
 
Registered: Feb 2006
Posts: 40

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by smallpond View Post
I'm not sure I understand what you are saying. Are you mixing together the description of your server and your client, or are you trying to run the tftp server and client on the same system?

Assuming that they are separate, does the client have a single ethernet port which connects to the server's static IP NIC and is it on the same network segment (no NAT or routers in between)?

Assuming it is on the same segment, are routes correct in the server? Show the route table.
Hi,

The client and the server are separate. And yes, I can ping the client IP from Server side and the client is using only one ethernet port. So this means they are both falls in the same segment.

The server side has two physical NIC cards. The client is connected directly to the second NIC (eth3).

Code:
[root@localhost ~]# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.0.0     *               255.255.252.0   U     1      0        0 eth3
10.128.112.0    *               255.255.248.0   U     1      0        0 eth0
default         10.128.112.1    0.0.0.0         UG    0      0        0 eth0
[root@localhost ~]#


---------- Post added 03-03-14 at 22:24 ----------

Quote:
Originally Posted by custangro View Post
What does your /etc/xinetd.d/tftp file look like (please use code tags) and what are the permissions on the filesystem?

--C
Code:
[root@localhost ~]# cat /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
	#port                    = 6969
	wait			= yes
	user			= root
	server			= /usr/sbin/in.tftpd
	server_args		= -vv -s /var/lib/tftpboot
	per_source		= 11
	cps			= 100 2
	flags			= IPv4
}
 
Old 03-04-2014, 09:56 AM   #5
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,232

Rep: Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296Reputation: 1296
I guess use tcpdump on interface eth3 on server and see where the protocol breaks down.
 
Old 03-04-2014, 12:14 PM   #6
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,979
Blog Entries: 1

Rep: Reputation: 209Reputation: 209Reputation: 209
What does...

Code:
ls -lAFhd /var/lib/tftpboot
ls -lAFh /var/lib/tftpboot
Show?

Last edited by custangro; 03-04-2014 at 12:16 PM.
 
Old 03-05-2014, 12:08 AM   #7
fjkum
Member
 
Registered: Feb 2006
Posts: 40

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by custangro View Post
What does...

Code:
ls -lAFhd /var/lib/tftpboot
ls -lAFh /var/lib/tftpboot
Show?
Code:
[root@localhost ~]# ls -lAFhd /var/lib/tftpboot
drwxrwxrwx. 4 root root 4.0K Sep 23  2011 /var/lib/tftpboot/

[root@localhost /]# ls -lAFh /var/lib/tftpboot/
total 116K
-rwxrwxrwx. 1 nobody nobody 113K Mar  3 18:53 boot_fw*
 
Old 03-05-2014, 12:09 AM   #8
fjkum
Member
 
Registered: Feb 2006
Posts: 40

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by smallpond View Post
I guess use tcpdump on interface eth3 on server and see where the protocol breaks down.
Code:
Output from 'tcpdump -i eth3 -vvnn':
[root@localhost ~]# tcpdump -i eth3 -vvnn
tcpdump: listening on eth3, link-type EN10MB (Ethernet), capture size 65535 bytes
18:57:18.751902 ARP, Ethernet (len 6), IPv4 (len 4), Request who-has 192.168.3.1 tell 192.168.3.1, length 46
18:57:20.804436 ARP, Ethernet (len 6), IPv4 (len 4), Request who-has 192.168.1.251 tell 192.168.3.1, length 46
18:57:20.804449 ARP, Ethernet (len 6), IPv4 (len 4), Reply 192.168.1.251 is-at 00:02:b3:4b:3b:d7, length 28
18:57:20.804685 IP (tos 0x0, ttl 255, id 0, offset 0, flags [none], proto UDP (17), length 544)
    192.168.3.1.7001 > 192.168.1.251.6969: [udp sum ok]  rx type 0 cid 74616c6f call# 1851744879 seq 1869873263 ser 1668572532 (516)
18:57:20.805801 IP (tos 0x0, ttl 64, id 30813, offset 0, flags [DF], proto UDP (17), length 544)
    192.168.1.251.6988 > 192.168.3.1.7001: [udp sum ok]  rx type 192 cid 481fd703 call# -2147287004 seq -338870208 ser 1210457638 <more-pckts> (516)
18:57:20.806088 IP (tos 0x0, ttl 255, id 1, offset 0, flags [none], proto ICMP (1), length 56)
    192.168.3.1 > 192.168.1.251: ICMP 192.168.3.1 udp port 7001 unreachable, length 36
    IP (tos 0x0, ttl 64, id 30813, offset 0, flags [DF], proto UDP (17), length 544)
    192.168.1.251.6988 > 192.168.3.1.7001:  [|rx] (516)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
tftpd problems with both tftpd-hpa and atftpd spitting image Linux - Server 1 10-05-2010 05:40 PM
tftpd problems with both tftpd-hpa and atftpd spitting image Debian 0 10-05-2010 12:04 PM
vsftpd not working: Connection attempt failed with "ECONNREFUSED - Connection refused davidlu766 Linux - Server 7 05-03-2010 09:34 PM
Socket Connection Failed: 111 Connection Refused degraffenried13 Linux - General 3 05-31-2009 02:17 AM
Fedora core 3, in.tftpd/xinetd connection attempts fail trot Linux - Networking 4 03-23-2005 10:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:14 AM.

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