[Bug 270457] Location wildcard port specification required for only IPv6 addresses in blacklistd.conf

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 26 Mar 2023 00:42:15 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=270457

            Bug ID: 270457
           Summary: Location wildcard port specification required for only
                    IPv6 addresses in blacklistd.conf
           Product: Base System
           Version: Unspecified
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: geoff@fellows.id.au

The specification for location in man blacklistd.conf is

    [<address>|<interface>][/mask][:<port>]

with the note that IPv6 addresses should be enclosed in square brackets.
While bare IPv4 addresses can be used without optional /mask or :port IPv6 will
only work if the wildcard specification for port is used ie :*

    [2610:1c1:1:606c::50:3]:*

Without the port wildcard this error is reported: 

getnum: /etc/blacklistd.conf, nn: Bad number for service []

Thanks to Michael Grimm for discovering this workaround.

Using IPv6 seems be like having enough roughage in your diet. Everyone knows
you should be doing that but still eat junk food (IPv4).

-- 
You are receiving this mail because:
You are the assignee for the bug.