mirror of
https://github.com/tldr-pages/tldr
synced 2026-08-26 14:13:36 +01:00
pfctl: add page (#22793)
Co-authored-by: Managor <42655600+Managor@users.noreply.github.com>
This commit is contained in:
@@ -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`
|
||||
Reference in New Issue
Block a user