Working a VPN over Virtualbox

JohnTr0

Reputable
Feb 7, 2015
47
0
4,540
I have a problem and I really need your help using VirtualBox .Is it possible to share Guest (windows-7 x64 ) internet connection over a VPN connection (Hotspot shield for example) with host (windows 10 x64) ?
And if it's possible can you tell me how to do it exactly because I've searched hours and hours and I could never figure a solution for it,It's kinda tricky because It's sharing vpn connection from guest to host not the other way around using NAT or bridged connection etc
Thanks in advance.
 
Solution
OK, so you want:
- a host computer connected to Internet with a network adapter (does not matter wired or WiFi), let's call this Connection A (Host->INet).
- a VirtualBox' guest OS using said Host to establish its own connection to Internet, let's call this Connection B (Guest->INet). This connection is shared with Connection A.
- that same guest OS establishes a VPN connection to a server (this is called a "tunnel"), let's call this Connection C (Guest->VPN). This connection runs on top of Connection B.

Now you want that same host, somehow, to go to Internet thru the guest' VPN, correct? Do you already see where's the problem?

A VPN-capable router can be had for less than $100. If you are computer-savvy, you can build yourselves a...


Simply my question is about how to get the guest (virtual) computer that is connected to a VPN to share its connection with the host so it's more likely if you are using the host ,you would be having a changed IP connecting to the guest without installing any programs for that on the host when this program is gonna be on the guest and to answer your question as below :
-one and one.
-Using wire/cable connection.
-I'm not sure what do you mean by where is the VPN tunnel handled ? :S
 
OK, so you want:
- a host computer connected to Internet with a network adapter (does not matter wired or WiFi), let's call this Connection A (Host->INet).
- a VirtualBox' guest OS using said Host to establish its own connection to Internet, let's call this Connection B (Guest->INet). This connection is shared with Connection A.
- that same guest OS establishes a VPN connection to a server (this is called a "tunnel"), let's call this Connection C (Guest->VPN). This connection runs on top of Connection B.

Now you want that same host, somehow, to go to Internet thru the guest' VPN, correct? Do you already see where's the problem?

A VPN-capable router can be had for less than $100. If you are computer-savvy, you can build yourselves a box out of RaspberryPI for less than $50.

Another option would be to install another Guest OS, create (from the VirtualBox) a virtual network between them, and route this additional network' traffic thru the established VPN connection. Not a simple task, but with enough reading and good understanding of how Internet works, it's doable.
 
Solution