Do you happen to know of a way to get an interface (struct ifnet) without AF_INET6? I used to use pflog0 for this, and now clearly can't any more. (The test for PR 288263 does that.)
Ideally I'd like to not remove the test, but without such an interface there's no point to it.
- Queries
- All Stories
- Search
- Advanced Search
- Transactions
- Transaction Logs
Advanced Search
Jun 26 2026
- locking fixes
- man page improvement
- fix pflogd to not look for a network interface
- have /etc/rc.d/pflogd create extra log devices if required
In D57851#1326392, @glebius wrote:My only concern is racyness of sysctl vs sysctl. The node and proc are marked CTLFLAG_MPSAFE, so they can execute in parallel. bpf_attach() doesn't have protection against duplicates, so we will leak one.
Ah, yeah, that's an issue.
I could remove the MPSAFE, but we probably don't want to rely on Giant, so that's not great either.
Jun 25 2026
Jun 24 2026
Jun 23 2026
Jun 22 2026
In D57737#1323743, @oshogbo wrote:Oh, thank you somehow I have missed it.
Thanks!
Yes. that's indeed a bug, but I fixed it two weeks ago: https://cgit.freebsd.org/src/commit/?id=fcb31b57112425a4eb64241651a0206108105298
Jun 20 2026
Jun 17 2026
In D57537#1321192, @gallatin wrote:@gallatin Do you want to commit this, or should I? (Reid doesn't have a bit, so someone else needs to.)
If you could push it, that would be great.
Will do.
In D57537#1319082, @gallatin wrote:It took me a while, but I think your patch is correct.
Jun 16 2026
Jun 12 2026
Jun 11 2026
Jun 10 2026
Jun 8 2026
Jun 5 2026
Jun 3 2026
May 28 2026
May 26 2026
May 21 2026
May 16 2026
May 12 2026
May 9 2026
May 7 2026
May 5 2026
May 1 2026
Apr 30 2026
Apr 29 2026
Apr 28 2026
Apr 26 2026
Apr 25 2026
Apr 23 2026
I suppose we could spell the example rules like this too:
block out quick on $wan from any to { 255.255.255.255, ($wan:broadcast), 224.0.0.0/4, ff00::/8 } received-on any
but they're fine as they are. They result in the same rules in the kernel anyway.
Apr 22 2026
There are good arguments for both blocking and allowing this I believe.
I'm not entirely sure where I fall. On the one hand, yes, users should be allowed to shoot themselves in the foot if they really want to, but on the other hand, it's non-obvious that this will happen. There are going to be a lot more users in the "I didn't want this to happen but it did" camp than there'd be in the "I want to do this dumb thing and pf won't let me." camp.
The pf change looks fine to me.
Apr 21 2026
Apr 20 2026
In D54817#1294095, @lwhsu wrote:Maybe we should rename ai-policy to ai-note. During the many and length meetings, discussions, a "policy" cannot please everyone.
The current situation and the truth is that people are already using it, and we can't stop them. A strong "NO" will just let some people lie and pretend not using it, or worse, we lost some good contributions.
If we tweak it slightly I guess we can express everything we need.
So here's a version where we deny the call from the indicated securelevel on up,
and don't do anything if the value is 0
Apr 19 2026
I did see a warning about that recently but didn't investigate too much. This (with Gleb's remark) makes sense.
Apr 17 2026
Apr 16 2026
In D56390#1291460, @glebius wrote:The previous version (modulo the mistake) looked better. What's the point in the additional bool? All existing declarations rely on sparse initialization, so would have .cmd_securelevel = 0 always. If you add cmd_securelevel_set, it would be .cmd_securelevel_set = false. Thus, checking .cmd_securelevel_set for being true has no difference to checking .cmd_securelevel to be positive. I'd suggest to just do the securelevel_gt() check unconditionally.
P.S. Of course the inverted logic of securelevel_gt() really blows one's mind.
Apr 15 2026
Thanks, I don't know how I messed that up, but mess that up I did.
Apr 14 2026
Apr 11 2026
Apr 9 2026
I'm not familiar enough with the build system to have opinions on how it got fixed.
Apr 7 2026
Apr 3 2026
Mar 30 2026
Ah, yes, thanks!
I'm seeing panics with this patch ("panic: lock "pf_keyhash" 0xfffffe00e8dffff8 already initialized").
I believe the problem is that hashalloc() allocates unzero'd memory, and which leads to incorrect assertions on the lock, if LO_INITIALIZED happens to be set in lo_flags.
Mar 27 2026
I've had a quick look at making pf use this, and I have a minor annoyance.