1

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.

  • are they on the same network/router? – Simply_Me Aug 19 '14 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 '14 at 21:26
  • if tech comp it's likely. My company doesn't allow.... – Simply_Me Aug 19 '14 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 '14 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. – Mark Plotnick Aug 19 '14 at 23:04
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.

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.