How to keep virtual machine off the Internet?

Discussions about using Windows guests in VirtualBox.

Re: How to keep virtual machine off the Internet?

Postby mpack » 25. Jul 2019, 10:34

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.
mpack
Site Moderator
 
Posts: 29718
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?

Postby cdg » 25. Jul 2019, 13:51

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.
cdg
 
Posts: 33
Joined: 11. Nov 2014, 04:06

Re: How to keep virtual machine off the Internet?

Postby fth0 » 25. Jul 2019, 23:35

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.
fth0
 
Posts: 152
Joined: 14. Feb 2019, 03:06
Location: Germany
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, macOS, ...

Re: How to keep virtual machine off the Internet?

Postby mpack » 26. Jul 2019, 10:42

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.
mpack
Site Moderator
 
Posts: 29718
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?

Postby fth0 » 26. Jul 2019, 22:35

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.
fth0
 
Posts: 152
Joined: 14. Feb 2019, 03:06
Location: Germany
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, macOS, ...

Re: How to keep virtual machine off the Internet?

Postby cdg » 28. Jul 2019, 15:54

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?)
cdg
 
Posts: 33
Joined: 11. Nov 2014, 04:06

Re: How to keep virtual machine off the Internet?

Postby socratis » 28. Jul 2019, 17:12

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:
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
socratis
Site Moderator
 
Posts: 25316
Joined: 22. Oct 2010, 11:03
Location: Greece
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5

Re: How to keep virtual machine off the Internet?

Postby cdg » 28. Jul 2019, 22:26

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.
cdg
 
Posts: 33
Joined: 11. Nov 2014, 04:06

Re: How to keep virtual machine off the Internet?

Postby Sundial Services » 5. Aug 2019, 17:55

Firewall or parental controls within the Windows guest might be an effective way to manage things, also.
Sundial Services
 
Posts: 7
Joined: 3. Aug 2019, 16:42

Re: How to keep virtual machine off the Internet?

Postby MontyMan » 5. Aug 2019, 18:41

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.
MontyMan
 
Posts: 29
Joined: 30. Jan 2019, 22:08
Location: Houston, Texas USA
Primary OS: Linux other
VBox Version: OSE Debian
Guest OSses: Windows 10, Windows XP SP3, Haiku

Re: How to keep virtual machine off the Internet?

Postby mpack » 5. Aug 2019, 18:49

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.
mpack
Site Moderator
 
Posts: 29718
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?

Postby socratis » 14. Aug 2019, 02:15

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.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
socratis
Site Moderator
 
Posts: 25316
Joined: 22. Oct 2010, 11:03
Location: Greece
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5

Previous

Return to Windows Guests

Who is online

Users browsing this forum: No registered users and 7 guests