Add a MikroTik Server
Connect Zettabit to your MikroTik router for PPPoE user management.
Prerequisites
Before adding a server, ensure:
- Router is accessible - You can reach the router from the internet or your network
- API is enabled - The RouterOS API service is running
- Credentials ready - You have a username and password with API access
Preparing Your MikroTik Router
Enable the API Service
On your MikroTik router, enable the API:
/ip service enable apiOr for SSL (recommended):
/ip service enable api-sslCreate an API User (Recommended)
Create a dedicated user for Zettabit:
/user add name=zettabit password=YOUR_SECURE_PASSWORD group=fullFor better security, create a limited group:
/user group add name=zettabit-api policy=read,write,api,!ftp,!local,!ssh,!telnet,!winbox,!web,!reboot,!sniff,!test,!password,!policy,!sensitive
/user add name=zettabit password=YOUR_SECURE_PASSWORD group=zettabit-apiCheck API Port
Verify which port the API is using:
/ip service print where name~"api"Default ports:
- API: 8728
- API-SSL: 8729
Adding the Server in Zettabit
1. Navigate to Network > Servers
Click Network in the sidebar, then Servers.
2. Click Add Server
Click the Add Server button.
3. Fill in Connection Details
| Field | Description | Example |
|---|---|---|
| Name | Friendly name | ”Main Router” |
| Host | IP address or hostname | ”192.168.1.1” or “router.example.com” |
| Port | API port number | 8728 or 8729 |
| Username | RouterOS API username | ”zettabit” |
| Password | RouterOS API password | Your password |
| Use SSL | Enable for API-SSL | Yes (recommended) |
4. Test Connection
Click Test Connection to verify settings before saving.
A successful test shows:
- Router identity
- RouterOS version
- Connection latency
5. Save the Server
Click Save to add the server.
Connection Settings Explained
Host
The address Zettabit uses to reach your router:
- Public IP: If router is on the internet (e.g., “203.0.113.50”)
- Private IP: If Zettabit is on the same network (e.g., “192.168.1.1”)
- Domain: If you have DNS configured (e.g., “router.myisp.com”)
Port
| Port | Protocol | Security |
|---|---|---|
| 8728 | API (plain) | Not encrypted |
| 8729 | API-SSL | Encrypted (recommended) |
SSL Certificate
If using API-SSL with a self-signed certificate:
- Zettabit accepts self-signed certificates by default
- For production, use a proper SSL certificate
After Adding a Server
Once added, Zettabit will:
- Connect and verify credentials
- Fetch existing PPPoE profiles
- Begin monitoring server status
- Be available for client assignment
Troubleshooting
”Connection refused”
- API service is not enabled
- Firewall blocking the port
- Wrong port number
”Authentication failed”
- Incorrect username or password
- User doesn’t have API access
- User is disabled
”Connection timeout”
- Router is unreachable
- Network path is blocked
- Wrong IP address
”SSL handshake failed”
- Using SSL port (8729) without enabling SSL
- Certificate issues
- Try disabling SSL temporarily to test
Security Best Practices
- Use API-SSL - Always encrypt API traffic
- Strong passwords - Use unique, complex passwords
- Limit access - Restrict API to known IP addresses
- Minimal permissions - Only grant necessary access
- Regular rotation - Change passwords periodically
Editing a Server
To modify server settings:
- Click on the server in the list
- Click Edit
- Update settings
- Test connection
- Save changes
Deleting a Server
To remove a server:
- Remove all client assignments first
- Click the Delete button
- Confirm deletion
Note: Deleting a server doesn’t affect the actual router, only Zettabit’s record.
Last updated on