-1

I have Windows7 + Cygwin and VirtualBox. I would open a listening port on the host accepting only inbound connections from the VMs.

Note: In many case the server services running on the host can be restricted to some IPs, and so those of the VMs (subnet), but some boxes sitting in the same network as the host might spoof their IP, making these restrictions not effective.

2 Answers 2

0

This may take some more resources, but not much.

You can try getting a software firewall, like pfsense, and create an internal "vm network" that will be firewalled by a powerful software-based firewall.

2
  • But pfsense does not run on Windows
    – antonio
    Sep 24, 2014 at 14:20
  • run it in a virtual machine. then tunnel all vm traffic through it using virtualbox's built in networking features.
    – adgelbfish
    Sep 28, 2014 at 0:47
0

You could set up a host-only network within Virtualbox. This is a virtual LAN which includes the host and any guests which are attached to it. You would then add a network adapter to each of your guests and attach the adapter to the host-only network. The guests and the host would be able to communicate through the private network.

Once you've done this, processes running on the host could bind specifically to the IP address for the host-only network interface. Only processes running on the host or one of the VMs would be able to contact the host's host-only network address.

The basic process is as follows:

  1. Start Virtualbox manager and go to File->Preferences->Network->Host-only networks.
  2. Click the "+" icon at right to create a new one.
  3. Click the screwdriver icon to access properties for the new network.
  4. Enable a DHCP server if desired (if you don't do this, you'll have to assign static IPs to each guest).
3
  • Kenster, the host-only network prevents the guest to talk with the outside world, but not the host, and my question is: "open a listening port on the host accepting only inbound connections from the VMs".
    – antonio
    Sep 24, 2014 at 20:26
  • I've spelled out a little more clearly what I was getting at.
    – Kenster
    Sep 24, 2014 at 20:58
  • Sorry, how can we do this by interface and not by IP? otherwise the last part of the question might apply?
    – antonio
    Sep 24, 2014 at 21:38

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .