All projects
Hotspot Provisioning Toolkit
Programming Wi-Fi access points remotely, one VLAN each
Field tooling written for two Wi-Fi hotspot operators to configure their access points remotely, with one VLAN per access point behind MikroTik RouterOS 6.49.
- Devices set by one script
- ~100
- Device families
- 2
- Lines across 4 languages
- ~950
Engineering
Engineering decisions
The access points had no management tool for this job, so the scripts speak each device’s own protocol.
- A vendor login protocol, rebuilt
- The TP-Link TL-WA801N web login is rebuilt in PowerShell over raw TCP sockets: raw-RSA-signed, AES-128-CBC-encrypted CGI commands. One script sets Multi-SSID, the VLAN and a static address, then reboots, for about 100 devices.
- OpenWrt over ubus
- Node drives LuCI’s ubus JSON-RPC to set the hostname, the 802.1q VLAN and the SSIDs and to turn DHCP off. It refuses a device that is already programmed.
- Reaching awkward devices
- An IPv6 link-local proxy, a Host-header rewriting proxy that gets past a firmware redirect, and an SSH-tunnelled device proxy.
- Remote access
- A reverse SSH tunnel with a restricted user and ProxyJump lets the work happen without being on site.
Tech stack
Scripts
- PowerShell
- Bash
Tooling
- Node.js
- Python
Network
- MikroTik RouterOS 6.49
- OpenWrt
- VLAN 802.1q
- SSH tunnels
Outcome
Where it stands
This is field tooling, not a product.
- The newest fleet was partly finished by hand after the vendor firmware started returning HTTP 500.
Need something like this?
Tell me about the operation you want to organise and I will map it into a clear system before writing a line of code.
Let's talk