You run a MikroTik on RouterOS 7, and you want to reach the Linux servers and internal web UIs sitting behind it — from a browser, or from an AI agent — without forwarding a port to any of them. RouterOS 7 can run containers, so the neatest place for a Termalin Connector is the router itself: one small container that dials out, holds the link open, and becomes the door to everything on the LAN behind the router. Nothing listens on a public interface.
Why on the router, not behind it
If the router already runs RouterOS 7 with the container package, you don’t need a spare Raspberry Pi or a NAS to host the Connector — the router is a perfectly good spot for it. From there it reaches any private address on the LAN, so one container covers the servers, the dashboards and the router’s own WebFig. And because the Connector only dials out over HTTPS, NAT, CGNAT and the router’s own firewall are all irrelevant: there is no inbound port to open and no key left on the box. This is the container route from the Connector in Docker, run on the router instead of on a NAS.
Which MikroTik models
The container package only exists for some processors:
| MikroTik class | Container package |
|---|---|
| ARM64, 32-bit ARM, x86 (CHR included) | yes |
| MIPS, SMIPS, PowerPC, Tile | no — no container route |
A MIPS MikroTik can’t run a container at all; that’s the same wall OpenWrt hits on MediaTek and Atheros chips, where you use the one-line installer instead (see managing an OpenWrt router remotely). A Keenetic is closed and can’t run a container either — there the installer goes into Entware, covered in remote access to a Keenetic through Entware.
Turn containers on
- Install the
containerpackage (System → Packages, or uploadcontainer-<version>.npkfrom MikroTik’s “extra packages” and reboot). /system/device-mode/update container=yes, then confirm within 5 minutes: press the reset button, or power the router off and on. On a CHR that means powering the VM off — a warm reboot doesn’t count.- Give the container a disk: a USB stick or other drive formatted ext4 (
usb1below). The image is about 4 MB, its config a few KB.
The container
A bridge with NAT out, as in MikroTik’s own container guide, then the Connector. Get an enrolment token in the cabinet (Connectors → Add):
/interface/bridge/add name=containers
/ip/address/add address=172.17.0.1/24 interface=containers
/ip/firewall/nat/add chain=srcnat action=masquerade src-address=172.17.0.0/24
/interface/veth add name=veth-termalin address=172.17.0.2/24 gateway=172.17.0.1
/interface/bridge/port add bridge=containers interface=veth-termalin
/container/envs add list=termalin key=TERMALIN_TOKEN value=<token>
/container/envs add list=termalin key=TERMALIN_TARGET value=192.168.88.10:22
/container/mounts add list=termalin-data src=/usb1/termalin dst=/data
/container add remote-image=ghcr.io/termalinapp/termalin-connector:latest \
interface=veth-termalin envlists=termalin mountlists=termalin-data \
root-dir=/usb1/termalin-root start-on-boot=yes restart-policy=on-failure \
logging=yes name=termalin
/container start termalin
A few things are easy to get wrong:
/container startis not optional. Adding the container doesn’t run it — it stays stopped until the next boot unless you start it by hand.restart-policy=on-failurematters. The default isno, and a first start before the veth is up fails with “Host is unreachable” and stays stopped;on-failurelets it retry until the network answers.start-on-boot=yesbrings it back after a reboot.- These are RouterOS 7.25’s parameter names. Older 7.x releases spell them
name=(for envs and mounts),envlist=andmounts=.
Watch the pull with /container print and start it once it stops extracting.
The target is a server behind the router, not the router
RouterOS’s own SSH server refuses Termalin’s certificate sign-in, so you can’t open a RouterOS shell through the Connector. Point TERMALIN_TARGET at an OpenSSH server behind the router — a Linux server, a NAS, a Raspberry Pi — and add the sign-in line to that login user’s ~/.ssh/authorized_keys. The image has no shell, so the line is printed in the router’s log: /log print where topics~"container".
Web UIs don’t need any of that. The router’s WebFig (http://192.168.88.1), or any other dashboard on the LAN, is published as an internal site straight to its own host:port through the same Connector — no SSH involved.
What you reach through it
- A shell on a Linux box behind the router, in the web terminal, from a laptop or a phone.
- WebFig and any internal dashboard, in a browser tab, with nothing published to the internet.
- An AI agent. Point Claude, ChatGPT or Cursor at the hosted MCP endpoint to run commands on the server behind the router, keyless and audited. Across several sites, see managing an IoT fleet with AI over MCP.
Tested in emulation — the honest status
This was checked on a RouterOS 7.25.1 CHR (x86_64) under qemu, not on a physical MikroTik. With the published image ghcr.io/termalinapp/termalin-connector:0.2.11 pulled by the router from ghcr.io, the Connector enrolled, stayed connected, and a command ran through its tunnel on a Debian server behind the router. It came back on its own about 70 seconds after a reboot and about 45 seconds after a power-off, with the enrolment kept on the disk, and RouterOS’s own SSH refused the certificate as expected. RAM use was 1–6 MB.
What that run did not cover, stated plainly:
- ARM / ARM64 RouterBOARD hardware wasn’t tried — only a CHR, and only under emulation. The image does carry arm64 and arm/v7 variants.
- A real USB stick and the reset-button confirmation weren’t exercised (the CHR confirms device-mode with a VM power-off).
- Older RouterOS 7 releases weren’t tested — only 7.25.1, whose parameter names the commands above use.
- The container never updates itself. Pull a new tag and recreate it; the disk keeps the enrolment, so you don’t enrol again.
Termalin is a free, cross-platform SSH client with a web terminal, internal sites and a keyless Connector for routers and edge devices — download it, or read the Connector in Docker. The Connector needs Pro or the 14-day trial.