miniupnpd: Rationale for enabling IGDv2 and availability of a native IGDv1 build

Started by derNordseeexperte, Today at 01:05:37 AM

Previous topic - Next topic
While investigating intermittent UPnP discovery issues with an Xbox Series X, I noticed that OPNsense builds miniupnpd with UPNP_IGDV2 enabled, whereas upstream leaves IGDv2 disabled by default due to interoperability concerns.

Environment:
  • OPNsense 26.7.10p2
  • miniupnpd 2.3.11_2,1
  • os-upnp 1.10_1
  • IPv4 UPnP enabled
  • force_igd_desc_v1=yes

Verified observations:
  • Periodic SSDP NOTIFY messages advertise IGDv2 device and service types.
  • Targeted IGDv1 M-SEARCH requests receive matching IGDv1 responses.
  • The HTTP device description advertises IGDv1.
  • The Xbox sends a Microsoft User-Agent, which also triggers the automatic IGDv1 description compatibility mechanism.
  • The current upstream source retains this behaviour.

Packet captures and source code analysis confirm these observations. However, a causal relationship with the intermittent Xbox discovery issues has not yet been established.

Questions:
  • What is the rationale for enabling IGDv2 in the OPNsense package?
  • Are there known interoperability issues with Microsoft or Xbox clients in this configuration?
  • Is there a supported way to obtain a native IGDv1 build of miniupnpd for OPNsense without maintaining a separate build environment?
  • Would an alternative IGDv1 package variant be technically feasible?

The objective is to perform a controlled comparison while retaining the existing OPNsense integration and avoiding unnecessary custom package maintenance.

Thank you.

As a follow-up, I found two historical reports concerning IGDv2 interoperability with Xbox and Microsoft clients:

  • OpenWrt issue #5456 (2017): Enabling IGDv2 at compile time reportedly broke Xbox One UPnP functionality across three different router models.
  • Debian bug #1008796 (2022): Users reported behavioural differences between a native IGDv1 build and an IGDv2 build with `force_igd_desc_v1=yes`. Recompiling miniupnpd without IGDv2 reportedly resolved Strict NAT issues.

The Debian report was subsequently closed in August 2023, with the maintainer indicating that the issue should have been fixed in miniupnpd 2.3.3.

However, packet captures and source code analysis of miniupnpd 2.3.11 still demonstrate a difference between the advertised SSDP device and service versions and the HTTP device description when `force_igd_desc_v1=yes` is enabled.

My Xbox Series X intermittently experiences Strict NAT, preventing reliable online gaming. At other times, the same configuration successfully completes SSDP discovery, retrieves the device and service descriptions, and establishes the required port mapping.

I am not suggesting that the historical bugs necessarily remain unresolved or that IGDv2 is the confirmed root cause of my current issue.

However, given the documented interoperability history, a controlled comparison with a native IGDv1 build would be particularly valuable.

Would it be possible to provide an experimental OPNsense miniupnpd package compiled without `UPNP_IGDV2`, while retaining all other package options and the existing plugin integration?

I would be willing to test such a package and provide comparative packet captures, logs and NAT test results.