Please help with non-functioning miniupnpd-nftables

Sorry but I don't even know where to start diagnosing the problem.
I'm trying to set it up so that clients routed through the WAN can forward ports.
I am using dnscrypt-proxy2, openvpn and pbr. I tried disabling openvpn and pbr, but miniupnpd still doesn't create any rules.
I've tried specifying the WAN interface and WAN ip in settings with no luck. Currently using the default config.
I'm using a custom x86 image.

Model Dell Inc. OptiPlex 7060
Architecture Intel(R) Core(TM) i5-8500 CPU @ 3.00GHz
Target Platform x86/64
Firmware Version OpenWrt 22.03-SNAPSHOT r20180-2034387af4 / LuCI openwrt-22.03 branch git-23.119.80898-65ef406
Kernel Version 5.10.184

When I start miniupnpd it spams the log:-

Tue Jul 18 22:52:18 2023 daemon.info miniupnpd[11265]: system uptime is 1108 seconds
Tue Jul 18 22:52:18 2023 daemon.info miniupnpd[11265]: mnl_socket bound, port_id=11265
Tue Jul 18 22:52:18 2023 daemon.info miniupnpd[11265]: Reloading rules from lease file
Tue Jul 18 22:52:18 2023 daemon.info miniupnpd[11265]: version 2.3.3 starting NAT-PMP/PCP UPnP-IGD ext if pppoe-wan BOOTID=1689717138
Tue Jul 18 22:52:18 2023 daemon.info miniupnpd[11265]: specific IPv6 ext if pppoe-wan
Tue Jul 18 22:52:18 2023 daemon.notice miniupnpd[11265]: HTTP listening on port 5000
Tue Jul 18 22:52:18 2023 daemon.warn miniupnpd[11265]: no HTTP IPv6 address, disabling IPv6
Tue Jul 18 22:52:18 2023 daemon.notice miniupnpd[11265]: Listening for NAT-PMP/PCP traffic on port 5351
Tue Jul 18 22:52:18 2023 daemon.debug miniupnpd[11265]: level=0 type=8
Tue Jul 18 22:52:18 2023 daemon.debug miniupnpd[11265]: ifindex = 1  127.0.0.1
Tue Jul 18 22:52:18 2023 daemon.debug miniupnpd[11265]: level=0 type=8
Tue Jul 18 22:52:18 2023 daemon.debug miniupnpd[11265]: ifindex = 1  127.0.0.1
Tue Jul 18 22:52:18 2023 daemon.debug miniupnpd[11265]: level=0 type=8
Tue Jul 18 22:52:18 2023 daemon.debug miniupnpd[11265]: ifindex = 1  127.0.0.1
Tue Jul 18 22:52:18 2023 daemon.debug miniupnpd[11265]: level=0 type=8
Tue Jul 18 22:52:18 2023 daemon.debug miniupnpd[11265]: ifindex = 1  127.0.0.1
Tue Jul 18 22:52:18 2023 daemon.debug miniupnpd[11265]: level=0 type=8
Tue Jul 18 22:52:18 2023 daemon.debug miniupnpd[11265]: ifindex = 1  127.0.0.1
Tue Jul 18 22:52:18 2023 daemon.debug miniupnpd[11265]: level=0 type=8
Tue Jul 18 22:52:18 2023 daemon.debug miniupnpd[11265]: ifindex = 1  127.0.0.1
Tue Jul 18 22:52:18 2023 daemon.debug miniupnpd[11265]: level=0 type=8
Tue Jul 18 22:52:18 2023 daemon.debug miniupnpd[11265]: ifindex = 1  127.0.0.1
Tue Jul 18 22:52:18 2023 daemon.debug miniupnpd[11265]: level=0 type=8
Tue Jul 18 22:52:18 2023 daemon.debug miniupnpd[11265]: ifindex = 1  127.0.0.1

and just repeats those last two lines. I've tried googling them but cant find anyone with the same issue?
Any help would be appreciated.

1 Like

Perhaps you can upgrade to a release version or version 23. There were known issues that was resolved in the release.

You can use the Firmware Selector to make a custom image with the packages you desire.

I'm having very similar issues with miniupnpd-nftables on the latest 23.05-rc2 on a nano pi r4s. Not even sure where to start debugging

Ah the old upgrade rabbit hole, I remember it well :expressionless:
I had forgotten that I tried the 22.03 branch to see if it would fix minupnpd.
So I tried again, this time I did a 'make distclean', switched to the 23.05 branch and did a clean flash. Exact same problem.
Then tried the main branch.

Firmware Version	OpenWrt SNAPSHOT r23605-a110de8152 / LuCI Master git-23.158.78004-23a246e
Kernel Version	5.15.120

Still the same,

Sat Jul 29 16:46:46 2023 daemon.info miniupnpd[27936]: system uptime is 358417 seconds
Sat Jul 29 16:46:46 2023 daemon.info miniupnpd[27936]: mnl_socket bound, port_id=27936
Sat Jul 29 16:46:46 2023 daemon.info miniupnpd[27936]: Reloading rules from lease file
Sat Jul 29 16:46:46 2023 daemon.info miniupnpd[27936]: version 2.3.3 starting NAT-PMP/PCP UPnP-IGD ext if pppoe-wan BOOTID=1690645606
Sat Jul 29 16:46:46 2023 daemon.info miniupnpd[27936]: specific IPv6 ext if pppoe-wan
Sat Jul 29 16:46:46 2023 daemon.notice miniupnpd[27936]: HTTP listening on port 5000
Sat Jul 29 16:46:46 2023 daemon.warn miniupnpd[27936]: no HTTP IPv6 address, disabling IPv6
Sat Jul 29 16:46:46 2023 daemon.notice miniupnpd[27936]: Listening for NAT-PMP/PCP traffic on port 5351

Then,

Sat Jul 29 16:46:46 2023 daemon.debug miniupnpd[27936]: level=0 type=8
Sat Jul 29 16:46:46 2023 daemon.debug miniupnpd[27936]: ifindex = 1  127.0.0.1

Endlessly?

I just tried re-flashing and enabling upnp before changing any settings and I still get the same issue.
Here is my diffconfig if that would help?
diffconfig

ok, maybe I was just being a dope?!
But I did a distclean, then configured my build again through menuconfig rather than diffconfig.
Still had that same issue with a clean flash.
So I restored my settings again. Then I removed some of the pcp lines left over in the upnp config, and added the two lines;-

        option internal_iface 'lan'
        option external_iface 'wan'

and that seems to have got it working again.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.