How-to: Set Up MikroTik Back To Home via RouterOS
In this guide, you'll set up MikroTik Back To Home from WinBox, WebFig or the RouterOS CLI, create a user and connect your phone with a QR code.
Everything below can be done in WinBox, WebFig or the terminal. Each step shows the WinBox path first and the CLI commands after it. Prefer the phone app for the whole setup? See How-to: Set Up MikroTik Back To Home via the BTH App.
Table of Contents
Go to IP > Cloud and enable DDNS.

Open the BTH VPN tab, enable Back To Home VPN and click Apply. Give the router a moment to finish the DDNS and Back To Home configuration: it's ready when vpn-status shows running.

Or do the same in the terminal:
ip cloud set back-to-home-vpn=enabled
# check the status, wait until vpn-status shows running
ip cloud print
Every device you connect needs its own user, because one user's configuration works on one device at a time. In the Cloud window, open Back To Home Users from the side menu and click New. Tick Allow LAN if you want this user to reach your home network too. Name the user and click Apply.
In the terminal, the same user with LAN access looks like this:
ip cloud back-to-home-user add name="user1" allow-lan=yes
If the user needs to reach files on the router, or to have a way to share files with you, open the File Access tab, choose Full or Read-only (or disable it), enter the folder path and click Apply. Use a folder that exists: the router accepts a path that doesn't exist without complaining, and the share then points at nothing.

In the terminal, add file access when you create the user:
ip cloud back-to-home-user add name="user1" allow-lan=yes file-access=full file-access-path=<Path in Mikrotik Files>
To give file access to a user that already exists, print the users, note the user number and set it:
ip cloud back-to-home-user print
# <usernum> is the number of the user
ip cloud back-to-home-user set <usernum> file-access=full file-access-path=<Path in Mikrotik Files>
After you apply the user settings, a configuration menu opens. Scroll down to the QR code, which you scan with the phone.

In the terminal, this prints the user's configuration and the QR code:
ip cloud back-to-home-user show-client-config <usernum>
On the phone, open the Back to Home app, tap Join Shared, then Scan QR Code.

Scan the QR code, name the tunnel and tap Import.

The imported tunnel now shows on the app's home screen, ready to connect.

To add more users, change their access or set an expiry date, see How-to: Create and share users in MikroTik Back To Home.
No MikroTik router at home? BGOCloud's MikroTik VPS plans give you a CHR with a public IP, a good fit for a WireGuard or OpenVPN server you can reach from any device, as well as have the power for hosting containers and apps inside your CHR.
You can also browse our full MikroTik CHR knowledge base for more guides on getting the most out of your router.