[Bug 295064] pfctl: rejects digit-prefixed interface names in dynamic address references

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 06 May 2026 20:04:27 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=295064

--- Comment #1 from Hayzam Sherif <hayzam@alchemilla.io> ---
I did some extra digging and found out that ifconfig accepts pretty much
ANYTHING that fits in the character limit?

⭐: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=10<VLAN_HWTAGGING>
        ether 58:9c:fc:10:13:a7
        id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
        maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200
        root id 00:00:00:00:00:00 priority 0 ifcost 0 port 0
        bridge flags=0<>
        groups: bridge
        nd6 options=9<PERFORMNUD,IFDISABLED>

Is apparently valid, which when I pass through pf (nat on ⭐ from 10.0.0.0/24 to
any -> (⭐)) gets me a cryptic "syntax error" instead of the semi-useful invalid
interface..

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