Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 05 Jan 2022 21:18:45 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 260958] pfctl: expand_rule: strlcpy
Message-ID:  <bug-260958-227-uUplEYQ9uX@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-260958-227@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=260958

Kristof Provost <kp@freebsd.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kp@freebsd.org

--- Comment #1 from Kristof Provost <kp@freebsd.org> ---
I can reproduce the error, but my current thinking is that this is a
misconfiguration rather than a bug in pf. (Although arguably the error message
could be better).

Note that reply-to expects to be followed by a routehost ('     routehost     
= "(" interface-name [ address [ "/" mask-bits ] ] ")"', which is supposed to
be an interface-name and optionally an address.

The pfctl parser code puts the string it finds after route-to in an ifname
field, which is IFNAMSIZ bytes long, so the IPv6 address you provide doesn't
fit and that's what produces the error message.

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

home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-260958-227-uUplEYQ9uX>