Skip to main contentSkip to search
Skip to main content

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.

tip

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):

  1. Create a Network in IronWiFi Console
  2. Create a Captive Portal with vendor MikroTik
  3. Note your RADIUS settings (Primary IP, Backup IP, Secret) and Splash Page URL

RouterOS Configuration

Step 1: Configure RADIUS

Via Terminal:

Via WinBox:

  1. Navigate to RADIUS
  2. Click + to add
  3. Configure server settings
  4. Check hotspot service

Step 2: Configure Hotspot

Step 3: Configure Walled Garden

warning

MikroTik requires both IP-based and DNS-based walled garden entries. Add

107.178.250.42
to
/ip hotspot walled-garden ip
for reliable access, since DNS resolution may not be available for all clients before authentication.

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:

ProviderRequired Entries
Google
*.google.com
,
*.googleapis.com
,
*.gstatic.com
,
accounts.google.com
Facebook
*.facebook.com
,
*.fbcdn.net
,
connect.facebook.net
,
facebook.com
LinkedIn
*.linkedin.com
,
*.licdn.com
,
linkedin.com
Twitter/X
*.twitter.com
,
*.twimg.com
,
twitter.com
,
*.x.com
,
x.com
Apple
*.apple.com
,
*.icloud.com
,
appleid.apple.com
Microsoft Entra ID
*.microsoft.com
,
*.microsoftonline.com
,
*.msftauth.net
,
login.microsoftonline.com
Stripe
*.stripe.com
,
js.stripe.com
PayPal
*.paypal.com
,
*.paypalobjects.com
Twilio (SMS)
*.twilio.com

Example configuration for Google login:

Step 4: Configure Login Page

tip

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
, replace content with redirect:

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:

SymptomCauseSolution
No redirect to splash pageWalled garden or DNS misconfigurationVerify walled garden configuration, check hotspot profile settings, ensure DNS is working, test redirect URL manually
RADIUS timeoutNetwork connectivity or incorrect RADIUS settingsCheck server connectivity with
ping {RADIUS_IP}
, verify shared secret, check service type is correct, review RADIUS monitor with
/radius monitor 0
Users not authenticatedRADIUS or login page misconfigurationCheck RADIUS configuration, verify login page redirect, test user credentials in IronWiFi Console, review hotspot logs

For this vendor

Shared configuration

Was this page helpful?