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.