Fixed Application Firewall according to inline comments

This commit is contained in:
Shichao An 2015-10-26 17:01:04 -07:00
parent aead4545ff
commit d24be5d3fd

View File

@ -812,22 +812,22 @@ defaults write com.apple.print.PrintingPrefs "Quit When Finished" -bool true
### Application Firewall ### Application Firewall
#### Display If the Firewall is Enabled #### Show Firewall Status
```bash ```bash
sudo /usr/libexec/ApplicationFirewall/socketfilterfw --getglobalstate sudo /usr/libexec/ApplicationFirewall/socketfilterfw --getglobalstate
``` ```
#### Turn off the Firewall #### Turn on Firewall
```bash
sudo /usr/libexec/ApplicationFirewall/socketfilterfw --setglobalstate off
```
#### Turn on the Firewall
```bash ```bash
sudo /usr/libexec/ApplicationFirewall/socketfilterfw --setglobalstate on sudo /usr/libexec/ApplicationFirewall/socketfilterfw --setglobalstate on
``` ```
#### Add the Application to the Firewall #### Turn off Firewall
```bash
sudo /usr/libexec/ApplicationFirewall/socketfilterfw --setglobalstate off
```
#### Add Application to Firewall
```bash ```bash
sudo /usr/libexec/ApplicationFirewall/socketfilterfw --add /path/to/file sudo /usr/libexec/ApplicationFirewall/socketfilterfw --add /path/to/file
``` ```