How can I make my tftp server visible/available on my local network?

Alex Meuer

I have looked at the following questions without success:

I've tried using tftp-hpa, atftpd and tftp. I've returned to tftp as using the others made no difference.

So far I have:

Installed tftp

sudo apt-get install xinetd tftpd tftp

Set up /etc/xinetd.d/tftp

service tftp
{
protocol        = udp
port            = 69
socket_type     = dgram
wait            = yes
user            = nobody
server          = /usr/sbin/in.tftpd
server_args     = /tftpboot
disable         = no
}

Created the /tftpboot folder and ran the following for it:

sudo chmod -R 777 /tftpboot
sudo chown -R nobody /tftpboot

I have allowed port 69 through iptables:

sudo iptables -A INPUT -p tcp --dport 69 -j ACCEPT
sudo iptables -A INPUT -p udp --dport 69 -j ACCEPT
sudo iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:tftp
ACCEPT     udp  --  anywhere             anywhere             udp dpt:tftp

and restarted the service:

sudo /etc/init.d/xinetd restart

I can connect fine using localhost (same result if I explicitly use 127.0.0.1):

tftp localhost
tftp> status
Connected to localhost.
Mode: netascii Verbose: off Tracing: off
Rexmt-interval: 5 seconds, Max-timeout: 25 seconds
tftp> get test
Received 21 bytes in 0.0 seconds
tftp> quit

However, none of my colleagues can access it from their machines (same network, same subnet mask) and, most importantly, I can't access it from the embedded board that I need it for (ethernet cables plugged into same switch). I've been googling for hours and haven't found a fix yet.

The fact that it works locally would suggest its a firewall/port problem but port 69 is allowed on iptables and I'm not sure what else I an do.

Gen

Since you have only INPUT rules, which means you only accept incoming traffic from port 69 but you have traffic going out aswell, that means you need to ACCEPT outgoing traffic aswell.

sudo iptables -A OUTPUT -p tcp --dport 69 -j ACCEPT
sudo iptables -A OUTPUT -p udp --dport 69 -j ACCEPT

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How can I confirm my name on a local network?

From Dev

How can I confirm my name on a local network?

From Dev

How can I control my local network internet surfing?

From Dev

How can I assign dynamic ips to machines on my local network?

From Dev

I can't exit my local network

From Dev

How can I make a private network in my home?

From Dev

How can I make sure my power line network is secure?

From Dev

How can I build my local git repo on external server?

From Dev

How can I expose my tomcat server outside of my docker container running on my local machine?

From Dev

How can I access my nodejs web server from my local computer using the server domain name?

From Dev

How can I use SFTP to transfer a directory to my local PC, but make the transfered directory have a different name on my local PC?

From Dev

Can I be a root certificate authority for my local network?

From Dev

How can i make a node.js server to listen to my ip on my lan instead of localhost

From Dev

How can i make a node.js server to listen to my ip on my lan instead of localhost

From Dev

How can I find out which computer in my local network is accessing a share?

From Dev

How can I monitor the bandwidth usage of all devices on my local network?

From Dev

How can I restrict SSH to only listen for requests from my local network?

From Dev

How do I connect my domain to my local Ubuntu Server?

From Dev

Why can not I access my SockectServer in local area network while I can access in my own computer?

From Dev

How to find the public ip of another computer or server on my local network?

From Dev

How can I set up a 'local' domain so that everyone on my local network can view a locally hosted site?

From Dev

How can I import all databases from my development server to my local SQL Server 2008 R2?

From Dev

How can I make my neural network emphasize that some data is more important than the rest?

From Dev

How do I make my IP show up as that of my server?

From Dev

How do I register my local server as a (“.”) (“dot”) local address?

From Dev

How can I make my navbar responsive?

From Dev

How can I make my program faster?

From Dev

How I can make my constructor synchronized?

From Dev

How can I make my REGEX general?

Related Related

  1. 1

    How can I confirm my name on a local network?

  2. 2

    How can I confirm my name on a local network?

  3. 3

    How can I control my local network internet surfing?

  4. 4

    How can I assign dynamic ips to machines on my local network?

  5. 5

    I can't exit my local network

  6. 6

    How can I make a private network in my home?

  7. 7

    How can I make sure my power line network is secure?

  8. 8

    How can I build my local git repo on external server?

  9. 9

    How can I expose my tomcat server outside of my docker container running on my local machine?

  10. 10

    How can I access my nodejs web server from my local computer using the server domain name?

  11. 11

    How can I use SFTP to transfer a directory to my local PC, but make the transfered directory have a different name on my local PC?

  12. 12

    Can I be a root certificate authority for my local network?

  13. 13

    How can i make a node.js server to listen to my ip on my lan instead of localhost

  14. 14

    How can i make a node.js server to listen to my ip on my lan instead of localhost

  15. 15

    How can I find out which computer in my local network is accessing a share?

  16. 16

    How can I monitor the bandwidth usage of all devices on my local network?

  17. 17

    How can I restrict SSH to only listen for requests from my local network?

  18. 18

    How do I connect my domain to my local Ubuntu Server?

  19. 19

    Why can not I access my SockectServer in local area network while I can access in my own computer?

  20. 20

    How to find the public ip of another computer or server on my local network?

  21. 21

    How can I set up a 'local' domain so that everyone on my local network can view a locally hosted site?

  22. 22

    How can I import all databases from my development server to my local SQL Server 2008 R2?

  23. 23

    How can I make my neural network emphasize that some data is more important than the rest?

  24. 24

    How do I make my IP show up as that of my server?

  25. 25

    How do I register my local server as a (“.”) (“dot”) local address?

  26. 26

    How can I make my navbar responsive?

  27. 27

    How can I make my program faster?

  28. 28

    How I can make my constructor synchronized?

  29. 29

    How can I make my REGEX general?

HotTag

Archive