Re: setsockopt(IP_FW_NAT44_XCONFIG): Invalid argument

"Andrey V. Elsukov" <[email protected]> Wed, 1 Jul 2026 15:16:47 +0300
Newsgroups gmane.os.freebsd.devel.net
Message-ID <[email protected]>
On 01.07.2026 14:19, Andrea Venturoli wrote:
> Hello.
> 
> I just upgraded a 14.4p6 router to 14.4p7 and ipfw stopped working.
> When I try to set all my rules, I get:
>> setsockopt(IP_FW_NAT44_XCONFIG): Invalid argument
> 
> I was in a hurry and had to put the older kernel back.
> AFAIR kernel config did not change.
> 
> I'll do further testing when I can, possibly on other machines, but in 
> the meantime is anyone else seeing this?
> Could it be related to FreeBSD-SA-26:41.libalias?

Hi,

are you sure it was 14.4p7 kernel? You can check in /var/log/messages.
I don't think the changes in libalias could have caused this error.
This looks more like an attempt to use old ipfw(8) binary with 15.0+ kernel.

-- 
WBR, Andrey V. Elsukov