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

Aperta Adatta ai principianti
#5,940 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
82/100
Tipo di issue
Documentazione
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
php
Ambito
documentation

Direzione di ricerca

Trova il testo della guida della pagina delle impostazioni UPnP IGD e PCP e le note di rilascio di os-upnp menzionate nell’issue. Confronta i server STUN elencati con i risultati di compatibilità forniti e chiarisci che il server configurato deve supportare RFC 5780. Il lavoro è completato quando il testo della guida elenca solo server compatibili e le note di rilascio avvertono che le configurazioni meno recenti potrebbero richiedere un cambio di server.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
PHP
Stelle
1.2k
Fork
917
Merge medio
1g 15h
PR unite (30g)
20

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di opnsense/plugins

Tutte le issue di opnsense/plugins

Issue simili

Altre issue su PHP

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.