How duoluo1234/routeros-cn-panel works
RouterOS 中文管理面板 is a Go web application for viewing and safely managing RouterOS devices through a bundled browser UI. The principal workflow is browser login, authenticated API access, then reading overview or resource data and submitting validated changes; writes are recorded for audit and can be reverted. Separate capabilities include bulk import, device actions, Mangle grouping, and live WAN rates. The excerpts establish the HTTP handlers, REST client, resource validation, journal, and rate collection; some UI wiring and handler internals are not shown, so documented API relationships use README evidence.
Main entry points: main.go HTTP application · ros.go REST client · snmp.go WAN rate collection · index.html Management UI
Components 18
Web interface
- Management UI
static/index.html
API workflows
- HTTP application
main.go - Login sessions
main.go - Resource listing and CRUD
main.go - Overview dashboard
main.go - Bulk import
main.go - Device actions
main.go - Mangle grouping
main.go - Resource registry and validation
schema.go - IPv6 and routing resources
resources_ext.go
RouterOS access
- REST client
ros.go - RouterOS device
Telemetry and audit
- WAN rate collection
snmp.go - Change journal
journal.go - Version compatibility check
rosversion.go
Other components
- Operator
- SNMP service
- External rate source
Connections 24
- Operator → Management UI: uses
README.md - Management UI → HTTP application: calls API
README.md - HTTP application → Login sessions: authenticates
main.go - HTTP application → Overview dashboard: routes overview
README.md - HTTP application → Resource listing and CRUD: routes list and writes
README.md - HTTP application → Bulk import: routes import
README.md - HTTP application → Device actions: routes actions
README.md - HTTP application → Mangle grouping: routes grouping
README.md - Resource listing and CRUD → Resource registry and validation: validates resources
main.go - Resource registry and validation → IPv6 and routing resources: registers resources
resources_ext.go - Overview dashboard → REST client: reads device data
main.go - Resource listing and CRUD → REST client: reads and writes
main.go - Bulk import → REST client: writes rows
README.md - Device actions → REST client: executes commands
main.go - Mangle grouping → REST client: reads rules
- REST client → RouterOS device: REST requests
ros.go - Resource listing and CRUD → Change journal: records changes
main.go - HTTP application → Change journal: lists and reverts
README.md - Overview dashboard → WAN rate collection: gets interface rates
main.go - WAN rate collection → SNMP service: queries counters
snmp.go - WAN rate collection → External rate source: requests rates
snmp.go - WAN rate collection → REST client: fallback counters
- Overview dashboard → Version compatibility check: checks compatibility
main.go - Version compatibility check → REST client: reads system version
rosversion.go