setting vpn

This is for discussing general topics about how to use VirtualBox.
Post Reply
yegorh
Posts: 1
Joined: 18. Mar 2013, 18:13

setting vpn

Post by yegorh »

Hi , I am a noob.

I have three vm's, all are Ubuntu.
I setted two new localhost networks in virtual box.
First machine has 3 adapters first connected to NAT , two others to the two localhost networks I created. The other two VMs have 1 adapter each, each connected to different localhost adapter.
after setting ip adresses and default gw I have :

First machine:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 10.0.1.1 0.0.0.0 UG 0 0 0 eth2
default 10.0.2.2 0.0.0.0 UG 0 0 0 eth1
default 10.0.2.2 0.0.0.0 UG 0 0 0 eth0
10.0.1.0 * 255.255.255.0 U 1 0 0 eth2
10.0.2.0 * 255.255.255.0 U 1 0 0 eth0
10.0.2.0 * 255.255.255.0 U 1 0 0 eth1
link-local * 255.255.0.0 U 1000 0 0 eth1

second machine:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 10.0.2.3 0.0.0.0 UG 0 0 0 eth0
10.0.2.0 * 255.255.255.0 U 1 0 0 eth0

third machine:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 10.0.1.3 0.0.0.0 UG 0 0 0 eth0
10.0.1.0 * 255.255.255.0 U 1 0 0 eth0

first and third machine can ping any adress in the network. the second one can ping only himself.I get "destination host unreachable" messages
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 vpn

Post by noteirak »

Ok I am afraid this will simply not work.

You cannot have more than one NAT adapter per VM, and each NAT network is totally private and you won't be able to reach anything other than the gateway, which is actually the Virtualbox process.

What are you trying to do? Forget how you are trying to do it, simply say what is the final goal. That would be the first step.
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Post Reply