Page 1 of 1

[WorksForMe] Port blocked in Host Only-Network

PostPosted: 27. May 2019, 16:00
by DRaetze
Hello together,

my first Topic here. I tried to use the search, but i didnt found anything that helps. Maybe im just blind.

I created 3 VMs to test a MongoDB Cluster with centos 7. All of them are in the same Host Only Network. When I try to connect to the other VMs from my primary I got "No route to Host" (MongoDB is using Port 27017). The connection via ssh is working between the VMs. Is there anything in the Network-Konfiguration i can do about it.

Bridged-Network is no solution for me, because I cannot be sure, that the VMs got the same IP everytime. The Servers does not need Internet-Access too.

Thanks all.

Regards
Dean

Re: Port blocked in Host Only-Network

PostPosted: 27. May 2019, 18:49
by Martin
VirtualBox doesn't do any firewalling or port filtering in a host-only network.
There must be something blocking or not listening inside your VMs.

Re: Port blocked in Host Only-Network

PostPosted: 27. May 2019, 23:41
by scottgus1
DRaetze wrote:The connection via ssh is working between the VMs

With this being true, the Virtualbox network is working. As Martin says, look within the guest OS's to find what's blocking normal communication.

Re: Port blocked in Host Only-Network

PostPosted: 28. May 2019, 10:59
by DRaetze
Hey guys,

thanks for the replies.

It was the Firewall on the VMs who was the problem.


Regards
Dean

Re: Port blocked in Host Only-Network

PostPosted: 28. May 2019, 11:03
by socratis
Glad you got it going. Marking as [WorksForMe].