Problems with bridged networking with CentOS, with the VirtualBox provider

227 views
Skip to first unread message

Mathieu Martin

unread,
May 2, 2013, 1:47:16 PM5/2/13
to vagra...@googlegroups.com
Hello,

I'm having problems connecting to port 80 on my VM's private IP address. The problem occurs only on CentOS (6.3 and 6.4). When I try with Ubuntu Precise, everything's fine.

This is happening on vagrant 1.2.2, and I had the problem with 1.2.1 as well.

The relevant part of my Vagrantfile

  config.vm.network :private_network, ip: "192.168.56.105"
  config.vm.network :forwarded_port, guest: 80, host: 8080
  config.vm.network :forwarded_port, guest: 443, host: 4433

The relevant part of my hosts file

192.168.56.105  www.example.com

After provisioning, I confirm that my webserver is up & running from the inside of the VM: curl -I www.example.com. But the same command doesn't work from the outside, despite the entry in my hosts file.

Am I missing anything?

Keep in mind: the same provisioning steps with Ubuntu as the guest OS result in the curl command from the host OS to work. It doesn't work only when the guest OS is CentOS.

Has anyone else encountered this?

Thanks in advance,

Mat

Mathieu Martin

unread,
May 2, 2013, 1:54:15 PM5/2/13
to vagra...@googlegroups.com
Please disregard my previous email.​

As is usually the case when sending an email to a public list, I figured out the (simple) solution minutes after hitting send.

The firewall is stricter by default on CentOS than on Ubuntu. :-)

Mat
Reply all
Reply to author
Forward
0 new messages