
mac 防火墻禁止程序聯網

If you use a Mac, chances are you might not even realize that OS X comes with a firewall. This firewall helps ensure unauthorized app and services can’t contact your computer, and prevents intruders from sniffing out your Mac on a network.
如果您使用的是Mac,您甚至可能沒有意識到OS X帶有防火墻。 此防火墻有助于確保未經授權的應用程序和服務無法與您的計算機聯系,并防止入侵者嗅探網絡上的Mac。
In this article, we will?show you how to allow or prevent apps and services access through your OS X firewall. If you don’t know?what a firewall does, check out our primer first, then come back here.
在本文中,我們將向您展示如何允許或阻止通過OS X防火墻訪問應用程序和服務。 如果您不知道防火墻的作用,請先查看我們的入門知識,然后再回到這里。
By default, your Mac’s firewall is off.?If you’re connected to the Internet through a router?(most people are),?then you may not even need it–but it’s still nice to have. Moreover, OS X’s firewall won’t prevent apps and services from connecting to the Internet. It only blocks incoming connections. That firewall becomes much more important?if you’re testing a webserver and you don’t want anyone else to be able to access it.
默認情況下, Mac的防火墻處于關閉狀態。 如果您通過路由器連接到Internet(大多數人是),那么您可能甚至不需要它,但是它仍然很不錯。 而且,OS X的防火墻不會阻止應用程序和服務連接到Internet。 它僅阻止傳入連接。 如果您正在測試Web服務器,并且您不希望其他任何人能夠訪問它,則該防火墻變得更加重要。
If you’re wondering where to find the firewall, open the System Preferences, then click “Security & Privacy”. Once you’re in the Security & Privacy preferences, click the “Firewall” tab.
如果您想在哪里找到防火墻,請打開“系統偏好設置”,然后單擊“安全性和隱私”。 進入“安全性和隱私”首選項后,單擊“防火墻”選項卡。

Before you can make any changes, you need to click the lock icon in the lower-left corner and then enter you admin password.
在進行任何更改之前,您需要單擊左下角的鎖定圖標,然后輸入管理員密碼。

The first thing you will want to do is to turn the firewall on (if it’s not on already).
您要做的第一件事是打開防火墻(如果尚未打開)。

Once the firewall is on, you can access the “Firewall Options”. Let’s discuss what all these options entail.
防火墻打開后,您可以訪問“防火墻選項”。 讓我們討論所有這些選項的含義。
Blocking all incoming connections will “prevent incoming incoming connections to nonessential services and apps.” This means that?the firewall allows your Mac to find authorized services provided by other computers on your network, but prevents connections to all other sharing services.
阻止所有傳入連接將“防止不必要的服務和應用程序進入傳入連接”。 這意味著防火墻允許您的Mac查找網絡上其他計算機提供的授權服務,但阻止連接到所有其他共享服務。
This means things like screen sharing and file sharing won’t be available on your computer. Blocking all incoming connections is pretty strict and will disable a lot of legitimate network services, so unless you’re sure you really need this, it’s best to leave it off.
這意味著屏幕共享和文件共享之類的內容將在您的計算機上不可用。 阻止所有傳入連接非常嚴格,并且會禁用許多合法的網絡服務,因此,除非您確定確實需要此服務,否則最好將其保留。
The add and remove buttons (+/-) let you add apps and services, as well as remove them.
使用添加和刪??除按鈕(+/-),您可以添加和刪??除應用程序和服務。
There is an option to automatically allow signed software to receive incoming connections. This means that apps and services signed by a valid certificate authority will automatically added to this list. Any app that created by Apple, for example, that needs to receive incoming connections will be automatically added to the list.
有一個選項可以自動允許已簽名的軟件接收傳入的連接。 這意味著由有效證書頒發機構簽名的應用和服務將自動添加到此列表中。 例如,Apple創建的需要接收傳入連接的任何應用程序都會自動添加到列表中。
Stealth mode simply means that your computer will be effectively invisible to probing requests to reveal your existence on a network. Your Mac will still answer requests from authorized apps.
隱身模式只是意味著您的計算機將無法有效探測請求以揭示您在網絡上的存在的請求。 您的Mac仍會回答來自授權應用的請求。

If you want to add an app or service, click the “+” button and the Applications folder will open. Choose the app or service you want, then click the “Add” button. If you want to specifically block that app or service from incoming connections, then click on the right edge as shown in the screenshot below and then select “Block incoming connections”.
如果要添加應用程序或服務,請單擊“ +”按鈕,然后將打開“應用程序”文件夾。 選擇所需的應用程序或服務,然后單擊“添加”按鈕。 如果要專門阻止該應用程序或服務阻止傳入連接,請單擊右邊緣,如下面的屏幕截圖所示,然后選擇“阻止傳入連接”。

You can go through the firewall list, add and block anything you want to lock down, and remove anything you don’t want on the list. Like we said, however, this won’t prevent apps from creating outbound connections, it simply means that nothing will be able to contact them from outside your Mac’s firewall if you specifically block it.
您可以瀏覽防火墻列表,添加和阻止要鎖定的所有內容,并刪除列表中不需要的所有內容。 就像我們說過的那樣,這不會阻止應用程序創建出站連接,這只是意味著如果您專門阻止了它,則無法從Mac防火墻外部與它們聯系。
OS X’s firewall is a cinch to use and typically requires little to no configuration. Just turn it on and forget about it. Chances are you won’t need to even delve into any of the advanced functions we described in this article.
OS X的防火墻使用起來很方便,通常幾乎不需要配置。 只需打開它,然后忘記它。 您甚至不需要研究本文中介紹的任何高級功能。
Still, unless you have a security concern about a particular application on your computer, the firewall on your router is more than adequate to block intruders from finding you.
盡管如此,除非您對計算機上的特定應用程序有安全方面的擔憂,否則路由器上的防火墻足以阻止入侵者找到您。
翻譯自: https://www.howtogeek.com/248836/how-to-allow-apps-to-communicate-through-your-macs-firewall/
mac 防火墻禁止程序聯網