Page MenuHomeFreeBSD

ipfilter: Disable ipfs(8) by default
ClosedPublic

Authored by cy on Nov 17 2025, 2:41 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Jan 1, 11:28 PM
Unknown Object (File)
Dec 11 2025, 12:44 PM
Unknown Object (File)
Nov 29 2025, 1:22 PM
Unknown Object (File)
Nov 29 2025, 12:09 AM
Unknown Object (File)
Nov 28 2025, 12:08 PM
Unknown Object (File)
Nov 28 2025, 8:04 AM
Unknown Object (File)
Nov 27 2025, 9:51 PM
Unknown Object (File)
Nov 27 2025, 4:19 PM

Details

Summary

At the moment ipfs(8) is a tool that can be easily abused. Though the
concept is sound the implementation needs some work.

ipfs(8) should be considered experimental at the moment.

This commit also makes ipfs support in the kernel optional.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

cy requested review of this revision.Nov 17 2025, 2:41 PM
sys/conf/NOTES
1049
sys/conf/options
109

in opt_ipfilter.h?

sys/conf/NOTES
1049

Sounds fair enough.

This looks ok to me with Ed's suggestion applied.

This looks ok to me with Ed's suggestion applied.

Ed's suggestion has been applied locally. The revision has also been updated (locally) to also include ip_state. It makes no sense to do this in two commits.

This update incorporates Ed's suggestion. Instead of an additional
commit to conditionally remove ipfs(8) from ip_state.c we do it here
as well.

Looks good to me aside from the comment.

share/mk/src.opts.mk
212

I'd suggest calling this IPFILTER_IPFS, since IPFS on its own is a bit terse and the acronym has at least one unrelated meaning (albeit outside of FreeBSD).

cy marked an inline comment as done.

Renamed IPFS to IPFILTER_IPFS.

This revision is now accepted and ready to land.Dec 5 2025, 3:44 PM

Add missing opt_ipfilter.h.

This revision now requires review to proceed.Dec 5 2025, 3:45 PM
This revision is now accepted and ready to land.Dec 5 2025, 3:52 PM
This revision was automatically updated to reflect the committed changes.