CAPsMAN on MikroTik

One Wi-Fi network on all MikroTik access points.
Scripts for the controller and the APs — RouterOS 7, wifi package.

CAPsMAN on MikroTik

Two scripts for RouterOS 7.13+ with the wifi package: one for the controller and one for the access points. The network name, password, channels and guest network are set once on the controller, and the access points receive them on their own.

1. Wi-Fi network

The country sets the allowed channels and power.
The more access points nearby, the narrower the channel should be, so they interfere less.

2. Controller and access points

The controller finds access points through it.
Where APs send client traffic. In the default configuration it is bridge.
hAP ax², ax³, cAP ax use wifi-qcom; hAP ac², cAP ac use wifi-qcom-ac.
Optional. Needed when the access points are in another network, not in the same segment as the controller.
Script for the controller

   
Script for each access point

   
Check

   
Undo

   

Scripts and passwords are created in your browser and are not sent anywhere.

What CAPsMAN is

CAPsMAN is the access point controller built into RouterOS. The network name, password, channels and guest network are set once on the controller, usually the main router, and the access points (CAPs) receive the settings themselves. A new AP just needs to be connected and switched to CAP mode, and a password change applies everywhere at once.

How to use it

  1. Set the network name, password and security. A password is generated right away; you can replace it.
  2. Choose the country, channels and, if needed, a guest network.
  3. Enter the bridges and the AP type: Wi-Fi 6 or Wi-Fi 5.
  4. Run the first script on the controller and the second on every access point, then check with the commands from the “Check” block.

Channels and roaming

Neighbouring access points should not share a channel. At 2.4 GHz there are only three non-overlapping channels — 1, 6 and 11 — so the script limits the choice to them. At 5 GHz there are more channels, and their width is worth reducing when there are many APs. 802.11r fast roaming speeds up a phone's move from AP to AP, which is noticeable on calls. The guest network on the router is set up on the “MikroTik guest Wi-Fi” page, and VLANs on bridges on “MikroTik VLANs”.

Frequently asked questions

Does the script work for hAP ac lite or cAP lite?

No: these devices work only with the old wireless package and the old CAPsMAN (/caps-man menu). The script targets the wifi package of RouterOS 7.13 and newer — Wi-Fi 6, and Wi-Fi 5 with wifi-qcom-ac (hAP ac², cAP ac and others on IPQ4019).

Why does an AP not show up on the controller?

Check that CAP is on (/interface wifi cap print), its bridge is connected to the same network and its radios have configuration.manager=capsman. If a router is in between, enter the controller address and open UDP ports 5246–5247. The log gives hints: /log print where topics~"caps".

Can the controller serve Wi-Fi itself?

Yes, but its own radios are not managed through CAPsMAN: assign them the same configurations by hand — /interface wifi set wifi1 configuration=pasw-5g, and likewise for the second radio.

Where does client traffic go?

Straight from the access point into its bridge (local forwarding). It does not pass through the controller, so the controller does not become a bottleneck. The guest network leaves the AP in its own VLAN.

More tools

MikroTik

MikroTik speed limits
Simple queues, PCQ, limits by address
MikroTik dual WAN
Backup link and load sharing with a link check
MikroTik configuration diff
What changed between two /export outputs
MikroTik backups
Backup and /export on a schedule to e-mail or SFTP
MikroTik configuration audit
Find holes in /export and get fix commands
MikroTik basic protection
Firewall, services and management access in one script
MikroTik brute-force protection
Block password guessing and scanners
MikroTik port forwarding
dst-nat, hairpin NAT and protection of forwarded ports