Re: pf is broken in stable/14-n265566-4533fa42ad91 arm64
- Reply: void : "Re: pf is broken in stable/14-n265566-4533fa42ad91 arm64"
- In reply to: void : "re: pf is broken in stable/14-n265566-4533fa42ad91 arm64"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 18 Nov 2023 18:00:23 UTC
On Sat, 18 Nov 2023 16:30:09 +0100, void wrote: > > Hi, [originally sent to freebsd-stable but on second thoughts, this should have > gone here] > > This context [1] was on stable/14-n265566 where pf worked fine. Source upgrade > yesterday to stable/14-n265566 and pf is now broken. ??? $ git diff --shortstat 4533fa42ad91 562 files changed, 8663 insertions(+), 3659 deletions(-) > # service pf status > /usr/src/sys/contrib/libnv/nvlist.c:379: Element 'halfopen_states' of type NUMBER doesn't exist. > Abort trap (core dumped) > > To try and debug, I disabled all pf-related things in rc.conf and loader.conf, and tried to > load things manually then apply a very basic pf config file /etc/pf.basic > > # kldload pf > # > # pfctl -nvf /etc/pf.basic > ext_if = "genet0" > block drop in all > pass in on genet0 proto tcp from any to any port = ssh flags S/SA keep state > pass out all flags S/SA keep state > > # pfctl -evf /etc/pf.basic > No ALTQ support in kernel > ALTQ related functions disabled > ext_if = "genet0" > pfctl: DIOCADDRULENV: Argument list too long > > When the problem was first identified, this appeared at the console on bootup: > > ### > Nov 13 12:18:05 redacted kernel: Enabling pfpfctl: DIOCADDRULENV: Argument list too long > Nov 13 12:18:05 redacted kernel: /etc/rc: WARNING: Unable to load /etc/pf.conf. > Nov 13 12:18:05 redacted kernel: /etc/rc: WARNING: Loading fallback rules: block drop log all > Nov 13 12:18:05 redacted kernel: pfctl: DIOCADDRULENV: Argument list too long > Nov 13 12:18:05 redacted kernel: /usr/src/sys/contrib/libnv/nvlist.c:379: Element 'halfopen_states' of type NUMBER doesn't exist. > Nov 13 12:18:05 redacted kernel: Abort trap (core dumped) > Nov 13 12:18:05 redacted kernel: . > > Note the pfpfctl above Can you try a newer revision? I think this is already fixed. PF works fine on my Raspberry Pi 4 Model B Rev 1.2 4GB (stable/14-n265749-51a024c42c4). -- Herbert