MikroTik RouterOS
Set up MikroTik RouterOS devices with IronWiFi's RADIUS authentication and external hotspot portal. This guide covers RADIUS server configuration, hotspot profile setup, walled garden configuration, custom login page integration, WPA-Enterprise deployment, and Passpoint (802.11u) configuration for advanced wireless scenarios.
Use the latest long-term or stable RouterOS release for best compatibility.
Prerequisites
In MikroTik RouterOS:
- MikroTik device with wireless capability
- RouterOS 6.x or 7.x
- Admin access via Terminal/SSH or WinBox
- Wireless interface configured (e.g., wlan1)
In IronWiFi Console (complete these first):
- Create a Network in IronWiFi Console
- Create a Captive Portal with vendor MikroTik
- Note your RADIUS settings (Primary IP, Backup IP, Secret) and Splash Page URL
RouterOS Configuration
Step 1: Configure RADIUS
Via Terminal:
Via WinBox:
- Navigate to RADIUS
- Click + to add
- Configure server settings
- Check hotspot service
Step 2: Configure Hotspot
Step 3: Configure Walled Garden
MikroTik requires both IP-based and DNS-based walled garden entries. Add
107.178.250.42
/ip hotspot walled-garden ip
Allow access to IronWiFi servers and authentication providers before login:
If you're using social login or payment providers, add these entries to your walled garden:
| Provider | Required Entries |
|---|---|
| |
| |
| |
| Twitter/X | |
| Apple | |
| Microsoft Entra ID | |
| Stripe | |
| PayPal | |
| Twilio (SMS) | |
Example configuration for Google login:
Step 4: Configure Login Page
The login page redirect passes MikroTik session variables (MAC address, IP, CHAP credentials) to IronWiFi. Do not modify the URL parameters in the redirect -- they are required for authentication to work.
Edit hotspot files to redirect to IronWiFi:
/file
In
/hotspot/login.html
Step 5: Configure IP Pool and DHCP
WPA-Enterprise
For 802.1X:
Passpoint Configuration
For devices supporting 802.11u:
Verification
After completing the configuration, verify everything is working correctly by running these commands:
Troubleshooting
If you encounter issues after configuration, use this table to diagnose and resolve common problems:
| Symptom | Cause | Solution |
|---|---|---|
| No redirect to splash page | Walled garden or DNS misconfiguration | Verify walled garden configuration, check hotspot profile settings, ensure DNS is working, test redirect URL manually |
| RADIUS timeout | Network connectivity or incorrect RADIUS settings | Check server connectivity with |
| Users not authenticated | RADIUS or login page misconfiguration | Check RADIUS configuration, verify login page redirect, test user credentials in IronWiFi Console, review hotspot logs |
Related Topics
For this vendor
Shared configuration
Was this page helpful?