better readme

This commit is contained in:
2026-09-22 04:37:10 +03:00
parent ba82ddc165
commit 0be1602bd5
7 changed files with 398 additions and 98 deletions
+29
View File
@@ -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
```