How to keep virtual machine off the Internet?

Discussions about using Windows guests in VirtualBox.
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: How to keep virtual machine off the Internet?

Post by mpack »

cdg wrote: If your router has a "guest network" feature, set up the guest network without LAN access, and connect your wireless TV device to that network. This is what I do with my Roku streaming device, and it works well. :)
That sounds like an excellent idea, thanks!

p.s. I didn't actually say to use a static IP address, I said the router has to recognize the IP address in order to blacklist it, e.g. because the router assigned it to the VM using DHCP. Of course the feature would be useless if the IP assignment changes a lot. Even better would be to blacklist at a MAC level, but for some reason I'm having difficulty finding a router that does that.
cdg
Posts: 33
Joined: 11. Nov 2014, 04:06

Re: How to keep virtual machine off the Internet?

Post by cdg »

mpack wrote:...Even better would be to blacklist at a MAC level, but for some reason I'm having difficulty finding a router that does that.
The TP-LINK AC1750 Archer C7 router has that capability, and is reasonably priced. If I remember correctly, the TP-LINK N600 also has the capability.
fth0
Volunteer
Posts: 5661
Joined: 14. Feb 2019, 03:06
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...
Location: Germany

Re: How to keep virtual machine off the Internet?

Post by fth0 »

mpack wrote:p.s. I didn't actually say to use a static IP address, I said the router has to recognize the IP address in order to blacklist it, e.g. because the router assigned it to the VM using DHCP. Of course the feature would be useless if the IP assignment changes a lot. Even better would be to blacklist at a MAC level, but for some reason I'm having difficulty finding a router that does that.
Instead of blacklisting the MAC address: If the DHCP server in the router allows static DHCP entries, you can configure it to assign a fixed IPv4 address to the device depending on it's MAC address, and then you can blacklist the IPv4 address.
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: How to keep virtual machine off the Internet?

Post by mpack »

fth0 wrote: If the DHCP server in the router allows static DHCP entries
IME you can always do this. Even if the Router doesn't have an obvious reserved address scheme (e.g. my Router is missing that feature), you can still manually allocate an address that it inside the valid subnet range but outside the range used for DHCP.
fth0
Volunteer
Posts: 5661
Joined: 14. Feb 2019, 03:06
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...
Location: Germany

Re: How to keep virtual machine off the Internet?

Post by fth0 »

Reading your reply, I noticed that my statement can be interpreted in different ways (I'm no native English speaker), so I'll try and clarify it:

I meant to configure the static DHCP entries inside the router, not on the PC or VM. And I think there are (cheap) routers out there that have a DHCP server, but no configuration table for fixed/static MAC/IP address pairs.
Last edited by socratis on 26. Jul 2019, 23:20, edited 1 time in total.
Reason: Removed unnecessary verbatim quote of the whole previous message.
cdg
Posts: 33
Joined: 11. Nov 2014, 04:06

Re: How to keep virtual machine off the Internet?

Post by cdg »

scottgus1 wrote:Use of uppercase is yelling on the internet. The meaning of things changes.
So that means we can't write IBM, MS, NATO, NAFTA, SALT, etc., or is it just when upper-case is properly used for emphasis is it forbidden? (Just want to get the rules straight. Also, who makes up these rules?)
socratis
Site Moderator
Posts: 27330
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 keep virtual machine off the Internet?

Post by socratis »

Of course you can use acronyms! :)
Of course the use of capital letters in NOT always yelling... ;)

UNLESS OF COURSE YOU CAPITALIZE THE WHOLE SENTENCE, WHICH SHOWS THAT YOU'RE PISSED OFF AT SOMETHING!!! :twisted:
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.
cdg
Posts: 33
Joined: 11. Nov 2014, 04:06

Re: How to keep virtual machine off the Internet?

Post by cdg »

socratis wrote:...UNLESS OF COURSE YOU CAPITALIZE THE WHOLE SENTENCE, WHICH SHOWS THAT YOU'RE PISSED OFF AT SOMETHING!!! :twisted:
But if you don't use any upper-case letters, people might confuse you with e. e. cummings. :o

There are no upper-case letters in Hebrew, Arabic, Japanese, Chinese, and a few others. So how do they shout on the Internet?
Last edited by cdg on 9. Aug 2019, 03:25, edited 1 time in total.
Sundial Services
Posts: 7
Joined: 3. Aug 2019, 16:42

Re: How to keep virtual machine off the Internet?

Post by Sundial Services »

Firewall or parental controls within the Windows guest might be an effective way to manage things, also.
MontyMan
Posts: 29
Joined: 30. Jan 2019, 22:08
Primary OS: Linux other
VBox Version: OSE Debian
Guest OSses: Windows 10, Windows XP SP3, Haiku
Location: Houston, Texas USA

Re: How to keep virtual machine off the Internet?

Post by MontyMan »

I recently created an XP VM which I'll want to keep off the 'net most of the time, just to reduce the risk of infection and unnecessary Internet accesses from the mostly-deprecated system. The VM will mostly be used for image editing with PhotoDeluxe, and some old games. I was going to accomplish the block simply by going into the VM settings and disabling the virtual network connection, but I don't want to do it that way if it will mean Guest Additions can no longer share folders with the host system.

Occasionally I'll need to recall a browser-memorized password, and for that I will temporarily connect the network. When it was on the metal, this was my main home system from 2005 to 2015 so there is a lot of browsing history.
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: How to keep virtual machine off the Internet?

Post by mpack »

Sundial Services wrote:Firewall or parental controls within the Windows guest might be an effective way to manage things, also.
I assume the goal is to prevent malware or a person using the VM from accessing the internet. Obviously, if it's just switched off inside the guest then it can easily be switched on again, from inside the guest.
socratis
Site Moderator
Posts: 27330
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 keep virtual machine off the Internet?

Post by socratis »

MontyMan wrote:I was going to accomplish the block simply by going into the VM settings and disabling the virtual network connection, but I don't want to do it that way if it will mean Guest Additions can no longer share folders with the host system.
You can have not a single networking card (forget about the kind, attached and cable conditions) and still have Shared Folder functionality, believe it or not it's not network dependent. It simply shows up on that part of the Explorer.
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.
Post Reply