better readme
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
# Firewall
|
||||
|
||||
### Show rules
|
||||
|
||||
```sh
|
||||
pfctl -sr # view rules
|
||||
pfctl -ss # view state
|
||||
pfctl -si # view stats
|
||||
pfctl -sa # view all
|
||||
```
|
||||
|
||||
### Write rules
|
||||
|
||||
`/etc/pf.conf`
|
||||
|
||||
```sh
|
||||
lan = stge0
|
||||
block out tcp from $lan to any port {80,443}
|
||||
```
|
||||
|
||||
### Apply rules
|
||||
|
||||
```sh
|
||||
pfctl -d
|
||||
pfctl -f /etc/pf.conf
|
||||
pfctl -e
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user