ioctl(dev, DIOCCHANGERULE, ...) PF_CHANGE_ADD_TAIL: File exists
nakal opened this issue · comments
System: FreeBSD 14.0
My Playstation reported NAT Type 3, so I know something is broken with UPNP. I looked in the logs and I see that something is logged right after the connection test.
It was working once. I'm using this anchor rule in /etc/pf.conf
:
rdr-anchor "miniupnpd"
ALTQ is disabled.
Log when NAT test on PlayStation 5 runs:
Mar 10 09:59:23 hostname miniupnpd[56714]: ioctl(dev, DIOCCHANGERULE, ...) PF_CHANGE_ADD_TAIL: File exists
Mar 10 09:59:25 hostname syslogd: last message repeated 3 times
I'm still using FreeBSD 13.3 ;)
I guess I have to work on the libpf usage quick...
@nakal just to make sure : have you rebuilt miniupnpd after each FreeBSD major upgrade ?
Yes. I build packages from Poudriere. I also tried pkg install -f miniupnpd
.
Here is the timestamp of the package repo from where I install:
-rw-r--r-- 1 root wheel 78990 Feb 29 21:24 miniupnpd-2.3.3_3,1.pkg
I just upgraded to 24.03-RELEASE of pfsense and I am seeing this same behavior.
ioctl(dev, DIOCCHANGERULE, ...) PF_CHANGE_ADD_TAIL: File exists
Also tried reinstalling the miniupnpd package.
Any idea what the issue could be?
I guess miniupnpd is still not compatible with FreeBSD 15.
development is still in progress.
This seems to be affecting pfSense as they've moved to FreeBSD 15 (EDIT: oops didn't see @dramirezRT's comment).
@dramirezRT could you try the newest miniupnpd sources from the master
branch ?
it is included in miniupnpd 2.3.7.
Sorry for the late feedback. Playstation shows NAT type 2 again. Thank you for the patch.
I've just submitted a problem report to update the package.
I accidentally opened the bug.