您可以使用虛擬作業系統訪問被阻止在主機作業系統的hosts檔案中的網站嗎?

不管你如何努力讓你的孩子遠離網際網路上不受歡迎的網站,似乎總有一些方法可以繞過你設定的任何保護。今天的超級使用者問答文章討論了使用虛擬作業系統訪問被阻止在主機作業系統的hosts檔案中的網站的可能性。...

您可以使用虛擬作業系統訪問被阻止在主機作業系統的hosts檔案中的網站嗎?

不管你如何努力讓你的孩子遠離網際網路上不受歡迎的網站,似乎總有一些方法可以繞過你設定的任何保護。今天的超級使用者問答文章討論了使用虛擬作業系統訪問被阻止在主機作業系統的hosts檔案中的網站的可能性。

今天的問答環節是由SuperUser提供的,SuperUser是Stack Exchange的一個分支,是一個由社群驅動的問答網站分組。

截圖由John M(Flickr)提供。

問題

超級使用者讀者Vinayak想知道是否可以使用虛擬作業系統訪問主機作業系統的hosts檔案中阻止的網站:

I was reading through a Net Nanny article that mentioned the various ways its web filter could be bypassed by kids.

I saw this among the methods listed:

  • One way that teens can get around the filter entirely is to install a program that runs a virtual machine on the computer, essentially a computer within the computer. So, for example, if your computer’s operating system is Windows, the crafty teen can download a program that runs a virtual Windows operating system that will not have Net Nanny installed, and then surf the web with no filter.

Now I was wondering if this might still be possible if the hosts file on the host OS has blocked access to all unwanted websites. Assume for the moment that such a huge, regularly updated hosts file does exist (including websites with ***** content, web proxies, P2P file-sharing, etc.).

Would it be possible to visit those blocked websites using a web browser running in the virtual OS? Also, assume that no VPN or TOR is used, nor Google’s “cached” view of the webpage.

是否有可能訪問虛擬作業系統中不需要的網站,或者主機作業系統中的主機檔案是否會阻止對這些網站的訪問?

答案

超級使用者貢獻者Darth Android為我們提供了答案:

Yes. The hosts file does not block anything, it just tells the computer where it can find named websites. When you try going to google.com, the system will check its hosts file for that name, and if it exists, it will use the IP address there instead of looking up the IP address from a DNS server.

A virtual OS has its own hosts file, and performs its own name resolution (i.e. checking its own hosts file and contacting its own DNS server) independent from the host OS.

Even if you redirected google.com to 127.0.0.1 (a common way of blocking a website), you can still get to Google simply by typing 173.227.93.99 into your web browser instead.

Additionally, IP-based filters on the host OS may be useless depending on how the virtual OS network is configured. Usually, the virtual OS is bridged with the host’s networking, meaning that all incoming traffic is duplicated and sent to the virtual OS so that it can see the same network traffic that the host OS does. Even if the host OS is configured to block or filter certain IP addresses (such as with a firewall), the virtual OS will still get to see its copy of the data, which will allow the virtual OS to browse the internet and ignore a filter installed on the host OS.

Remember the cardinal rule of computers and security: If I can physically touch a computer system, then given time I can have full control over it. Kids have lots of free time, and by no means are they an exception to this rule. It is trivial to reboot a system into safe mode and remove Net Nanny or any other piece of software installed upon it.

If you wish to filter/restrict/monitor what your kids do on the Internet, you need to do so at the network level, not the system level. Look into what features your router supports (such as Net Nanny Integration like @Keltari suggests) and if it will support alternate router firmware such as DD-WRT, which can do a scheduled disconnect of the child’s computer (such as 10 p.m. to 6 a.m. each day).

Even then, network filtering is often a game of Whack-A-Mole, and often easily thwarted by proxies like Tor. It is next to impossible to stop someone from accessing the Internet if they really want to (just ask China or other countries with massive firewalls that ultimately do not work perfectly).

With kids, you either have to talk with them and explain the perils of the Internet, then have enough trust that they will not intentionally seek out the bad sites (using Net Nanny merely as a backup to stop accidental navigati***), or you refuse to let them use a connected computer unsupervised.


有什麼要補充的解釋嗎?在評論中發出聲音。想從其他精通技術的Stack Exchange使用者那裡瞭解更多答案嗎?在這裡檢視完整的討論主題。

  • 發表於 2021-04-11 07:56
  • 閱讀 ( 59 )
  • 分類:網際網路

你可能感興趣的文章

如何使用virtualbox:使用者指南

... 有了VirtualBox這樣的虛擬機器,您可以虛擬地安裝多個作業系統,而無需購買任**硬體。 ...

  • 發佈於 2021-03-12 18:26
  • 閲讀 ( 57 )

為什麼java虛擬機器可以幫助程式碼更好地執行

... 透過重新編譯C/C++原始碼到新的CPU,可以在一定程度上減輕這種情況。但是,新CPU的作業系統可能不同。而且原始碼可能不經過修改就無法編譯,不管是大的還是小的。即使是作業系統版本的微小更改也可能...

  • 發佈於 2021-03-13 07:13
  • 閲讀 ( 50 )

什麼是容器linux?您應該使用它嗎?

...於容器化應用程式和主機使用相同的核心,因此容器部署可以從提高效率中獲益。在虛擬機器配置中,每個虛擬機器執行一個應用程式和一個來賓作業系統。它執行在主機作業系統和硬體之上。 ...

  • 發佈於 2021-03-15 05:37
  • 閲讀 ( 49 )

虛擬化和雲端計算不是一回事

...磁碟空間等)分割成系統認為是獨立的離散塊。每個區塊可以專用於不同的使用者,因為區塊是離散的,使用者只能使用分配給他們的資源。 ...

  • 發佈於 2021-03-16 01:42
  • 閲讀 ( 56 )

如何在虛擬機器來賓和主機pc之間傳輸檔案

使用虛擬機器可以大大提高生產率。但通常存在一個癥結:將文字或檔案從主機複製到客戶機,反之亦然。 ...

  • 發佈於 2021-03-18 10:09
  • 閲讀 ( 59 )

提高虛擬機器效能的6個技巧

... 同時,來賓作業系統安裝在虛擬機器中。在這裡,您可以安裝應用程式,甚至遊戲,不是本機的主機作業系統。這只是使用虛擬機器的眾多原因之一。 ...

  • 發佈於 2021-03-19 02:20
  • 閲讀 ( 56 )

什麼是虛擬機器?你需要知道的一切

...測試其他作業系統,如windows10或其他Linux作業系統。您還可以使用虛擬機器在它不是為之設計的作業系統上執行軟體。例如,您可以在Mac上執行Windows程式,也可以在帶有虛擬機器的Mac上執行應用程式的多個副本。 ...

  • 發佈於 2021-03-24 06:12
  • 閲讀 ( 50 )

雙啟動與虛擬機器:哪一個適合你?

...膝上型電腦上,雙引導確實是您唯一的選擇。雙引導時,可以在引導時在作業系統之間切換,這樣就可以一次將所有硬體專用於一個作業系統。 ...

  • 發佈於 2021-03-25 01:47
  • 閲讀 ( 50 )

如何啟用windows defender application guard for microsoft edge

...18年4月的更新開始,任何使用Windows10Professional的人現在都可以啟用應用程式保護。以前,此功能僅在Windows 10 Enterprise中可用。如果你有windows10home並且想要applicationguard,你就必須升級到Pro。 系統要求 Windows Defender Application Guard...

  • 發佈於 2021-04-05 06:07
  • 閲讀 ( 50 )

如何使用您的計算機的主機檔案來阻止惡意軟體,色情,和其他型別的網站噸

...您連線到域名時,它都會被您的計算機檢查,這意味著您可以使用它將請求重定向到您希望您的計算機無法訪問的站點。我們已經向您展示瞭如何在Windows、macOS或Linux上編輯hosts檔案;下面是如何使用Github上精心編制的列表來阻...

  • 發佈於 2021-04-07 10:50
  • 閲讀 ( 51 )
死者赤いの瞳
死者赤いの瞳

0 篇文章

作家榜

  1. admin 0 文章
  2. 孫小欽 0 文章
  3. JVhby0 0 文章
  4. fvpvzrr 0 文章
  5. 0sus8kksc 0 文章
  6. zsfn1903 0 文章
  7. w91395898 0 文章
  8. SuperQueen123 0 文章

相關推薦