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

Abierto Apto para principiantes
#5,940 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
82/100
Tipo de issue
Documentación
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
php

Línea de trabajo

Busca el texto de ayuda de la página de configuración de UPnP IGD y PCP, así como las notas de la versión de os-upnp mencionadas en la issue. Comprueba los servidores STUN enumerados frente a los resultados de compatibilidad proporcionados y aclara que el servidor configurado debe admitir RFC 5780. La tarea estará completada cuando el texto de ayuda enumere solo servidores compatibles y las notas de la versión adviertan que las configuraciones antiguas quizá requieran cambiar de servidor.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
PHP
Estrellas
1.2k
Forks
917
Merge medio
1 d 15 h
PR fusionados (30 d)
20

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de opnsense/plugins

Todos los issues de opnsense/plugins

Issues similares

Más issues de PHP

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.