Using Virtualbox with VPN and main computer without VPN?

Discussions related to using VirtualBox on Windows hosts.
Post Reply
phattrance
Posts: 20
Joined: 25. Mar 2020, 09:14

Using Virtualbox with VPN and main computer without VPN?

Post by phattrance »

So i have win10 on my main computer and also installed virtualbox with win10. On the main computer, i want to have without VPN and the virtualbox installations, i want to have VPN. I have a Asus RT-AC68U router were i have installed the PIA openvpn installation. The problem is that as soon as i start the VPN, BOTH my main computer and the Virtualbox installation gets the VPN.

Is there a way to activate VPN via my Asus router for the Virtualbox, while disabling the VPN on my main computer (without using two network cards)? Screenshot of my network settings on Virtualbox below
Attachments
1.jpg
1.jpg (86.9 KiB) Viewed 1363 times
birdie
Posts: 465
Joined: 2. May 2010, 14:19
Primary OS: Fedora other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows, Linux, other Unixes
Location: Artem S. Tashkinov
Contact:

Re: Using Virtualbox with VPN and main computer without VPN?

Post by birdie »

Connect to VPN from your guest.

Case solved.
phattrance
Posts: 20
Joined: 25. Mar 2020, 09:14

Re: Using Virtualbox with VPN and main computer without VPN?

Post by phattrance »

birdie wrote:Connect to VPN from your guest.

Case solved.
The thing is that i have the VPN installed on my Asus router, and would like to keep it that way. I do know that i can install the PIA app on the VM, but the speeds im getting via the PIA app vs Router is huge. On my 100mbit connection im getting around 8000kb/s download speed when using VPN on the router and around 2000kb/s when using the PIA app.
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows, Linux

Re: Using Virtualbox with VPN and main computer without VPN?

Post by scottgus1 »

Since the VPN is running in the router, then it must interface with a computer on your LAN. Set your guest's network to Bridged, and the guest will be just another computer on the LAN too. Then your VPN should be able to connect to the guest instead of whatever computer it is connected to now.

See Virtualbox Networks: In Pictures: Bridged Adapter
phattrance
Posts: 20
Joined: 25. Mar 2020, 09:14

Re: Using Virtualbox with VPN and main computer without VPN?

Post by phattrance »

scottgus1 wrote:Since the VPN is running in the router, then it must interface with a computer on your LAN. Set your guest's network to Bridged, and the guest will be just another computer on the LAN too. Then your VPN should be able to connect to the guest instead of whatever computer it is connected to now.

See Virtualbox Networks: In Pictures: Bridged Adapter

That solved the problem, thanks for the help man. My Virtualbox have VPN ip now and my main computer standard ip!
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows, Linux

Re: Using Virtualbox with VPN and main computer without VPN?

Post by scottgus1 »

Nice! Glad it worked.
Post Reply