Ask Your Question

How to reach webserver in bridged-network vm ?

asked 2017-04-16 06:39:33 -0500

I originally asked this question on stack overflow ( ).

I run fedora 25 as a guest of a win10 host, through oracle's virtualbox.

I run it alongside a debian with (I believe) the same configuration : bridged networking and guest additions. I installed nginx and apache on both, and whenever i turn one on (apache or nginx), i can access the standard page (apache2.4.2 or nginx 1.10.2 i believe). However, the trouble arises when I use my host system (win 10) to reach the vms. It works fine with debian, but I can't get to reach the fedora vm.

One of the only differences I can think of is fedora uses SELINUX, but I once made a test stating setenforce 0, but didn't change anything.

I try to reach the VM through the inet address i get from /sbin/ifconfig, which is, through interface enp0s3.

I can't really figure out what makes the thing to fail, so even troubleshooting is arduous.

Have you ever encountered this issue ? How can I understand what is happening ?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2017-04-16 09:51:47 -0500

SteveEbey73701 gravatar image

Just to test, in the fedora vm, stop the firewall service and test it. then if it works, make a hole in the firewall for the web server.

edit flag offensive delete link more

answered 2017-04-17 02:54:00 -0500

updated 2017-04-17 12:01:26 -0500

to complete the right answer :

# firewall-cmd --add-service=http --permanent --zone=public
# firewall-cmd --add-service=https --permanent --zone=public
edit flag offensive delete link more

Question Tools

1 follower


Asked: 2017-04-16 06:39:33 -0500

Seen: 70 times

Last updated: Apr 17 '17