New plugin proposal: os-ont, status page and widget for the optical network terminal
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 45/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 領域
- networking
調査の方向性
The proposal links a working prototype at net-mgmt/ont with 18 files and describes its configd action, Python driver, API controller, status page, and dashboard widget. Start by reviewing that branch and the repository contributing guide, then check whether the proposed plugin fits repository scope and naming conventions. Done means the maintainers answer the scope, menu, category, and development package questions; implementation is already underway in the prototype.
索引モデルが issue の本文から書いたものです。
説明
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 FTTH lines the ISP's optical network terminal (ONT) sits in front of OPNsense as a plain
bridge. Its health (optical receive/transmit power, PON state, BIP errors) is only visible
on the ONT's own web page. Reaching that page from the LAN usually means an extra IP alias on
the WAN NIC plus an outbound NAT rule, and even then nobody looks at it until the line fails.
A slowly degrading fiber or connector goes unnoticed.
The case I have at hand is the Deutsche Telekom "Glasfaser-Modem 2/2b", which Telekom hands
out on its FTTH lines in Germany. It serves its status as a JSON document at a fixed
address (192.168.100.1).
Describe the solution you'd like
A small, read-only plugin os-ont (category net-mgmt):
- Page Interfaces: Diagnostics: ONT Status: model, firmware, PON serial number (decoded),
PON state, optical receive/transmit power, BIP errors, LAN link and counters, plus a
second tab with every value the device reports. - Dashboard widget with the key values.
- Settings: enable, driver, ONT address (default 192.168.100.1).
- How it works: a configd action runs a Python script that does one HTTP GET of the ONT's
status document and returns normalized JSON to the API controller. No daemon, no
service, no binaries, no dependencies beyond core Python. Nothing is ever written to the
ONT. - The script uses one driver module per device type, so other ONTs (other ISPs' modems,
GPON SFP sticks) can be added later. The first driver only covers the Glasfaser-Modem
2/2b, because that is the device I can test.
A working prototype exists (18 files, about 450 lines without license headers):
https://github.com/duramson/plugins/tree/ont/net-mgmt/ont
(diff against master: https://github.com/opnsense/plugins/compare/master...duramson:plugins:ont)
It builds with make package, passes make lint and make sweep, and is clean under
phpcs with the core ruleset and pycodestyle. Tested on OPNsense 26.7 against a real
Glasfaser-Modem 2b (hardware V2, firmware 090165.1.0.010). The modem is connected to the
fiber but the line is not activated yet, so transmit power and PON state stay empty for
now. I will verify those once the line is live.
Questions before I open a pull request:
- Is this in scope for the plugins repository, given that it does not integrate a service
from ports? The ONT is reachable from the firewall only, so an external monitoring
system cannot see it without extra routing and NAT. - Are the name
os-ontand the categorynet-mgmtfine? - Is Interfaces: Diagnostics the right menu place, or would you prefer Reporting?
- The Makefile currently sets
PLUGIN_DEVEL=yes(packageos-ont-devel), as other new
plugins did for their first version. Should I keep that for the initial release or
submit it as a regular plugin right away?
I am willing to maintain the plugin.
Describe alternatives you've considered
- Opening the ONT's web page through an IP alias and outbound NAT: works, but shows the
values only on demand and needs extra firewall configuration. - External scripts or monitoring agents that poll the ONT: they live outside OPNsense and
still need the same network access.
Additional context
Screenshots of the status page and the dashboard widget are attached.
AI disclosure: parts of the code were written with Claude Code (Anthropic; models Claude
Opus 5.5 and Claude Fable 5.1). I reviewed the code and tested it on the setup described
above.
- 主要言語
- PHP
- スター
- 1.2k
- フォーク
- 926
- 平均マージ
- 1日 10時間
- マージ済み PR(30日)
- 25
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
opnsense/plugins のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
opnsense/plugins#5976 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
net/haproxy: IPv6 literal in real server "Source address" generates an invalid `source` directiveオープンincomplete
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
opnsense/plugins#5973 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
[dns/ddclient] Support hiding unused standard fields per service (optional_hiding)対応中かも @bringha1 が 1 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
q-feeds-connector: "error in configd communication" every update when the Unbound DNSBL rebuild takes longer than 120s対応中かも @mhatipog が 9 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
opnsense/plugins の issue をすべて見る
似ている issue
-
15.0
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
open-telemetry/opentelemetry-php-distro#176 ·
メンテナーはふだん 2 日以内に返信
-
No Code Attached Yet
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
joomla/joomla-cms#48941 ·
メンテナーはふだん 1 日以内に返信
-
needs-triage Platform(Default)
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
bug new
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
moodle-an-hochschulen/moodle-theme_boost_union#1500 ·
メンテナーはふだん 1 日以内に返信