connecting 2 or more virtualbox vm's to the internet without connecting them to each other / or to the host

1

I am trying to build a lab environment, for testing an openVPN network between a 2~3 virtual machines. In order to do so, I want to setup the connections (virtualbox network adapter) of each VM to connect the internet, in such a way that the VM's have distinct ip's, and they cannot access each other on the local network / host computer.

I thought about connecting each VM to a public VPN service such privateVpn service (provided by OpenVPN.net) and other similar services, but I wonder if that's not an overkill... All I want is the VM's to simulate different computers, running in different networks, shouldn't there be a way of configuring the virtualbox to do so without additional effort?

As the unprofessional network specialist I am :) I find the different virtualbox networking solutions a bit too complex for my brain.. So, I hope someone can help.

Thanks

rub

Posted 2014-01-04T01:19:32.297

Reputation: 111

Which operating system is running on the host computer? – VL-80 – 2014-01-04T01:33:12.030

I am using ubuntu host for one VM and win64 for other two VMs – rub – 2014-01-04T11:33:41.470

What do you mean by running in different networks? If the pcs are connected to your LAN, they cannot be on different networks. – MariusMatutiae – 2014-01-04T16:39:55.023

I am trying to simulate computers connected to the internet from different places (as if there's no local area network between them). I want to so, so I can later build an openvpn network between the vm's, and re-connect them, for test/dev purposes. – rub – 2014-01-04T16:58:27.280

Answers

0

I have found 2 links handling my exact setup :) leading to 2 virtual router products that solved my problem:

www.danscourses.com/Network-Security/create-a-virtual-network-with-virtual-routerfirewall.html theithollow.com/2012/04/virtual-routing-for-bubble-networks/

And the products used (in respective order):

Endian Firewall

Vyatta Virtual Router

Seems that virtual router is the thing that I was looking for...

rub

Posted 2014-01-04T01:19:32.297

Reputation: 111