MikroTik API Configuration
Preseem uses the RouterOS API alongside SNMP for additional MikroTik radio metrics and subscriber mapping, including PPPoE and IPv6. These instructions assume SNMP is configured. Confirm that the poller can also reach the chosen TCP API port; SNMP connectivity alone does not establish API connectivity.
Create a read-only API user
Create a dedicated local group and user on each access point or router. Replace the placeholders with the poller's source IP as seen by the device and a strong password:
/user group add name=preseem-api policy=read,api
/user add name=preseem-ro group=preseem-api address=<poller-IP>/32 password="<strong-password>" comment="Preseem API polling"
You may use different passwords for each device or the same password across devices. Keep the credentials available to share securely with Preseem Support.
Enable and restrict the API service
API-SSL uses TCP 8729 and is preferred when the device has a suitable certificate and Preseem is configured to use TLS. Replace <certificate-name> with the installed certificate name:
/ip service set api-ssl disabled=no certificate=<certificate-name> address=<poller-IP>/32
Alternatively, enable the standard API on TCP 8728 over a trusted management network or encrypted tunnel:
/ip service set api disabled=no address=<poller-IP>/32
Only one service is needed. The address setting restricts the source IPs permitted to connect. Confirm the service and port with Support.
Check firewall access
If the MikroTik input firewall blocks management connections, permit the poller before the applicable drop rule. For API-SSL:
/ip firewall filter add chain=input action=accept protocol=tcp src-address=<poller-IP>/32 dst-address=<router-management-IP> dst-port=8729 comment="Allow Preseem API polling"
Replace <router-management-IP> with the device's management IP, or use dst-port=8728 for standard API. If an existing rule already permits access, no additional rule is needed. Do not add a broad drop rule that might interrupt other management systems.
Verify and provide credentials
Check the service configuration and the user's assigned group:
/ip service print
/user print where name=preseem-ro
/user group print where name=preseem-api
Confirm the poller can establish a TCP connection to the selected port. Send Support the device management IPs, service and port, and API credentials through the secure method Support provides. Support will configure and test polling.