• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2606
  • Last Modified:

tftp-hpa server setup in Fedora

I am trying to setup tftp-hpa server in Fedora code 8.
As suggested by the goodle search I have done the following setps..

1. Downloaded the tftp-hpa source code
2. Completed make and make install
3. Created tftp config file in /etc/xinetd.d/tftp
service tftp

disable         = no
protocol        = udp
port            = 69
socket_type     = dgram
wait            = yes
user            = nobody
server          = /usr/sbin/in.tftpd
server_args     = -s /tftpboot

4. Created dir /fttpboot and provided "777" permission and changed the owner as "nobody" as mentioned in the tftp configuration file. Created a file named hda.txt in that dir.
5. Restarted the xinetd service. (service xinetd restart). Also  tried "chkconfig tftp on"
6. The command "nmap -sU" give the follwing...
68/udp  open|filtered dhcpc
69/udp  open|filtered tftp
111/udp open|filtered rpcbind
631/udp open|filtered unknown
709/udp open|filtered entrustmanager
733/udp open|filtered unknown
So the tftp is running in port 69.
7. Started the tftp client.
tftp> get hda.txt
Transfer timed out.

I am getting the timeout error..I dont know how and where oto debug this issue.
Please help me to solve this issue. Many thanks in advance.

1 Solution
Hi there,

You have confirmed that the service is running and that the port is listening...

Are you using iptables? - run the following to find out...
      /etc/init.d/iptables status

If you are running iptables, you need to add a rule to allow tftp traffic in, run the following two commands:
      iptables -A INPUT -p udp --dport 69 -j ACCEPT
      /etc/init.d/iptables save

The above rule will only allow the incoming traffic and not the responses to tftp request packets the easiest way to handle this is to make iptables aware of the state of connections.
To set this up run the following two commands:
      iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
      /etc/init.d/iptables save

For connection tracking of tftp traffic you'll have to add the following item to your IPTABLES_MODULES line in /etc/sysconfig/iptables-config:

Hope this helps,
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now