pfctl: add page (#22793)

Co-authored-by: Managor <42655600+Managor@users.noreply.github.com>
This commit is contained in:
yahya khan
2026-06-12 22:50:37 +07:00
committed by GitHub
co-authored by Managor
parent 13c5add920
commit c4cf196063
+28
View File
@@ -0,0 +1,28 @@
# pfctl
> Control the packet filter device.
> More information: <https://man.freebsd.org/cgi/man.cgi?query=pfctl>.
- Enable the packet filter:
`sudo pfctl -e`
- Disable the packet filter:
`sudo pfctl -d`
- Load rules from a configuration file:
`sudo pfctl -f {{path/to/pf.conf}}`
- Show all active rules:
`pfctl -sr`
- Show packet filter status information:
`pfctl -s info`
- Flush all rules:
`sudo pfctl -F rules`