net/wol: check IPv6 NDP table (get_ndp) in dashboard widget for online status
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
- 62/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- javascript, php
- Lĩnh vực
- backend-api-design, frontend
Hướng nghiên cứu
Bắt đầu với net/wol/src/opnsense/www/js/widgets/WakeOnLan.js và tra cứu ARP hiện có, sau đó kiểm tra mục page-services-wakeonlan trong net/wol/src/opnsense/mvc/app/models/OPNsense/Wol/ACL/ACL.xml. Thêm tra cứu NDP và cho phép endpoint API của nó trong ACL; widget nên báo máy chủ đang trực tuyến khi MAC và giao diện đã cấu hình khớp trong một trong hai bảng. Issue không nêu bài kiểm tra nào, vì vậy hãy xem các bước kiểm tra widget gần đó để tìm quy trình xác minh phù hợp.
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:
- I have read the contributing guide lines at https://github.com/opnsense/plugins/blob/master/CONTRIBUTING.md
- I have searched the existing issues, open and closed, and I'm convinced that mine is new.
- When the request is meant for an existing plugin, I've added its name to the title.
Is your feature request related to a problem? Please describe.
On dual-stack interfaces where some target hosts communicate exclusively over IPv6 (IPv6-only hosts on a VLAN that still has an IPv4 broadcast address configured on OPNsense for sending L2 WoL magic packets), the Wake-on-LAN dashboard widget (WakeOnLan.js) always displays these hosts as Offline even when they are up and actively communicating with OPNsense.
This happens because WakeOnLan.js only queries /api/diagnostics/interface/get_arp (the IPv4 ARP table, arp -an) and never checks /api/diagnostics/interface/get_ndp (the IPv6 Neighbor Discovery table, ndp -an).
Observed on OPNsense 26.7.10 (os-wol 2.5_4):
arp -anhas no entry for the host's MAC address.ndp -anand/api/diagnostics/interface/get_ndplist the host's MAC as reachable (R/S) on the expected interface (intf_descriptionmatchesitem["%interface"]).
Describe the solution you'd like
- In
net/wol/src/opnsense/www/js/widgets/WakeOnLan.js, query/api/diagnostics/interface/get_ndpalongside/api/diagnostics/interface/get_arp(e.g., viaPromise.all) and mark a host as Online if it matches either:- a non-expired entry in the ARP table on the configured interface (note: using
.some()as proposed in #5790 also handles MACs present on multiple interfaces), or - a matching entry in the NDP table (
obj.mac.toLowerCase() === mac.toLowerCase() && obj.intf_description === intf).
- a non-expired entry in the ARP table on the configured interface (note: using
- In
net/wol/src/opnsense/mvc/app/models/OPNsense/Wol/ACL/ACL.xml, add<pattern>api/diagnostics/interface/get_ndp*</pattern>topage-services-wakeonlan(matching commit 0e62a49924 which addedapi/diagnostics/interface/get_arp*).
Describe alternatives you've considered
- Assigning an IPv4 address to IPv6-only servers just to populate the ARP cache — undesirable in an IPv6-only server environment.
- Optionally, note that
list_ndp.pycurrently filters out(incomplete)entries and returns{mac, ip, intf, manufacturer}(plusintf_descriptionadded byInterfaceController::getNdpAction()), without exposing the NDP neighbor state (R/S/D/P) or expiration. If maintainers prefer distinguishingReachablevsStale/expiredentries, that could be considered inopnsense/core(list_ndp.py) as a follow-up.
Additional context
- Environment: OPNsense 26.7.10 (amd64),
os-wol2.5_4. - Related: #5790 (refactor of
checkActive()inWakeOnLan.jsfromfind()tosome()), commit 0e62a49924 (ACL.xmlpattern forget_arp*). - I'm happy to open a PR once the preferred approach is confirmed.
- 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
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của opnsense/plugins
-
net/haproxy: IPv6 literal in real server "Source address" generates an invalid `source` directiveĐang mởincomplete
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
opnsense/plugins#5973 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[dns/ddclient] Support hiding unused standard fields per service (optional_hiding)Có thể đã có người làm @bringha1 đã nhận 1 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
q-feeds-connector: "error in configd communication" every update when the Unbound DNSBL rebuild takes longer than 120sCó thể đã có người làm @mhatipog đã nhận 8 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của opnsense/plugins
Issue tương tự
-
15.0
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
open-telemetry/opentelemetry-php-distro#176 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
No Code Attached Yet
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
joomla/joomla-cms#48941 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
needs-triage Platform(Default)
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug new
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
moodle-an-hochschulen/moodle-theme_boost_union#1500 ·
Maintainer thường phản hồi trong vòng 1 ngày