Firebird VPN Account Try for free

How to connect
in 3 steps

Choose your device and follow three steps: install the app, add the subscription, turn on the VPN.

Router

Set it up once on the router and every device at home goes through the VPN. Guides for Keenetic, MikroTik and OpenWrt.

Back to routers

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/print

Source: MikroTik: Container

  1. 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-before

    Source: MikroTik: Backup

  2. 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-changes

    No 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

  3. 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/print

    Source: MikroTik: Device mode, MikroTik: Container

  4. 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/print

    Formatting 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=ext4

    Source: MikroTik: /disk format, MikroTik: Container

  5. Step 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=firebird

    Source: MikroTik: Container

  6. 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.

    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

  7. 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/tmp

    Next, 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

  8. 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

  9. 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.

    Source: MikroTik: Container, wiktorbgu/mihomo-mikrotik

  10. 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