How to disable all guest networking

Discussions related to using VirtualBox on Windows hosts.
Post Reply
MAFS77
Posts: 5
Joined: 22. Mar 2019, 12:17

How to disable all guest networking

Post by MAFS77 »

Hi,

For security reasons we would like to disable all VM guest networking but leaving just USB.
Even if installing VirtualBox without Brigde and Host networking, NAT is always active and this way a user can reach internal network.
Is there any way to accomplish this?

Thanks.
towo2099
Volunteer
Posts: 362
Joined: 18. Aug 2014, 21:53
Primary OS: Debian Sid
VBox Version: PUEL
Guest OSses: Android, Linux

Re: How to disable all guest networking

Post by towo2099 »

Remove the virtualized networkcard from the vm settings.
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: How to disable all guest networking

Post by socratis »

Or disconnect its cable...
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
MAFS77
Posts: 5
Joined: 22. Mar 2019, 12:17

Re: How to disable all guest networking

Post by MAFS77 »

Remove? You mean disabling "Enable Network Adapter" 1, 2, 3 or 4
A simple user can activate it again, and NAT is still available.
MAFS77
Posts: 5
Joined: 22. Mar 2019, 12:17

Re: How to disable all guest networking

Post by MAFS77 »

socratis wrote:Or disconnect its cable...
That will do it :D , but they still need to access internal network from host machine.
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: How to disable all guest networking

Post by socratis »

MAFS77 wrote:A simple user can activate it again
What simple user?
MAFS77 wrote:they still need to access internal network from host machine
1) You said no networking, 2) Who's "they"?

Why don't you describe in detail what you want to do, instead of what you think you want to do... ;)
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
MAFS77
Posts: 5
Joined: 22. Mar 2019, 12:17

Re: How to disable all guest networking

Post by MAFS77 »

socratis wrote:Why don't you describe in detail what you want to do, instead of what you think you want to do... ;)
Sure.
I have here some users that need to run a Virtualbox VM on their machines and I don't want the VMs to have access to the internal network, not even the host.
Just USB access will be sufficient.
From the tests that did, an clean install of VirtualBox without Bridge or Host only interfaces will have access to the internal network if NAT is enabled for the virtual network interface.
Do you know any way to disable NAT availability to the VM?

Thanks.
Marco
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: How to disable all guest networking

Post by mpack »

MAFS77 wrote: Do you know any way to disable NAT availability to the VM?
The answers to that were already given above. NAT is enabled by default, but you can easily turn it off.
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: How to disable all guest networking

Post by socratis »

mpack wrote:I have here some users that need to run a Virtualbox VM on their machines and I don't want the VMs to have access to the internal network, not even the host.
You can't stop them. If a user can run a VM, said user can modify a VM and its settings. And they can enable or disable NAT at will. And NAT (along with NATservice), *has* access to your LAN resources.
MAFS77 wrote:Do you know any way to disable NAT availability to the VM?
Nope. Not there. Can't do. VirtualBox can't be locked in the way that you think, you got to trust your users to not enable that, but you can't enforce it.

There are some things you can lock down, but not a man that knows their way around. For more details see ch. 9.19 Locking Down the Oracle VM VirtualBox GUI.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
MAFS77
Posts: 5
Joined: 22. Mar 2019, 12:17

Re: How to disable all guest networking

Post by MAFS77 »

Thanks for your answer.
May be a feature in the future.
Last edited by socratis on 25. Mar 2019, 20:20, edited 1 time in total.
Reason: Removed unnecessary verbatim quote of the whole previous message.
Post Reply