Ask Your Question

How to reach webserver in bridged-network vm ?

asked 2017-04-16 11:39:33 +0000

I originally asked this question on stack overflow ( https://stackoverflow.com/questions/4... ).

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 14:51:47 +0000

steveebey73742 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 07:54:00 +0000

updated 2017-04-17 17:01:26 +0000

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Use your votes!

  • Use the 30 daily voting points that you get!
  • Up-vote well framed questions that provide enough information to enable people provide answers.
  • Thank your helpers by up-voting their comments and answers. If a question you asked has been answered, accept the best answer by clicking on the checkbox on the left side of the answer.
  • Down-voting might cost you karma, but you should consider doing so for incorrect or clearly detrimental questions and answers.

Question Tools

1 follower


Asked: 2017-04-16 11:39:33 +0000

Seen: 42 times

Last updated: Apr 17 '17