LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Your help need running TFTP on Guest OS of Virtualbox. (https://www.linuxquestions.org/questions/linux-software-2/your-help-need-running-tftp-on-guest-os-of-virtualbox-4175563660/)

ratotopi 01-11-2016 03:29 PM

Your help need running TFTP on Guest OS of Virtualbox.
 
Hi

I am trying to run TFTP between two Guest OS ( CentOS 7 ) on virtualbox but I have not been able to do the tftp from the client to the server. I can connect between two server using ssh, I tested the tftp on the server itself and I can put and get files locally. Netstat show the udp ports 69 is open and listening on the server but everytime I try to tftp from the client I get the following message on the server

in.tftpd:WRQ from 192.168.1.2 filename test
in.tftpd:tftpd:read: No route to host


I can ping between the two Guest OS but why it is giving No route to host.

There are two network card on the Guest OS. One is running as NAT and the other is running as internal network. The Guest server and Guest client communicate using internal network IP.

Thank you for your input.

jefro 01-11-2016 06:40 PM

Guessing it is a subnet issue maybe. What are the ip configs?

Guess it could be permissions. Can anything else access the host tftp server?

berndbausch 01-11-2016 10:33 PM

Quote:

Originally Posted by ratotopi (Post 5476567)
Netstat show the udp ports 69 is open

netstat can't show that. Most likely the firewall prevents you from accessing port 69. Use firewall-cmd list-ports to check, and firewall-cmd add-port 69/udp to open the port.

ratotopi 01-12-2016 10:16 AM

It is in the same 192.168.1.0/24 subnet and firewall is not running. I am trying to create TFTP server on virtualbox Guest OS running Centos 7. Netstat shows tftp is open to all.

ratotopi 01-12-2016 10:55 AM

I did the tcpdump on the server and it showed the client unreachable - admin prohibited, so I knew I was not looking into the client side I made the changes and the tftp worked . Thank you

berndbausch 01-13-2016 06:08 AM

Quote:

Originally Posted by ratotopi (Post 5476936)
It is in the same 192.168.1.0/24 subnet and firewall is not running. I am trying to create TFTP server on virtualbox Guest OS running Centos 7. Netstat shows tftp is open to all.

Even though you have solved this, let me say again: Netstat doesn't show whether a given port is reachable from outside. It only shows that there is a process listening on that port.
In your case, my guess is that the tftp daemon is listening on port 69 on all IP addresses, which leads you to think that it's open for all.

berndbausch 01-13-2016 06:08 AM

Quote:

Originally Posted by ratotopi (Post 5476945)
I did the tcpdump on the server and it showed the client unreachable - admin prohibited, so I knew I was not looking into the client side I made the changes and the tftp worked . Thank you

Can you share your changes? Other people with similar problems would benefit from knowing what you did.

ratotopi 01-13-2016 09:48 AM

@berndbausch I know Netstat doesn't show whether a given port is reachable from outside. It only shows that there is a process listening on that port.
This is what I did on the client side to make tftp work

firewall-cmd --permanent --zone=public --add-source=192.168.1.0/24


All times are GMT -5. The time now is 09:37 PM.