01What Net Hub is
Net Hub replaces a dozen separate tools with one window that shows the state of the whole site, its problems and alerts, and lets you act right away.
An administrator usually keeps WinBox, Zabbix, the video recorder software, security and inverter apps, AnyDesk and Telegram bots open. Net Hub brings all of it together: the panel opens in any browser, and sign-in uses a login and password with confirmation in Telegram.
40+MikroTik devices across three offices
71IP cameras with live video
35Ajax security devices
40+NH Agent tools on every PC
Who it’s for
- Owner — sees everything and approves risky actions with the “Allow” button in Telegram.
- An administrator — full access to the network, cameras, security, computers and tools.
- Security — the guard screen: gate, alarms, cameras, site status.
- Staff and managers — only the sections opened to them.
02Architecture
Everything converges on one server in the office; from outside it can only be reached through Cloudflare.
Users
Admins and staffbrowser, phone
Guard postguard screen, power widget
Telegramalerts, approvals
internet
Cloud
Cloudflare WorkerD1 / KV · panel, sign-in, command queue
Cloudflare Tunnelvideo, direct channel, PC agents
Cloudflare Pagesnet-hub.com.ua website
Ajax cloudAPI + event queue
outbound connections
Office server · Ubuntu + Docker
Net Hubservice + panel API
Agent serverNH Agent, command queue
ZabbixSNMP, triggers
Automationupdates, watchdogs
Telegram botbuttons, AI assistant
go2rtclive video
fast-alprlicense plates
guacdRDP · SSH · VNC
resticencrypted backups
local network
Equipment
MikroTik40+ devices, 3 offices
Cameras71 IP cameras
Ajaxhub and 35 devices
Deyeinverter + batteries
PCs with NH AgentWindows 10/11
Fig. 1. Net Hub components and how they connect
iThe server opens outbound connections itself (Cloudflare Tunnel, Telegram, the Ajax cloud), so no port is opened on the router for the panel, video or PC agents.
How a request travels
- Panel: browser → Cloudflare Worker (sign-in, session, D1) → direct channel through the Tunnel to the office server; if the channel is down, the D1 command queue is used.
- Video: camera → go2rtc on the server → Cloudflare Tunnel → browser; only after signing in to the panel.
- PC agents: in the office they talk to the server directly, outside it through a secure channel; every request is signed with the PC’s key.
- Notifications: server → Telegram and push; “Allow / Deny” answers come back the same way.
03Panel sections
The side menu has a section per module; each opens only for those granted the matching permission.
| Section | What it does |
| Overview | The whole fleet on one screen: online / offline, warnings, known issues with a comment and due date, the computers group. |
| Devices | A live card for every MikroTik (~2–3 s): ports, PoE, VLANs, 24 h and 7-day charts, config changes, terminal, files, updates. |
| Wi-Fi | Clients by office, device history, activity heatmap, rollout of new access points. |
| Reliability | Port errors, weak links, reboots and uptime. |
| Internet | Three ISPs with automatic failover, link quality. |
| Cameras | Live grid, motion events with snapshot and video, scheduled guarding, lighting control, reboots. |
| Gate | License plate recognition, allowed and banned lists, entry log with photos, voice announcements. |
| Security | Ajax: arm, night mode, disarm; sensors, sensor map, alarm log. |
| Warehouse map | A 2D/3D building model with cameras, Wi-Fi points and server rooms; clicking a camera opens its video. |
| Energy | Inverter and batteries: charge, grid on or off, runtime forecast, generator, history. |
| Computers | PCs with NH Agent: real-time status, task manager, disks, printers, updates, remote screen, console, files, PC fleet and reports. |
| Tools | About 50 functions in 7 groups: new Wi-Fi points, firmware, backups, security, cameras, Zabbix; run with a live log or on a schedule. |
| Connections | RDP, SSH and VNC to computers and servers right in the browser, with file transfer. |
| Users | Separate permissions, role templates, action log. |
Also: a dedicated guard post screen for a second monitor, three themes (Classic, Glassy and Glassy Flow), a mobile version and push notifications in the browser and on iPhone.
04Network & equipment
The whole network is built on MikroTik and managed centrally via API, with no need to log into each device by hand.
| What | Details |
| Core router | MikroTik CCR2116 with three ISPs and automatic failover: fiber, a backup line and Starlink. |
| Fiber hub | CRS326, where fiber lines from every server room converge. |
| Server-room switches | CRS328 with PoE in four server rooms: basement, two on the ground floor, one on the first floor. |
| Wi-Fi | cAP ax and mANTBox ax access points managed by CAPsMAN; staff and guest networks. |
| Segmentation | Separate VLANs for work, Wi-Fi, guests, cameras and management; access between them is closed by default. |
| Other offices | Two remote offices on their own MikroTik routers, linked by WireGuard tunnels. |
| Structured cabling | ~230 Keystone Cat6A modules, a dedicated run to every PoE camera. |
Fleet automation
- Management via API. Python scripts on the server connect to every MikroTik as a restricted service user.
- Nightly updates in waves. Test access points first, the rest three days later in groups of five, switches and the router one at a time. If a device doesn’t come back, the process stops and an alarm goes to Telegram.
- Backups and change tracking. Daily config backups of every device and a comparison: what changed and where.
- New access point wizard. One run and the access point gets its name, VLAN, monitoring, backup, protection and logging.
05Monitoring & alerts
We learn about any problem first, in Telegram or by push, and a summary report arrives every morning.
- Zabbix polls every MikroTik over SNMP and cameras by ping: links, port errors, temperature, power supplies, ISP outages, power and security.
- Telegram bot sends alerts with action buttons (“It’s me”, “Kick”, “Block IP”) and approvals for panel actions. Inside there’s an AI assistant: ask in plain language and it runs safe commands on the equipment itself.
- Central log. All devices send logs to the server; a watchdog filters out service logins and reports only human ones.
- Network watchdogs: a new device on the network; a foreign device on a camera cable (the port is disabled automatically); Wi-Fi password guessing; rogue access points; VPN connections.
- Computers: PC went offline, a USB drive was plugged in, a printer is low on toner — alerts from NH Agent.
- Morning report at 08:00: config changes, new devices, blocks, backup status; a weekly PC fleet report.
- Push notifications in the browser (desktop, iPhone from the Home Screen) and in the Android app.
06Video & gate
71 cameras are connected to Net Hub directly: live video from anywhere with no open ports on the router.
- Live video — go2rtc takes the camera stream (up to 1440p) and delivers it to the browser through Cloudflare Tunnel.
- Motion events — a snapshot and 15 seconds of video, Telegram and push alerts, kept for 14 days.
- Camera control — reboot, lighting (IR, white, smart), PoE power cycling on the switch port.
- Warehouse map — a 3D building model from the drawings (78 × 58 m, three levels and a basement), every camera with its field of view and every Wi-Fi point.
License plate recognition at the gates
- The neural network fast-alpr reads plates from the cameras at both gates, filters out passing cars and stitches fragments together.
- Smart gate with AI: the car is tracked by its position in the frame and an event is created only once it crosses the gate line; AI double-checks doubtful plates from the photo along with make and color. One car, one event.
- Plate database: allowed / banned, expiry date, make, color, role (employee, guest, VIP).
- Entry log with photos and the route: which gate they came in, which they left by, how long they stayed on site.
- Voice announcements only cars from the database; in Telegram, only unknown entries and banned cars.
- Guard actions on screen: “guest until end of day”, “do not admit”, manual exit mark — all go into the log.
07Security
The Ajax alarm system is integrated via the official Ajax Enterprise API: Net Hub sees every sensor and controls site security.
- Equipment: hub, outdoor motion sensors, signal repeaters, key fob; hubs run on an isolated network with internet access only.
- Control: arm, night mode, disarm (with a PIN at the post or confirmation in Telegram), bypassing a single sensor, tests.
- Events: alarms, faults, arming and disarming arrive within seconds and are mirrored to Zabbix.
- Cameras linked to sensors: two cameras are linked to each sensor; during an alarm, photos and a short video clip arrive in Telegram.
- Incident log: every alarm gets an outcome (false, checked, police, test); an alarm is confirmed by two sensors.
Sensor map
The same 3D building model, with every sensor shown with its range and angle. The color shows the sensor’s status:
all goodweak link or powerlow batterycriticaldisarmed
Guard post screen
A dedicated screen for the guard monitor combines the gate and security: what needs action now, the site map, cars on site, the event feed. During an alarm the map shows the sensor (it blinks red), the two linked cameras appear on the right, and an “ALARM” bar and siren appear on top.
08Energy
Backup power is visible in Net Hub too: battery charge, whether the grid is on and how long it will last, and the guards get voice prompts on what to do.
- Equipment: a Deye inverter and LiFePO4 batteries (~10 kWh) power every server room; single-phase and three-phase Deye inverters are supported.
- Live data: charge, battery power, solar, grid, consumption; the server calculates charging speed and runtime forecast.
- Notifications: grid lost / restored, low charge, battery full — in Telegram, push and the Android app.
- The Energy section in the panel with history and reports; the /deye command in the Telegram bot.
Widget on the guard PC
- Always on top of the video wall: charge, grid, forecast; a tray icon with the percentage.
- Voice alerts in Ukrainian: “grid power lost”, “grid power restored”, “battery full, stop the generator”, “charge low, start the generator”, “generator did not start”.
- The window stays until the guard presses a button; with no acknowledgement after 3 and 10 minutes a Telegram message is sent. After the button, the server checks that power really came back.
- Link monitoring: if the widget stops responding, an alert is sent; it updates itself from the server.
Mobile apps
An Android app with a dashboard widget and push notifications, plus an iPhone web page with a charge ring and daily chart that can be added to the Home Screen.
09NH Agent & PC fleet
Our own agent for Windows 10/11: everything an administrator would do at the user’s computer, plus managing the whole PC fleet in groups.
How it works
- A Windows service (running as SYSTEM) plus a helper in the user session for the screen, notifications and the user’s printers. Written in Go, a single file.
- Connection: the agent calls the agent server itself — directly in the office, through a secure channel outside it; every request is signed with that PC’s own key (HMAC). No ports are open on the PC.
- Command queue: commands wait until the PC comes online; the result and log return to the panel.
- Fleet updates: a new version reaches every PC within minutes, with checksum verification, limited retries and protection against a failed update.
- Resilience: the crash log is kept and delivered after a restart.
Capabilities
| Toolset | What it does |
| Monitoring | Real-time status, who is using the PC, Windows event logs, hardware and software inventory, USB drive alerts. |
| Administration | Processes, services, startup, Task Scheduler, registry editor, USB storage blocking. |
| Disks | Full Disk Management: shrink, extend, create, delete, format, letters and paths, GPT/MBR initialization, VHDs, check and optimize, BitLocker status. |
| Printers | Add a printer for a user (IP, network, shared), drivers from INF, ports, print queue, paper and duplex settings, sharing; toner levels via SNMP with alerts. |
| Updates & software | Windows Update (status, install, pause, restart), silent install and removal of software, update all. |
| Remote work | Screen and control in the browser (WebRTC), clipboard, files; control with employee consent; CMD and PowerShell console; two-pane file manager; session recording. |
| PC fleet | Groups by tags, a software standard with a report and an “Install missing” button, scripts on groups, shutdown and restart with a user warning, Wake-on-LAN, a weekly Telegram report, CSV export. |
Protection
- Risky actions (deleting and wiping disks, scripts on groups) only after the owner taps “Allow” in Telegram; system and boot partitions are locked, everything else requires typing the name to confirm.
- Control with consent: the employee sees a “Yes / No” prompt, 30 seconds without an answer means no; during the session the screen has an orange frame with an “End” button.
- Session recordings are kept for 30 days and deleted automatically; every action is in the audit log.
10Integrations & services
- Remote access: RDP, SSH and VNC in the browser via Apache Guacamole; passwords are stored encrypted and every connection is approved in Telegram.
- AI assistant in the Telegram bot, built on the Claude API: answers in plain language and runs only safe commands.
- Odoo: Odoo 19 demo databases, with sign-in for external users through Net Hub access control.
- Remote accounting: a cloud Windows server with accounting software, connected over a WireGuard tunnel.
- Website and demo: net-hub.com.ua (UA / EN) and a live demo with data from a fictional site; website requests arrive in Telegram.
11Security
Nothing is exposed from outside, every change needs a human’s confirmation, and attacks are blocked automatically, even at night.
- Panel sign-in: login and password (PBKDF2) plus confirmation in Telegram; the address is blocked after five failed attempts.
- Access rights: separate permissions per section. Actions that change something (ports, reboots, security, connections and PC actions) are available only to the administrator and only after “Allow” in Telegram. All actions are logged.
- No open ports: the panel, video and agents work through Cloudflare Worker and Cloudflare Tunnel; from outside, only the WireGuard port is open on the router.
- MikroTik auto-protection: three failed logins block the source on every device; port-scan detection; management only from the admin network.
- Secrets: keys and passwords are stored in files with restricted permissions, PC passwords are encrypted; scripts never print them to logs.
- Code: in a private repository; before every commit, an automatic check that no passwords or keys got into the code.
- Backups: an encrypted copy of the server to cloud storage every night, with a freshness check in the morning report.
12Technologies
The system runs on a single Linux server and a few cloud services; the core code was written specifically for Net Hub.
| Layer | Tools | Purpose |
| Server | Ubuntu 26.04 LTS, systemd, cron, ufw | Net Hub service, scripts, scheduling |
| Containers | Docker, Docker Compose | Zabbix, go2rtc, fast-alpr, guacd, Cloudflare Tunnel, Odoo, bot |
| Backend | Python 3, SQLite, JSON | Panel API, data collection, integrations |
| Backend | librouteros, paramiko, netmiko | MikroTik management via API and SSH |
| PC agent | Go, pion WebRTC, ConPTY, PowerShell | NH Agent: Windows service, remote screen, console |
| Frontend | HTML, CSS, JavaScript | Panel, guard screen, themes |
| Frontend | three.js | 2D/3D warehouse map and sensor map |
| Frontend | Web Push, Service Worker, PWA | Notifications, install on phone |
| Cloud | Cloudflare Workers, D1, KV, Pages | Panel and website on your own domain |
| Cloud | Cloudflare Tunnel, TURN | Video, direct channel, remote screen |
| Monitoring | Zabbix 7, SNMP, rsyslog | Equipment status, triggers, logs |
| Video | go2rtc, ffmpeg, ONVIF / RTSP | Live video, event clips |
| Recognition | fast-alpr (ONNX) | License plates at the gates |
| Voice | ElevenLabs, Piper TTS | Ukrainian voice announcements |
| Access | Apache Guacamole (guacd) | RDP, SSH, VNC in the browser |
| Network | MikroTik RouterOS 7, CAPsMAN, WireGuard | Routing, Wi-Fi, tunnels |
| Notifications | Telegram Bot API, Firebase Cloud Messaging | Alarms, approvals, push |
| AI | Claude API (Anthropic) | Telegram bot assistant, license plate verification |
| Integrations | Ajax Enterprise API, Deye, Provision-ISR | Security, power, cameras |
| Backups | restic, rclone, network storage | Encrypted copies of the server and configs |
| Clients | C# WinForms, Kotlin + Jetpack Compose | Guard widget, Android app |
| Development | Git (private repository), Claude (Anthropic) | Design, code, testing |
© 2026 Net Hub · NH-DOC-01 · version 2.0 · info@net-hub.com.ua