Page MenuHomeFreeBSD

tcp_wrappers: recognize IPv6 addresses/prefixes
ClosedPublic

Authored by glebius on May 11 2023, 7:11 PM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 14 2025, 7:34 AM
Unknown Object (File)
Dec 13 2025, 3:51 AM
Unknown Object (File)
Dec 10 2025, 1:32 PM
Unknown Object (File)
Dec 4 2025, 12:42 AM
Unknown Object (File)
Nov 25 2025, 10:34 AM
Unknown Object (File)
Nov 24 2025, 8:24 PM
Unknown Object (File)
Nov 22 2025, 3:23 PM
Unknown Object (File)
Nov 15 2025, 4:45 PM
Subscribers

Details

Summary

Intentionally or not, but the libwrap was written in such manner that
if your /etc/hosts.allow doesn't have any domain names, neither smart
keywords like LOCAL or KNOWN, then it will not try to resolve the
client address during the hosts check. This was achieved with the
NOT_INADDR() check that matched IPv4 addresses/prefixes. Extend this
to also skip resolve if client list token looks like IPv6.

PR: 269456

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 51454
Build 48345: arc lint + arc unit