question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

luci-app-upnp appears incompatible with OpenWrt 22.03

See original GitHub issue

Steps to reproduce:

  1. Upgrade to OpenWrt 22.03
  2. Install the luci-app-upnp package and its dependencies from the System -> Software panel
  3. Enable the service and configure it

Actual behavior:

Applications on the local network are unable to create a uPnP redirect. No redirects show up on the Services -> UPnP panel, and applications like Plex and Transmission show network ports are closed. uPnP services are inaccessible from outside the local network.

Expected behavior:

It should functional largely the same as it did under OpenWrt 21.02.

Additional Information:

OpenWrt version information from system /etc/openwrt_release

DISTRIB_ID='OpenWrt'
DISTRIB_RELEASE='22.03.0'
DISTRIB_REVISION='r19685-512e76967f'
DISTRIB_TARGET='mvebu/cortexa9'
DISTRIB_ARCH='arm_cortex-a9_vfpv3-d16'
DISTRIB_DESCRIPTION='OpenWrt 22.03.0 r19685-512e76967f'
DISTRIB_TAINTS=''

This is apparently a known problem (per https://forum.openwrt.org/t/22-03-0-netgear-r7800-upnp-not-working/136306) but I didn’t seen any GitHub issues opened up about it. Here’s the package installation confirmation:

image

And the actual results of the install:

Installing luci-app-upnp (git-20.332.74200-03c77da) to root...
Downloading https://downloads.openwrt.org/releases/22.03.0/packages/arm_cortex-a9_vfpv3-d16/luci/luci-app-upnp_git-20.332.74200-03c77da_all.ipk
Installing libcap-ng (0.8.2-1) to root...
Downloading https://downloads.openwrt.org/releases/22.03.0/packages/arm_cortex-a9_vfpv3-d16/packages/libcap-ng_0.8.2-1_arm_cortex-a9_vfpv3-d16.ipk
Installing libuuid1 (2.37.3-3) to root...
Downloading https://downloads.openwrt.org/releases/22.03.0/packages/arm_cortex-a9_vfpv3-d16/base/libuuid1_2.37.3-3_arm_cortex-a9_vfpv3-d16.ipk
Installing miniupnpd-nftables (2.2.3-4) to root...
Downloading https://downloads.openwrt.org/releases/22.03.0/packages/arm_cortex-a9_vfpv3-d16/packages/miniupnpd-nftables_2.2.3-4_arm_cortex-a9_vfpv3-d16.ipk
Configuring libcap-ng.
Configuring libuuid1.
Configuring miniupnpd-nftables.
Configuring luci-app-upnp.

These are the contents of /etc/config/upnpd (which I deleted prior to reinstalling the packages to make sure it’s a clean install):

config upnpd 'config'
        option download '1024'
        option upload '512'
        option internal_iface 'lan'
        option port '5000'
        option upnp_lease_file '/var/run/miniupnpd.leases'
        option igdv1 '1'
        option enabled '1'
        option uuid '94c30bb7-6571-4ff7-adb3-5c79eda38efc'

config perm_rule
        option action 'allow'
        option ext_ports '1024-65535'
        option int_addr '0.0.0.0/0'
        option int_ports '1024-65535'
        option comment 'Allow high ports'

config perm_rule
        option action 'deny'
        option ext_ports '0-65535'
        option int_addr '0.0.0.0/0'
        option int_ports '0-65535'
        option comment 'Default deny'

Oddly, /var/run/miniupnpd.leases shows the appropriate uPnP redirects:

TCP:19787:192.168.0.184:32400:1663085781:Plex Media Server
TCP:51413:192.168.0.184:51413:1663085782:Transmission at 51413
UDP:51413:192.168.0.184:51413:1663085782:Transmission at 51413

but nothing shows up in the Services -> UPnP panel:

image

It’s not clear if this is a problem with luci-app-upnp or one of its dependencies, but I think this is the right place to start with this issue. If it needs to be moved elsewhere, that’s fine. It’s unclear if the PR https://github.com/openwrt/luci/pull/5839 will resolve this issue or not, and if it does, this issue can be closed.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
jow-commented, Sep 7, 2022

Correct.

2reactions
hnymancommented, Sep 9, 2022

I do not see the package built for x86_64 yet, but I do see it built for other architectures. Is x86_64 just slower to get packages updates?

The packages are now there… luci-app-upnp_git-22.250.64651-a61c041_all.ipk | 5.0 KB | Fri Sep 9 00:11:44 2022

Buildbot builds packages for all ~30 targets in round-robin fashion. It is pure luck in which order your target is in the queue. (It takes 6-9 hours per target, and currently there seem to be 8 concurrent builds… See https://buildbot.openwrt.org/openwrt-22.03/packages/#/

Read more comments on GitHub >

github_iconTop Results From Across the Web

OpenWrt 22.03.0-rc6 sixth release candidate - OpenWrt Forum
Hi, The OpenWrt community is proud to announce the sixth release candidate of the upcoming OpenWrt 22.03 stable version series.
Read more >
22.03.0 Netgear R7800 UPnP not working - OpenWrt Forum
Everything is fine but UPnP no longer appears to be working, ... I have tried uninstalling and reinstalling luci-app-upnp but still no joy....
Read more >
Ipq806x NSS build (Netgear R7800 / TP-Link C2600 / Linksys ...
Have Master and OpenWrt 22.03 builds for ipq806x devices with ... to have it and openwrt repos don't install it with incompatible version....
Read more >
Build for Netgear R7800 - #3438 by hugalafutro
Does anyone know if they are located anywhere? I need to install a kmod and the files in the 22.03.0-rc4 packages are incompatible....
Read more >
OpenWrt 22.03.0 first stable release
Hi, The OpenWrt community is proud to announce the first stable release of the OpenWrt 22.03 stable version series.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found