#pfctl
Just now, I discovered my #faill2ban actions for pf should be using the -k option.

man.freebsd.org/cgi/man.cgi?...

"Kill all of the state entries"

This explains why an IP gets banned, but keeps abusing - the `keep state` enables that.

#FreeBSD
pfctl(8)
man.freebsd.org
December 4, 2024 at 1:02 PM
keeping the old traditions alive

root@freebsd:~ # pfctl -vnf /etc/pf.conf
/etc/pf.conf:1: syntax error
April 6, 2025 at 2:13 AM
there is at least a chance someone remembers `iptables -vnL`, but not a chance someone remembers pfctl commands =)
February 7, 2025 at 10:10 AM
New post: FreeBSD resource monitoring and accounting.

A practical tour of the base-system toolkit for figuring out *what is actually using my server*: top, vmstat, systat, gstat, netstat/sockstat, procstat, pfctl, and per-jail attribution with kern.racct and rctl.

No ports, no agents. Just […]
Original post on burningboard.net
burningboard.net
May 12, 2026 at 7:50 AM
Has anyone in #freebsd land ran rcorder recently? I just ran it on a upgraded 14.3p2 host and I have circular dependences. I am having an issue where pf and unbound don't load on restart. I have to manually run "pfctl -f /etc/pf.conf" and "service […]

[Original post on holonet.imperialba.se]
August 13, 2025 at 5:28 PM
let me try it from another angle :D

The chances someone has bsd experience are way lower nowadays than someone with Linux experience.

This was my maybe 3rd time in my life running `pfctl` (probably speak more about me, than anything else), but I feel I can generalize it quite well hah
February 7, 2025 at 10:15 AM
Nice!

Our Mastodon instance burningboard.net has almost 60% of total using the current generation of the Internet Protocol (IPv6) and only arround 40% still using the legacy-protocol from the 1980s (IPv4).

Measured on the PF firewall of our Mastodon […]

[Original post on burningboard.net]
August 5, 2026 at 9:20 AM
Who needs fail2ban when you have a while loop, awk and pfctl :)
July 21, 2026 at 10:32 AM
Anybody else seeing OpenBSD 5.5 hang with _spamd executing pfctl? Perhaps a spamlogd issue...
November 21, 2024 at 8:08 PM
pfctl: allow include in inline anchors with this, anchor foo { include "/path/to/rules" }...

http://cgit.freebsd.org/src/commit/?id=16c25f9861db453ffa07a0891f8d247c744297b0

Event Attributes
src - FreeBSD source tree
cgit.freebsd.org
April 16, 2025 at 7:01 PM
pfctl: Remove NULL-checks before free(). ok tb@ Obtained from: OpenBSD, mmcc
http://cgit.freebsd.org/src/commit/?id=162dfe766b2a62fb875a47796ffb032242ff5124

Event Attributes
src - FreeBSD source tree
cgit.freebsd.org
April 16, 2025 at 7:01 PM
pfctl: also remove incorrect counter print for rule anchors Just as for nat anchors we can't ...

http://cgit.freebsd.org/src/commit/?id=0fc3c29fb3dd6ab6436a78c502544ebf2cf63ee2

Event Attributes
src - FreeBSD source tree
cgit.freebsd.org
April 15, 2025 at 2:15 PM
pfctl: fix crash on "pfctl -a '*' -vvsr" When printing a nat anchor we don't ...

http://cgit.freebsd.org/src/commit/?id=168d873ae41fd8bd40555322a79c9f215cb4cb9c

Event Attributes
src - FreeBSD source tree
cgit.freebsd.org
April 15, 2025 at 8:24 AM
pfctl: route-to, dup-to, reply-to should not override the block action Spotted by Dilli Paudel &l...;

http://cgit.freebsd.org/src/commit/?id=0a376f7e7e0346654a74f2acf693187736c983a2

Event Attributes
src - FreeBSD source tree
cgit.freebsd.org
April 9, 2025 at 8:07 PM
pfctl: fix no nat / no rdr rules In aeddee83341 the nat rule parsing was significantly reworked, ...

http://cgit.freebsd.org/src/commit/?id=97a74f46162139e360d58c924586b615828b471b

Event Attributes
src - FreeBSD source tree
cgit.freebsd.org
April 9, 2025 at 10:25 AM
pfctl: fix recursive printing of NAT rules pfctl_show_nat() is called recursively to print nat an...

http://cgit.freebsd.org/src/commit/?id=58164dcb55d62ca73b5e550b8344bf61e2d8a47a

Event Attributes
src - FreeBSD source tree
cgit.freebsd.org
April 2, 2025 at 8:03 PM
pfctl.8: fix typo in reference to rc.conf variable Reviewed by: kp, @concussious, @ImAwsumm Pull ...

http://cgit.freebsd.org/src/commit/?id=6091e2aa923617604f7333f26b54bab48d2c0aab

Event Attributes
src - FreeBSD source tree
cgit.freebsd.org
March 31, 2025 at 8:25 AM
pfctl: remove unused function prototype Sponsored by: Rubicon Communications, LLC ("Netgate&#...<br/><br/><a href="http://cgit.freebsd.org/src/commit/?id=4e675edef1b68678c63ca9c865e851199c1fefc4">http://cgit.freebsd.org/src/commit/?id=4e675edef1b68678c63ca9c865e851199c1fefc4</a><br/><br/><a […]
Original post on cgit.freebsd.org
cgit.freebsd.org
March 26, 2025 at 11:19 PM
pfctl: Fix printing af-to "to" pool We can't depend on pool->cur, that is used onl...

http://cgit.freebsd.org/src/commit/?id=2624ba37e6336febb40ab6317d8e4ea63b60fa44

Event Attributes
src - FreeBSD source tree
cgit.freebsd.org
March 4, 2025 at 12:41 PM
pfctl: Rewrite to void using union sockaddr_union ok mikeb Obtained from: OpenBSD, deraadt
http://cgit.freebsd.org/src/commit/?id=8754ba5a5f6ee681de776601110313b69a779067

Event Attributes
src - FreeBSD source tree
cgit.freebsd.org
February 21, 2025 at 8:57 AM
pfctl: consolidate some code by using reallocarray in all cases ok deraadt millert Obtained from:...

http://cgit.freebsd.org/src/commit/?id=5b7bfd0046c2a3725fa71783ac7d7b842ec0de58

Event Attributes
src - FreeBSD source tree
cgit.freebsd.org
February 19, 2025 at 11:13 AM
pfctl: improve warnings for limits If pfctl cannot set a limit in the kernel, print the name of t...

http://cgit.freebsd.org/src/commit/?id=81dc007a00a9d160653398afc80a58725747d24d

Event Attributes
src - FreeBSD source tree
cgit.freebsd.org
February 19, 2025 at 11:13 AM