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

Đang mở Phù hợp với người mới
#5,940 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
82/100
Loại issue
Tài liệu
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
php
Lĩnh vực
documentation

Hướng nghiên cứu

Tìm phần trợ giúp trên trang cài đặt UPnP IGD và PCP cùng ghi chú phát hành os-upnp được đề cập trong issue. Đối chiếu các máy chủ STUN được liệt kê với kết quả tương thích đã cung cấp và làm rõ rằng máy chủ được cấu hình phải hỗ trợ RFC 5780. Hoàn tất khi phần trợ giúp chỉ liệt kê các máy chủ tương thích và ghi chú phát hành cảnh báo rằng cấu hình cũ có thể cần đổi máy chủ.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
PHP
Star
1.2k
Fork
917
Merge trung bình
1 ngày 15 giờ
Pull request đã merge (30 ngày)
20

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của opnsense/plugins

Tất cả issue của opnsense/plugins

Issue tương tự

Thêm issue về PHP

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.