luci icon indicating copy to clipboard operation
luci copied to clipboard

[BUG] nftables ports opened by miniupnpd not shown on status page or upnp luci app page

Open edrikk opened this issue 3 years ago • 3 comments

Master build as of ae75541 shows that the miniupnpd ports are correctly opened via fw4 rules.

However, both the Luci status -> overview page’s “Active UPnP Redirects” as well as luci-app-upnp package’s “Active UPnP Redirects” sections are empty.

Expected behaviour is of course for the redirects to appear on these pages when nftables are used for miniupnpd.

edrikk avatar Feb 08 '22 03:02 edrikk

I am also seeing this issue on my end. In addition to this, it seems that sometimes port mappings fail to get removed properly, with errors shown in the logs saying as much.

urbenlegend avatar Feb 15 '22 01:02 urbenlegend

The issue still persists in July.

jckefan avatar Jul 21 '22 08:07 jckefan

I've just compiled 22.03.0-rc6 with miniupnpd 2.3.0 (modified the Makefile to download the latest version) and I too am not seeing anything show under 'Active UPnP Redirects' table of LuCI nor am I getting any open ports. I have even applied the patch mentioned in the forum post here whilst compiling the firmware and no difference.

firewire10000 avatar Aug 08 '22 16:08 firewire10000

I came here for what I think is this bug... In /usr/libexec/rpcd/luci.upnp (part of the luci-app-upnp package), the get_status method seems to try running iptables, which of course doesn't work with firewall4/nftables. I don't know enough to submit a patch but it seems like this could be part of the problem. I am running 22.03-rc6.

elliotclee avatar Sep 04 '22 22:09 elliotclee

I just checked the master and openwrt-22.03 branches of https://github.com/openwrt/luci/blob/master/applications/luci-app-upnp/root/usr/libexec/rpcd/luci.upnp and it is still broken there. @Ansuel wrote the original code.

elliotclee avatar Sep 04 '22 22:09 elliotclee

Fixed by #5961

jow- avatar Sep 08 '22 07:09 jow-