UPNP Not working without static port or EIM

Đang mở
#5,769 3 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ó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Lĩnh vực
networking

Hướng nghiên cứu

Start by comparing the firewall logs shown for strict-port enabled and disabled, then trace how the UPNP configuration affects the redirect when strict-port is unchecked. Reproduce the reported steps with the state table cleared; done means UPNP provides open NAT without requiring static-port or Endpoint Independent Mapping.

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

Mô tả

support

Important notices

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

If AI was used, please disclose:
N/A - I used my brain :)

Describe the bug

UPNP with a known working configuration no longer works unless static-port is checked. This was fully working in prior months, and according to forum posts appears to have popped up with 26.7's debut.

To Reproduce

Steps to reproduce the behavior:

  1. Have a working UPNP configuration with static-port enabled
  2. Verify UPNP is working using whatever necessary tools, in my case, I am using an xbox and achieving NAT type open
  3. Uncheck strict-port
  4. Clear the state table within firewall-> diagnostics -> states
  5. Test UPNP again per step 2
  6. UPNP will now set as strict

Expected behavior
Step 6 should result in NAT type open, as it did in the past. I have this process so streamlined I made my own tutorial that thousands of people have viewed: https://youtu.be/g5EJYVnpmlM

Describe alternatives you considered
The two alternatives that work are using static-port, or alternatively, for UDP, using Endpoint Independent Mapping to get me a NAT type of moderate. Both of these are not ideal for a gaming scenario for various reasons, which I am happy to elaborate more on if necessary.

Screenshots
Firewall logs when NAT port is set to strict:

Image

Firewall logs when NAT strict is unchecked (seems like the redirect is missing?):

Image

Relevant log files

see above photos for the drastic difference in the traffic going through to the UPNP port in question.

Additional context

The most important part of this entire setup is that I have had this configuration working without change for many years, the only thing that has changed is there is a new firewall system in play that we all migrated to back around spring time. All my rules are correct, as of my own working tutorial, and this issue equally affects every firewall I maintain that needs UPNP.

Environment

OPNsense 26.7.5-amd64
FreeBSD 15.1-RELEASE-p3
OpenSSL 3.5.9

I am also in the OPNsense forum telegram group chat if anyone wants to chat about this on there.

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

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.