net/upnp: miniupnpd >= 2.3.10 exits if the STUN server lacks RFC 5780; help text names one that fails

Open Beginner friendly
#5,940 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
82/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Active
Tech stack
php
Domain
documentation

Research direction

Find the UPnP IGD & PCP settings page help text and the os-upnp release notes mentioned in the issue. Check the listed STUN servers against the supplied compatibility results and clarify that the configured server must support RFC 5780. Done when the help text lists only compatible servers and the release notes warn that older configurations may need a server change.

Written by the indexing model from the issue text.

Description

Important notices
Before you add a new report, we ask you kindly to acknowledge the following:

Describe the bug
Since miniupnpd 2.3.10 (miniupnp/miniupnp#825, dc4a131d), the daemon accepts only STUN servers that implement RFC 5780 (they must return OTHER-ADDRESS). With any other server it logs STUN server not supported … for every response, then Performing STUN failed. EXITING, and does not start.

os-upnp 1.10 on 26.7.9 ships 2.3.11. A configuration that worked on 2.3.9 with a common public STUN server stops miniupnpd on upgrade; the settings page gives no hint. Widely used public servers fail: stun.l.google.com:19302 and stun.cloudflare.com:3478. One of the two servers named in the page's own help text fails as well: stun.counterpath.com.

Last known working: os-upnp 1.9 / miniupnpd 2.3.9.

To Reproduce

  1. Services → UPnP IGD & PCP: set STUN server stun.l.google.com, port 19302; save.
  2. Start the service on a 2.3.11 daemon.
  3. miniupnpd exits (log below).

Checked against each server with 2.3.11's own teststun (built from the port: 2.3.11 + 0f668f1, --disable-pppconn --firewall=pf --libpfctl --vendorcfg --portinuse --leasefile --igd2 --ipv6), on OPNsense 26.1.3 / FreeBSD 14.3:

STUN server 2.3.11
stun.l.google.com:19302 rejected: no OTHER-ADDRESS
stun.cloudflare.com:3478 rejected: no OTHER-ADDRESS
stun.counterpath.com:3478 (in the help text) fails: no usable response
stun.3cx.com:3478 (in the help text) works
stun.nextcloud.com:3478 works
stun.sipgate.net:3478 works

Expected behavior

  • The help text names only servers that work with the shipped daemon (drop stun.counterpath.com; upstream's miniupnpd.conf lists stun.nextcloud.com, stun.sipgate.net, stun.3cx.com).
  • The page says the server must support RFC 5780, and the release notes warn that a STUN host set before 1.10 may need changing.

Relevant log files

miniupnpd: STUN server not supported, not returning OTHER-ADDRESS / support CHANGE-REQUEST's required for endpoint-independent (1:1) CGNAT filtering tests per RFC 5780.
miniupnpd: STUN: Performing STUN failed: Device not configured
miniupnpd: Performing STUN failed. EXITING

Additional context
The check is intentional upstream (#825: "For unsupported servers, display an error indicating compatible ones, and then fail"), so the fix belongs in the plugin's guidance rather than the daemon.

Environment
OPNsense 26.1.3 (amd64), miniupnpd 2.3.11 built from opnsense/ports opnsense/miniupnpd at 87223be5; os-upnp 1.10 help text from opnsense/plugins master.

Dominant language
PHP
Stars
1.2k
Forks
926
Avg merge
1d 10h
Merged PRs (30d)
25

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from opnsense/plugins

All issues in opnsense/plugins

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.