2

I have created a virtual machine for CentOS in VirtualBox using an NAT connection (It won't work under Bridged). Now the problem is I can ping from CentOS to my IP on Ubuntu with no problem but I cannot ping from Ubuntu or from my work terminal to CentOS. I have disabled ufw on Ubuntu and still cannot get ping. I have disabled iptables,ip6tables, and selinux on CentOS and still cannot get a response. Is there something else that may be preventing me from pinging that I overlooked?

FYI I have been successfully able to ping www.google.com and surf the web so I know it is not a network problem from Ubuntu's end or even my work putty terminal but something is getting lost somewhere.

12
  • are they on the same network/router?
    – Simply_Me
    Aug 19, 2014 at 21:25
  • Yes I would be on the same network. I will be doing additional testing when I get out of work but I highly doubt my work's network is preventing me from accessing the ftp server, we don't have a strict policy
    – ryekayo
    Aug 19, 2014 at 21:26
  • if tech comp it's likely. My company doesn't allow....
    – Simply_Me
    Aug 19, 2014 at 21:29
  • I certainly wont rule it out but usually we are pretty lenient when it comes to projects like this..
    – ryekayo
    Aug 19, 2014 at 21:30
  • 1
    Virtualbox's NAT networking isn't going to allow incoming connections unless you set up port forwarding for specific ports. Try bridged. Suggest reading the networking chapter of the virtualbox manual to see the pros and cons of each networking choice. Aug 19, 2014 at 23:04

1 Answer 1

3

Flush the iptables rules just in case (iptables -F).

With the network in bridge mode (I assume that was what you were after ideally) run wireshark on the Ubuntu machine and watch for DHCP requests. If you see a request but no response then you're likely looking at network restrictions. Either way wireshark will help you get a better of idea what is happening.

1
  • Thanks this helped alot. I think that company restrictions are keeping me from making a connection.
    – ryekayo
    Aug 20, 2014 at 15:09

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .