How to connect
in 3 steps
Choose your device and follow three steps: install the app, add the subscription, turn on the VPN.
iPhone and iPad
Choose an app
Start with the first app. It takes the fewest steps. If it doesn't work, try the next one with the same subscription.
-
EasiestKaringApp Store · RussiafreeStep-by-step guide
-
Requires a country changeHappApp Store · other countriesfreeStep-by-step guide
-
If the others don't workClash MiApp Store · RussiafreeStep-by-step guide
-
ShadowrocketApp Store · Russia249 ₽How to connect
Android
Choose an app
Start with the first app. It takes the fewest steps. If it doesn't work, try the next one with the same subscription.
-
EasiestincyGoogle PlayfreeStep-by-step guide
-
Also on Google Playv2RayTunGoogle PlayfreeStep-by-step guide
-
If the others don't workHappGitHubfreeStep-by-step guide
-
FlClashXGitHubfreeInstall
Windows
Choose an app
Start with the first app. It takes the fewest steps. If it doesn't work, try the next one with the same subscription.
-
EasiestHappGitHubfreeStep-by-step guide
-
If the others don't workFlClashXGitHubfreeStep-by-step guide
-
Koala ClashGitHubfreeInstall
-
Prizrak-BoxGitHubfreeInstall
Mac
Choose an app
Start with the first app. It takes the fewest steps. If it doesn't work, try the next one with the same subscription.
-
EasiestHappGitHubfreeStep-by-step guide
-
If the others don't workFlClashXGitHubfreeStep-by-step guide
-
Clash MiMac App StorefreeHow to connect
-
KaringMac App StorefreeHow to connect
-
Koala ClashGitHubfreeInstall
-
Prizrak-BoxGitHubfreeInstall
-
ShadowrocketMac App Store249 ₽How to connect
Linux
Choose an app
Start with the first app. It takes the fewest steps. If it doesn't work, try the next one with the same subscription.
-
EasiestHappGitHubfreeStep-by-step guide
-
If the others don't workFlClashXGitHubfreeStep-by-step guide
-
Koala ClashGitHubfreeInstall
-
Prizrak-BoxGitHubfreeInstall
Android TV
Choose an app
Start with the first app. It takes the fewest steps. If it doesn't work, try the next one with the same subscription.
-
EasiestHappGitHubfreeStep-by-step guide
Apple TV
Choose an app
Start with the first app. It takes the fewest steps. If it doesn't work, try the next one with the same subscription.
-
EasiestHappApp Store · RussiafreeStep-by-step guide
-
ShadowrocketApp Store · Russia249 ₽How to connect
Router
Set it up once on the router and every device at home goes through the VPN. Guides for Keenetic, MikroTik and OpenWrt.
The whole home goes through the VPN
Once set up, every device connected to the router goes through the VPN: phones, computers, TVs. Russian sites from our list open directly, without the VPN. The router takes one place of your plan's device limit.
MikroTik
On MikroTik the VPN runs in a container: RouterOS 7 starts the wiktorbgu/mihomo-mikrotik image with the Mihomo core, and the router sends the home traffic into it. The image is a community project, not MikroTik: the manufacturer does not support it. You need RouterOS 7, a USB drive or disk, the router's terminal (WinBox, web interface or SSH) and physical access to the router: you will press a button on it once.
Will your MikroTik work
RouterOS runs containers only on ARM, ARM64 and x86 processors. The image needs an external USB disk and some spare memory.
Works
- hAP ax³ARM64, 1 GB of memory, USB 3.0 for the disk.
- RB5009ARM64, 1 GB of memory, USB 3.0 for the disk.
Uncertain
- hAP ac³32-bit ARM and 256 MB of memory: the image starts, but memory is tight.
- hEX S (2025)The EN7562CT processor runs only arm32v5 images. It has 512 MB of memory and USB 3.0, but this setup has not been tested on it yet.
Does not work
- hAP ax²ARM64 and 1 GB of memory, but no USB, and the image does not fit into the built-in 128 MB.
- hAP ac²Only 128 MB of memory — not enough for the container.
- MIPShEX and hEX S before 2025, hAP ac lite, hAP lite and other MIPS models: RouterOS has no containers for MIPS.
How to check yours: run the commands in the router's terminal. The architecture-name line must say arm, arm64 or x86, total-memory must be 256 MB or more, and your drive must be in the disk list.
/system/resource/print
/disk/printSource: MikroTik: Container
Step 1 of 10
Save a backup
Open the router's terminal: New Terminal in WinBox or the web interface, or log in over SSH. The commands save a backup of the settings and a text export to Files — download both files to your computer. If something goes wrong, you can restore the settings from the backup.
/system/backup/save name=firebird-before /export file=firebird-beforeSource: MikroTik: Backup
Step 2 of 10
Install the container package
The first command shows whether the package is there: if container is already listed and not disabled, skip this step. The others download the package of the same version as RouterOS and reboot the router — confirm with y.
/system/package/print where name=container/system/package/update/check-for-updates /system/package/enable container /system/package/apply-changesNo package even after checking for updates means RouterOS is old: update it in System → Packages → Check For Updates. There is also a manual way: download the Extra packages of your version from mikrotik.com/download, drag the container file into Files and reboot the router.
Source: MikroTik: Packages
Step 3 of 10
Turn on container mode
RouterOS turns on containers only with a confirmation on the router itself. Within 5 minutes after the first command, briefly press the reset or mode button on the case, or turn the power off and on — the router reboots. A reboot by command cancels the change. After that the second command shows container: yes.
/system/device-mode/update container=yes/system/device-mode/printSource: MikroTik: Device mode, MikroTik: Container
Step 4 of 10
Prepare the disk
Plug a USB drive or disk in and find it in the list: the name is in the slot column, usually usb1. If the name is different, for example usb1-part1, replace usb1 with it in all the commands below.
/disk/printFormatting erases everything on the disk. Format to ext4 with the last command only a new or empty disk. If the disk already holds your files or containers, skip it: the image takes about 64 MB, leave it some free space.
/disk/format usb1 file-system=ext4Step 5 of 10
Create a network for the container
The commands create the virtual port firebird for the container, the bridge firebird-br with the address 172.31.200.1 and the container's way out to the internet. Everything gets the name or comment firebird — the last step removes everything by it. If the 172.31.200.0/30 network is already in use, replace it in all commands with a free one.
/interface/veth/add name=firebird address=172.31.200.2/30 gateway=172.31.200.1 comment=firebird /interface/bridge/add name=firebird-br comment=firebird /interface/bridge/port/add bridge=firebird-br interface=firebird comment=firebird /ip/address/add address=172.31.200.1/30 interface=firebird-br comment=firebird /ip/firewall/nat/add chain=srcnat action=masquerade src-address=172.31.200.0/30 comment=firebirdSource: MikroTik: Container
Step 6 of 10
Paste the subscription and the device label
The commands of this step contain your subscription link and the router's device label. Log in and the commands appear here: no need to type the link by hand. No subscription yet — take the free trial.
Copy the whole set of commands and paste it into the router's terminal. It puts a Mihomo settings file with the same rules as for Keenetic and OpenWrt on the disk and stores your subscription link and the device label for the container — with it the router appears in Devices and takes one place.
Show the whole command
The link and the label are personal: do not publish or forward these commands.
The subscription link appears after payment or the free trial.
The subscription link works again after renewal.
Could not load your subscription link. Refresh the page or open your account.
Reissued the link
The old link stops working. Open this page again, paste the commands of step 6 and restart the container with the commands below. The device label stays the same, so the router takes no extra place.
/container/stop [find name=firebird] :delay 5s /container/start [find name=firebird]Source: wiktorbgu/mihomo-mikrotik, MikroTik: /file, Mihomo: proxy-providers
Step 7 of 10
Install the container
First look at the general container settings with the first command: the second one changes them — images will be downloaded from Docker Hub and temporary files will go to your disk. If your own containers already run on the router and Docker Hub is already set, skip the second command.
/container/config/print/container/config/set registry-url=https://registry-1.docker.io tmpdir=usb1/firebird/tmpNext, the commands attach the settings folder to the container and download the wiktorbgu/mihomo-mikrotik image — this takes a few minutes. When the firebird container shows the stopped status in the list, start it with the last command. After a router reboot the container starts by itself.
/container/mounts/add list=firebird src=usb1/firebird/etc dst=/etc/mihomo /container/add name=firebird remote-image=wiktorbgu/mihomo-mikrotik:latest interface=firebird root-dir=usb1/firebird/root mountlists=firebird envlists=firebird dns=77.88.8.8 start-on-boot=yes logging=yes/container/print /container/start [find name=firebird]Source: MikroTik: Container, Docker Hub: wiktorbgu/mihomo-mikrotik
Step 8 of 10
Send the home through the container
The commands send everything the devices at home open on the internet into the container, except local addresses. Your rules stay as they are: only our own rules with the comment firebird are added, and one of them goes before FastTrack, because FastTrack works only with the main routing table.
/routing/table/add name=firebird fib comment=firebird /ip/route/add dst-address=0.0.0.0/0 gateway=172.31.200.2 routing-table=firebird comment=firebird /ip/firewall/address-list/add list=firebird-local address=10.0.0.0/8 comment=firebird /ip/firewall/address-list/add list=firebird-local address=172.16.0.0/12 comment=firebird /ip/firewall/address-list/add list=firebird-local address=192.168.0.0/16 comment=firebird /ip/firewall/address-list/add list=firebird-local address=100.64.0.0/10 comment=firebird /ip/firewall/address-list/add list=firebird-local address=127.0.0.0/8 comment=firebird /ip/firewall/address-list/add list=firebird-local address=169.254.0.0/16 comment=firebird /ip/firewall/address-list/add list=firebird-local address=224.0.0.0/4 comment=firebird /ip/firewall/mangle/add chain=prerouting in-interface-list=LAN connection-state=new dst-address-type=!local dst-address-list=!firebird-local action=mark-connection new-connection-mark=firebird passthrough=yes comment=firebird /ip/firewall/mangle/add chain=prerouting in-interface-list=LAN connection-mark=firebird action=mark-routing new-routing-mark=firebird passthrough=no comment=firebird { :local ft [/ip/firewall/filter/find where action=fasttrack-connection]; :if ([:len $ft] > 0) do={ /ip/firewall/filter/add chain=forward action=accept connection-mark=firebird connection-state=established,related comment=firebird place-before=[:pick $ft 0] } }The settings already do this, just like our subscription: sites in the .ru, .su and .xn--p1ai (Cyrillic .rf) zones, Russian sites from the category-ru list and our own list (banks, marketplaces, streaming) open directly. Some sites go through the VPN even if they are in the .ru zone.
IPv4 goes through the container. If your provider gives IPv6, devices may use it past the VPN — then turn IPv6 off in IPv6 → Settings.
Source: MikroTik: Policy Routing, MikroTik: Mangle, Mihomo: rules
Step 9 of 10
Check
The command shows the container log: there should be no errors loading the subscription.
/log/print where topics~"container"On a phone or computer at home, turn off the VPN app and open any IP check site: it shows the country of the VPN server, not yours. Russian sites such as gosuslugi.ru open as usual. Not connecting? Look at Devices in your account: if there are no places left, the router gets no servers.
The check site shows the VPN server's country: the whole home is protected.
Step 10 of 10
How to remove everything
One paste removes everything these steps created: the container, its variables and folder on the disk, the network, the route and the rules with the comment firebird. The container package, container mode and the backup from step 1 stay.
/container/stop [find name=firebird] :delay 5s /container/remove [find name=firebird] /container/envs/remove [find list=firebird] /container/mounts/remove [find list=firebird] /ip/firewall/filter/remove [find comment=firebird] /ip/firewall/mangle/remove [find comment=firebird] /ip/firewall/address-list/remove [find list=firebird-local] /ip/route/remove [find comment=firebird] /routing/table/remove [find name=firebird] /ip/firewall/nat/remove [find comment=firebird] /ip/address/remove [find comment=firebird] /interface/bridge/port/remove [find comment=firebird] /interface/bridge/remove [find name=firebird-br] /interface/veth/remove [find name=firebird] /file/remove [find name="usb1/firebird"]Source: MikroTik: Container








