Block internet acces on HOST allow on GUEST

Discussions related to using VirtualBox on Windows hosts.
Post Reply
Surfdude1982
Posts: 1
Joined: 31. Oct 2015, 18:53

Block internet acces on HOST allow on GUEST

Post by Surfdude1982 »

Hi everyone,

I'm looking for a way to block internet access on the HOST and allow it on the GUEST.
Could someone help me? I looked on the internet but actually didn't find a way.

Thx a lot in advance!

Johan
BillG
Volunteer
Posts: 5106
Joined: 19. Sep 2009, 04:44
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows 10,7 and earlier
Location: Sydney, Australia

Re: Block internet acces on HOST allow on GUEST

Post by BillG »

There are a number of ways to do that, but none of them rely on any VirtualBox features or settings.

How is the guest networking configured? If you are using the default NAT setting, it cannot be done. The guest is sharing the host's Internet connection.
Bill
LastWord
Posts: 19
Joined: 18. Sep 2011, 12:24
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP (64 bit), Kubuntu (64 bit)

Re: Block internet acces on HOST allow on GUEST

Post by LastWord »

If you, for example as in my case, need to use Internet access through 2 ISPs on the same hardware simultaneously, you can run virtual machine configured for bridged networking, but you will need separete physical netwok adapters for each ISP.
If you need to disable Internet access from host system to one of the ISPs, disable TCP/IP protocols in network properties of one of your physical netwok adapters attached to that ISP, and use bridged mode in your VirtualBox guest system (selecting a proper physical netwok adapter in its properties).
Please note, that VirtualBox versions 5.0.4 and above have some issues with bridging.
Test build 104375 (with filename VirtualBox-5.0.51-104375-Win.exe) solved the issue with bridged networking for me. See Ticket #14578 ("Unable to select network adaptor that has TCP/IP disabled.") for details.
I tested this build on Windows 10 host and it works.
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Block internet acces on HOST allow on GUEST

Post by mpack »

@LastWord: I appreciate the useful service that you're currently performing, but it really isn't necessary to link to the bridged networking fix in absolutely every discussion involving networking. Just the topics dealing specifically with a recently broken bridged networking feature will do.
Post Reply