Setting a VM to go through another VM to connect to Internet

This is for discussing general topics about how to use VirtualBox.
Post Reply
Mrstein
Posts: 3
Joined: 3. May 2014, 04:00

Setting a VM to go through another VM to connect to Internet

Post by Mrstein »

Hi to everyone!

I've just downloaded and installed VirtualBox, but I have a question about the way I want to configure the Virtual Machine.

I know that is possible to connect two Virtual Machines through the Network Settings, (Choosing the "internal Networking Option" for both the VM); what I would do is to force the First VM to connect to the second VM (that will act as a firewall) and then connect to the Internet (So that without the second VM running, the first one won't be able to connect to the Internet) : is this possible? And what options do I have to choose from the Network Settings to configure the two Virtual Machines in this way?

This is the setting: First VM ---> Second VM (Firewall) -----> Internet (So that all the connections of the first VM have to go through the second VM to be able to "reach" the Internet).

Thanks in advance for any answer :)
noteirak
Site Moderator
Posts: 5231
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: Setting a VM to go through another VM to connect to Inte

Post by noteirak »

Internal would be the best mode for you.
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Post Reply