os-device-isolation — New plugin proposal for quarantining individual UniFi wireless clients through FreeRADIUS
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ó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 12/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- php
- Lĩnh vực
- authorization, networking, security
Hướng nghiên cứu
This is a proposal for a new community plugin, os-device-isolation, so there are no existing files to edit yet. Before any code, the open question is which interface the plugin should use to change a local os-freeradius user's VLAN setting, and the author has asked maintainers for that decision. Start by reading the existing os-freeradius plugin to see how it stores users and VLAN attributes, then wait for maintainer feedback. Done means maintainers agree on the design and the interface is settled.
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:
- [x ] I have read the contributing guide lines at https://github.com/opnsense/plugins/blob/master/CONTRIBUTING.md
- [x ] I have searched the existing issues, open and closed, and I'm convinced that mine is new.
- [ x] 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.
When a security tool flags a wireless device, I want it to be able to ask OPNsense to move that device onto a quarantine VLAN. In our setup, os-freeradius manages the VLAN assignment and UniFi manages the wireless connection. Today, an administrator has to identify the correct RADIUS record, change its VLAN, disconnect the client from its access point, and verify where it reconnects. Restoring access requires the same coordination.
I’d like external tools to be able to request that workflow using a scoped OPNsense API credential. The FreeRADIUS configuration and UniFi management credentials would stay under the firewall administrator’s control.
Describe the solution you'd like
I’d like to contribute a small community plugin, os-device-isolation, with three API operations:
-
Isolate. Match the selected wireless client to a dedicated local FreeRADIUS identity. Save its original VLAN setting, including an unset value, then apply the configured quarantine VLAN. Once that succeeds, ask the UniFi Network Controller to have the serving AP disconnect only that wireless client. The client decides when to reconnect. On its next full RADIUS authentication, it receives the updated assignment.
-
Restore. Reapply the saved VLAN setting and request the same targeted disconnect if the client is connected. A repeated isolation request would preserve the original setting. If an administrator has since changed the assignment, the plugin would report the conflict and preserve the administrator’s change.
-
Status. Report the configured assignment, the result of the disconnect request, and the last verified VLAN placement. For example, if the AP disconnects the client and it stays offline, the result would read: Quarantine VLAN applied. Client disconnected. VLAN placement unverified.
-
The first version would support UniFi wireless clients with a dedicated local os-freeradius identity per device.
-
A shared login or ambiguous client match would cause the request to stop before any configuration change.
-The administrator would provision the quarantine VLAN and its firewall rules. The plugin would provide a small settings page, separate privileges for viewing status and requesting changes, and an audit log.
Describe alternatives you've considered
Manual changes in FreeRADIUS and UniFi. This works for occasional incidents. The administrator has to track the original VLAN, verify the move, and repeat the process to restore access.
An external script calling both systems. This could perform the workflow, but each deployment would need to maintain the integration and give the script access to both systems. A plugin would let multiple security tools use the same narrowly scoped OPNsense interface.
Additional context
Before starting development, I’d appreciate maintainer feedback on whether this belongs in a standalone community plugin and which interface a plugin should use to update and apply a local os-freeradius user’s VLAN setting.
My first test would use two wireless clients with separate RADIUS identities on the same AP. I’d verify that the selected client moves to quarantine and back while the second client stays connected on its original VLAN. I’d also test a shared login, a failed disconnect request, and a client that stays offline. The initial implementation would document the UniFi Network version and disconnect interface tested.
AI disclosure: OpenAI ChatGPT (GPT-6.2 ASTRA) assisted with drafting and revising this feature request.
- Ngôn ngữ chính
- PHP
- Star
- 1.2k
- Fork
- 932
- Merge trung bình
- 1 ngày 11 giờ
- Pull request đã merge (30 ngày)
- 22
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
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
-
www/squid: configctl proxy stop returns before Squid exits, so stop+start (e.g. Monit restart) failsĐang mởsupport
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
opnsense/plugins#5983 · 1 bình luận ·
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 83/100
Maintainer thường phản hồi trong vòng 1 ngày
-
net/haproxy: IPv6 literal in real server "Source address" generates an invalid `source` directiveCó thể đã có người làm @fraenki đã nhận 6 ngày trước. Đang mởbug
Độ 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 · 1 người được giao ·
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 9 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
Tất cả issue của opnsense/plugins
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Automattic/blocks-engine#7881 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 86/100
iruzen-dono/workless#117 ·
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 78/100
magicsunday/webtrees-docker#285 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Flaky browser test: AreaHeadersTest 'shows Counting on the way while deferred tab counts load'Đang mởarea/tests type/bug when/soon
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Maintainer thường phản hồi trong vòng 1 ngày
-
WP-CLI 3.0 fixes the cron lock and core download bugs described in the handbookCó thể đã có người làm @mayankmajeji đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
WordPress/hosting-handbook#521 ·