Merge pull request #56 from shichao-an/master
Added Application Firewall socketfilterfw
This commit is contained in:
commit
9b5a070296
27
README.md
27
README.md
@ -55,6 +55,7 @@ If you want to contribute, you are highly encouraged to do so. Please read the [
|
|||||||
- [Package Managers](#package-managers)
|
- [Package Managers](#package-managers)
|
||||||
- [Printing](#printing)
|
- [Printing](#printing)
|
||||||
- [Security](#security)
|
- [Security](#security)
|
||||||
|
- [Application Firewall](#application-firewall)
|
||||||
- [Gatekeeper](#gatekeeper)
|
- [Gatekeeper](#gatekeeper)
|
||||||
- [Passwords](#passwords)
|
- [Passwords](#passwords)
|
||||||
- [Physical Access](#physical-access)
|
- [Physical Access](#physical-access)
|
||||||
@ -106,7 +107,7 @@ defaults write com.apple.universalaccess reduceTransparency -bool false
|
|||||||
|
|
||||||
#### Set Wallpaper
|
#### Set Wallpaper
|
||||||
|
|
||||||
Up to Mountain Lion:
|
Up to Mountain Lion:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
osascript -e 'tell application "Finder" to set desktop picture to POSIX file "/path/to/picture.jpg"'
|
osascript -e 'tell application "Finder" to set desktop picture to POSIX file "/path/to/picture.jpg"'
|
||||||
@ -809,6 +810,28 @@ defaults write com.apple.print.PrintingPrefs "Quit When Finished" -bool true
|
|||||||
|
|
||||||
## Security
|
## Security
|
||||||
|
|
||||||
|
### Application Firewall
|
||||||
|
|
||||||
|
#### Show Firewall Status
|
||||||
|
```bash
|
||||||
|
sudo /usr/libexec/ApplicationFirewall/socketfilterfw --getglobalstate
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Turn on Firewall
|
||||||
|
```bash
|
||||||
|
sudo /usr/libexec/ApplicationFirewall/socketfilterfw --setglobalstate on
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Turn off Firewall
|
||||||
|
```bash
|
||||||
|
sudo /usr/libexec/ApplicationFirewall/socketfilterfw --setglobalstate off
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Add Application to Firewall
|
||||||
|
```bash
|
||||||
|
sudo /usr/libexec/ApplicationFirewall/socketfilterfw --add /path/to/file
|
||||||
|
```
|
||||||
|
|
||||||
### Gatekeeper
|
### Gatekeeper
|
||||||
|
|
||||||
#### Add Gatekeeper Exception
|
#### Add Gatekeeper Exception
|
||||||
@ -1108,7 +1131,7 @@ sudo nvram boot-args=""
|
|||||||
|
|
||||||
### Screenshots
|
### Screenshots
|
||||||
|
|
||||||
#### Take Delayed Screenshot
|
#### Take Delayed Screenshot
|
||||||
Takes a screenshot as JPEG after 3 seconds and displays in Preview.
|
Takes a screenshot as JPEG after 3 seconds and displays in Preview.
|
||||||
```bash
|
```bash
|
||||||
screencapture -T 3 -t jpg -P delayedpic.jpg
|
screencapture -T 3 -t jpg -P delayedpic.jpg
|
||||||
|
Loading…
Reference in New Issue
Block a user