Step 4 of 7
Paste the setup command
One line in the Winbox terminal connects the router to Kawifi.
This one command connects the router to Kawifi. It works out whether the router runs RouterOS 6 or 7, downloads the right setup from Kawifi and runs it.
- Get the command
On step 5 of Get started press Get the setup command. Or on the router's page: Setup & actions›Rotate secret and get script.
- Copy it
Press Copy under the command.
- Paste it in Winbox
Open New Terminal, right-click to paste, then press Enter.
- Wait for it to finish
It prints what it is doing and takes under a minute. Get started moves on by itself when the router reaches Kawifi.
It looks like this. Your own link is different and works only for your router:
{
:local v [/system resource get version]
:local m [:pick $v 0 [:find $v "."]]
:put ("Kawifi: RouterOS " . $v . ", getting the setup for version " . $m)
/tool fetch url=("https://app.kawifi.net/api/routers/setup/your-own-link/\?ros=" . $m) dst-path=kawifi-setup.rsc check-certificate=no
:delay 3s
/import file-name=kawifi-setup.rsc
/file remove [find name="kawifi-setup.rsc"]
}What it sets up
An encrypted link, with backup tunnels that take over by themselves.
RADIUS with a secret made for this router only.
The hotspot uses the Kawifi page and lets phones reach Kawifi before paying.
So Kawifi can log customers in after payment and show who is online.
The link works once, for a limited time. Used or expired? Press Get the setup command again for a new one.
Getting a new command makes a new secret: the router stops logging customers in until you paste it. Do it when you can reach the router.
Running the command twice is safe. If the router cannot download it, open Router can't download? Paste the full script instead under the command and paste the script for its version.