Activating Mikrotik API access
If you are using a Mikrotik router, you will need to activate API access for easy registration of controllers on the server.
Open the control panel of your router via the web page or the program WinBox (for more information on how to install it, see the documentation: Configuring Mikrotik).
Go to the Services section and check that the API mode is active. If it is not active, enable it.
API access is already open and working! But still, let's pay extra attention to security issues.
Additionally, it is recommended to disable unused methods of access to the router. For example, you can leave only access through www and through the program WinBox.
It is also a good solution to restrict access to the router from the outside. To do this, specify in the Available from field for these services the local network address: 192.168.88.0/24. And for the API service this field will contain the address of the VPN server, in our case for PPTP, it is 10.10.1.1, and if you use L2TP, it is 11.11.1.1.
This completes the settings of access mode to the router via API and the next step is usually to register the controller on the server.