Vai al contenuto principale

Guida all'integrazione di MikroTik RouterOS Captive Portal e Purple WiFi

Questa guida tecnica fornisce istruzioni dettagliate per l'integrazione di MikroTik RouterOS con la piattaforma Purple WiFi. Copre la configurazione del Captive Portal per il WiFi ospiti, l'autenticazione 802.1X per il WiFi dipendenti e il WiFi multi-tenant utilizzando PSK privati per la segmentazione dinamica delle VLAN.

📖 4 minuti di lettura📝 872 parole🔧 2 esempi pratici3 domande di esercitazione📚 8 definizioni chiave

Ascolta questa guida

Visualizza trascrizione del podcast
MikroTik RouterOS Captive Portal and Purple WiFi Integration Guide - Podcast Script [INTRO - approximately 1 minute] Welcome. If you're managing WiFi infrastructure at a hotel, a retail chain, a stadium, or a conference centre, and you're running MikroTik RouterOS, this episode is for you. I'm going to walk you through exactly how to integrate MikroTik's Hotspot Gateway with Purple's guest WiFi platform - covering three distinct use cases: guest WiFi with a captive portal and walled garden, secure staff WiFi using 802.1X, and multi-tenant network segregation using MikroTik's Private Pre-Shared Key feature. This isn't a theoretical overview. By the end of this, you'll have the specific CLI commands, RADIUS attributes, and configuration logic you need to deploy or audit these setups yourself. Let's get into it. [TECHNICAL DEEP-DIVE - approximately 5 minutes] Part one: Guest WiFi and the MikroTik captive portal. MikroTik's Hotspot Gateway is the engine behind guest WiFi redirection on RouterOS. When a visitor connects to your guest SSID, the Hotspot Gateway intercepts their HTTP traffic and redirects them to a splash page - that's your captive portal. Purple hosts that splash page. Your MikroTik router acts as the Hotspot Gateway and RADIUS client. Purple's platform acts as the RADIUS server. Here's how you set it up. First, run the Hotspot Setup wizard from the IP menu in Winbox or via the CLI. You'll assign it to your guest-facing interface - typically a VLAN interface or a bridge port. Set your local address pool, configure your DNS servers, and give the hotspot a DNS name. That DNS name is what guests see in their browser before they authenticate. Once the wizard completes, you need to point the hotspot profile at Purple's RADIUS server. In the CLI, that looks like this: /radius add service=hotspot address=YOUR-PURPLE-RADIUS-IP secret=YOUR-SHARED-SECRET authentication-port=1812 accounting-port=1813 Then enable RADIUS on the hotspot profile: /ip hotspot profile set default use-radius=yes Purple will provide you with the RADIUS IP address, the shared secret, and the splash page URL when you set up your venue in the Purple dashboard. Now, the walled garden. This is critical. Before a guest authenticates, their device needs to be able to reach Purple's splash page and any OAuth providers you're using - Google, Facebook, and so on. Without walled garden entries, the redirect loop breaks and guests can't log in. In RouterOS, you add walled garden entries under IP, Hotspot, Walled Garden. You need to add Purple's splash page domain, any social login domains, and any CDN hosts that serve the login page assets. Purple's documentation lists the exact domains for your region. Add them as IP entries or hostname entries - hostname entries are more resilient when IP addresses change. The key RADIUS attributes Purple returns on a successful authentication include the session timeout, which controls how long a guest stays connected before being prompted again, and optionally a bandwidth rate limit using the Mikrotik-Rate-Limit vendor-specific attribute. This lets you enforce fair-use policies per guest session directly from the Purple dashboard without touching the router config. Part two: Secure Staff WiFi with 802.1X. This is where you move away from shared passwords entirely. IEEE 802.1X is the standard for port-based network access control. On a MikroTik wireless interface, you enable WPA2-Enterprise or WPA3-Enterprise authentication, which means the access point becomes an authenticator - it passes EAP credentials from the staff device to a RADIUS server, which validates them and returns an Access-Accept or Access-Reject. Purple's Staff WiFi product integrates with Microsoft Entra ID, Okta, and Google Workspace as identity providers. When a staff member's device connects, it presents a certificate or username and password via PEAP-MSCHAPv2. Purple's RADIUS server validates that credential against your identity provider in real time. On the MikroTik side, you configure the wireless security profile with authentication-types set to wpa2-eap, and you point the RADIUS client at Purple's server with service=wireless. In CAPsMAN - that's MikroTik's centralised access point management system - you set this at the security configuration level so it applies across all your managed access points consistently. The RADIUS server can return the Mikrotik-Wireless-VLANID attribute to place authenticated staff on a specific VLAN. This is how you enforce network segmentation - finance staff land on VLAN 10, operations on VLAN 20, and so on - all from a single SSID, all driven by identity. For automatic revocation - when a staff member leaves - Purple's integration with your identity provider means that when you disable the account in Entra ID or Okta, the next re-authentication attempt fails and the device is disconnected. No manual router config changes required. Part three: Multi-Tenant WiFi with Private Pre-Shared Keys. This is the most architecturally interesting of the three. Private PSK - sometimes called PPSK or iPSK - lets you run a single SSID where each tenant, resident, or device group connects with a unique passphrase, and each passphrase maps to a different VLAN. On MikroTik, this works through MAC-based RADIUS authentication on the wireless interface. When a device connects, the access point sends the device's MAC address to the RADIUS server as the username. The RADIUS server - either MikroTik's own User Manager in RouterOS 7, or FreeRADIUS - looks up that MAC address and returns two vendor-specific attributes: Mikrotik-Wireless-Psk, which is the per-device passphrase, and Mikrotik-Wireless-VLANID, which places the device on the correct VLAN. The wireless security profile needs radius-mac-authentication set to yes, and the RADIUS client needs service=wireless. In practice, for a build-to-rent property with 200 apartments, you'd pre-register each resident's device MAC addresses in Purple's platform when they move in. Purple maps each MAC to a unique PSK and a VLAN corresponding to that apartment's network segment. The resident connects using their apartment passphrase. Their devices land on an isolated VLAN. Their neighbour's devices are on a completely separate VLAN. Neither can see the other's traffic. For devices that don't support 802.1X - smart TVs, games consoles, IoT devices - this approach is the practical alternative. The device just needs to support WPA2-PSK, which everything does. [IMPLEMENTATION RECOMMENDATIONS AND PITFALLS - approximately 2 minutes] Let me give you the four things that most commonly go wrong in these deployments. First: walled garden gaps. If Purple's splash page fails to load, check your walled garden entries. The most common culprit is a missing CDN domain or a social login redirect that isn't whitelisted. Use the MikroTik torch tool or packet sniffer to watch what DNS queries are being blocked before authentication. Second: RADIUS timeout mismatches. MikroTik's default RADIUS timeout is 1,100 milliseconds. If Purple's RADIUS server is geographically distant or the network path has latency, you'll see intermittent authentication failures. Increase the timeout to 3,000 milliseconds and configure a backup RADIUS server for resilience. Third: VLAN filtering not enabled on the bridge. Dynamic VLAN assignment via RADIUS only works if bridge VLAN filtering is enabled. This is a RouterOS requirement. If you're seeing all clients land on the default VLAN regardless of what RADIUS returns, check that vlan-filtering=yes is set on your bridge interface. Fourth: CAPsMAN version mismatch. If you're running a mix of CAPsMAN version 2 and version 3 managed access points, VLAN tagging behaviour can differ. Standardise on RouterOS 7 with CAPsMAN version 3 across your AP estate before deploying dynamic VLAN features. One architectural recommendation: run your guest, staff, and management traffic on separate VLANs from day one, even if you're not using all three Purple use cases immediately. Retrofitting VLAN segmentation onto a flat network is significantly more disruptive than building it in from the start. [RAPID-FIRE Q AND A - approximately 1 minute] Can I use MikroTik's built-in User Manager instead of an external RADIUS server? Yes, for smaller deployments. User Manager in RouterOS 7 supports PEAP-MSCHAPv2 for wireless 802.1X and can return the Mikrotik-Wireless-VLANID attribute. For production deployments with Purple, you'll use Purple's hosted RADIUS infrastructure, which handles the identity provider integration and session management for you. Does Purple support MikroTik CAPsMAN? Yes. Purple is hardware-agnostic. The integration works at the RADIUS and hotspot redirect level, so it's compatible with standalone MikroTik access points and CAPsMAN-managed deployments equally. What RouterOS version do I need? RouterOS 7.x is recommended for all three use cases covered in this guide. Dynamic VLAN assignment via wireless RADIUS and the updated User Manager are RouterOS 7 features. RouterOS 6.x supports hotspot and basic RADIUS authentication but lacks some of the wireless VLAN capabilities. [SUMMARY AND NEXT STEPS - approximately 1 minute] To summarise: MikroTik RouterOS gives you three distinct integration points with Purple. The Hotspot Gateway handles guest WiFi redirection and captive portal authentication. The wireless 802.1X configuration with RADIUS handles secure staff WiFi with identity-based access. And MAC-based RADIUS authentication with Private PSK handles multi-tenant network segregation for residential and mixed-use properties. The common thread across all three is RADIUS. Get your RADIUS client configuration right - correct IP, correct shared secret, correct service type, correct timeout - and the rest follows. Your next steps: log into your Purple dashboard, navigate to the venue configuration, and grab your RADIUS credentials. Then follow the CLI commands in the written guide to configure your hotspot profile, your wireless security profile, and your walled garden entries. Test with a single access point before rolling out to your full estate. If you're deploying this at scale - multiple sites, hundreds of access points - Purple's Professional Services team can support the rollout. Purple runs across 80,000 live venues globally, with 99.999% uptime, and is certified to ISO 27001, GDPR, and Cyber Essentials. Thanks for listening. The full written guide with all CLI commands, RADIUS attribute tables, and worked examples is linked in the show notes.

header_image.png

Sintesi operativa

L'integrazione di MikroTik RouterOS con Purple consente di creare una rete unificata e basata sull'identità in ambienti ospiti, dipendenti e multi-tenant. Questa guida fornisce la logica di configurazione specifica richiesta per distribuire l'overlay cloud di Purple sull'hardware MikroTik. Apprenderai come configurare l'Hotspot Gateway di RouterOS per il reindirizzamento del WiFi ospiti , implementare lo standard IEEE 802.1X per un WiFi dipendenti sicuro e distribuire chiavi pre-condivise private (PPSK) per isolare il traffico WiFi multi-tenant.

Seguendo questi modelli di distribuzione, potrai segmentare la tua rete in modo sicuro e, al contempo, acquisire dati di prima parte per WiFi Analytics . Purple ha gestito 440 milioni di accessi nel 2024 con un uptime del 99,999%, rendendo questa architettura ideale per ambienti ad alta densità nei settori Retail , Hospitality e Trasporti .

Approfondimento tecnico

WiFi ospiti: Captive Portal e Walled Garden

L'Hotspot Gateway di MikroTik intercetta il traffico HTTP non autenticato e lo reindirizza al Captive Portal ospitato da Purple. Purple funge da server RADIUS, gestendo l'autenticazione e la gestione delle sessioni.

Per garantire il corretto caricamento del Captive Portal, è necessario configurare un walled garden. Questo consente l'accesso pre-autenticazione ai domini della splash page di Purple, alle reti di distribuzione dei contenuti (CDN) e ai provider OAuth (come Google Workspace e Microsoft Entra ID). Senza queste voci, il ciclo di reindirizzamento si interrompe.

In caso di autenticazione riuscita, il server RADIUS di Purple restituisce gli attributi standard, tra cui Session-Timeout per applicare i limiti di connessione e, facoltativamente, Mikrotik-Rate-Limit per applicare limitazioni di larghezza di banda direttamente dalla dashboard di Purple.

WiFi dipendenti: Autenticazione 802.1X

Per il WiFi dipendenti, l'implementazione dello standard IEEE 802.1X consente di eliminare le password condivise. L'access point MikroTik funge da autenticatore, trasmettendo le credenziali EAP al server RADIUS di Purple. Purple si integra nativamente con Microsoft Entra ID, Okta e Google Workspace, convalidando le credenziali tramite PEAP-MSCHAPv2 o EAP-TLS.

Quando un dipendente si connette, il server RADIUS di Purple può restituire l'attributo Mikrotik-Wireless-VLANID. Questo indica al router MikroTik di inserire il dispositivo autenticato in una VLAN specifica, consentendo la segmentazione della rete basata sui ruoli da un unico SSID. Per una panoramica più ampia sugli standard di sicurezza, consulta Enterprise WiFi Security: A Complete Guide for 2026 .

WiFi multi-tenant: Private PSK (PPSK)

Gli ambienti multi-tenant richiedono un isolamento sicuro senza la complessità dell'802.1X, poiché molti dispositivi consumer (come smart TV e console di gioco) non lo supportano. MikroTik supporta le Private PSK (PPSK) tramite l'autenticazione RADIUS basata su MAC.

Quando un dispositivo si connette all'SSID, il router MikroTik invia l'indirizzo MAC del dispositivo a Purple. Purple restituisce l'attributo Mikrotik-Wireless-Psk (la passphrase univoca per quel tenant) e l'attributo Mikrotik-Wireless-VLANID. Questa architettura consente a centinaia di tenant di condividere un unico SSID pur rimanendo in bolle di rete completamente isolate.

architecture_overview.png

Guida all'implementazione

1. Configurazione del client RADIUS

Innanzitutto, definisci Purple como server RADIUS in RouterOS. Questo passaggio si applica a tutti e tre i casi d'uso.

/radius
add address=YOUR-PURPLE-RADIUS-IP secret=YOUR-SHARED-SECRET service=hotspot,wireless authentication-port=1812 accounting-port=1813 timeout=3000ms

2. Configurazione dell'Hotspot WiFi ospiti

Esegui la procedura guidata di configurazione dell'Hotspot sull'interfaccia VLAN ospite, quindi abilita l'autenticazione RADIUS sul profilo risultante.

/ip hotspot profile
set [ find default=yes ] use-radius=yes radius-accounting=yes

Configura il walled garden per consentire l'accesso all'infrastruttura di Purple.

/ip hotspot walled-garden
add action=allow dst-host=*purple.ai
add action=allow dst-host=*purpleportal.net

3. Configurazione del WiFi dipendenti 802.1X

Configura il profilo di sicurezza wireless per utilizzare WPA2-Enterprise e indirizzalo al server RADIUS.

/interface wireless security-profiles
add authentication-types=wpa2-eap eap-methods=passthrough mode=dynamic-keys name=staff-8021x radius-mac-authentication=no

Assicurati che il filtraggio VLAN del bridge sia abilitato per supportare l'assegnazione dinamica delle VLAN.

/interface bridge
set bridge1 vlan-filtering=yes

4. Configurazione PPSK multi-tenant

Per PPSK, abilita l'autenticazione MAC sul profilo di sicurezza wireless e configura il formato dell'indirizzo MAC.

/interface wireless security-profiles
add authentication-types=wpa2-psk mode=dynamic-keys name=multi-tenant-ppsk radius-mac-authentication=yes radius-mac-format=XX:XX:XX:XX:XX:XX

ppsk_vlan_diagram.png

Best practice

  • Standardizzazione su RouterOS 7: L'assegnazione dinamica delle VLAN tramite RADIUS wireless è notevolmente più robusta in RouterOS 7 rispetto a RouterOS 6.
  • Aumento dei timeout RADIUS: Il timeout RADIUS predefinito di MikroTik è di 1100 ms. Aumentalo a 3000 ms per prevenire errori di autenticazione intermittenti causati dalla latenza di rete.
  • Utilizzo di voci Walled Garden basate su hostname: Utilizza sempre dst-host anziché dst-address per le voci del walled garden, poiché gli indirizzi IP dell'infrastruttura cloud cambge frequentemente.
  • Abilita Bridge VLAN Filtering: L'assegnazione dinamica della VLAN tramite RADIUS (Mikrotik-Wireless-VLANID) richiede vlan-filtering=yes sull'interfaccia bridge.

Risoluzione dei problemi e mitigazione dei rischi

Se il Captive Portal non si carica, il walled garden è quasi certamente incompleto. Utilizza lo strumento MikroTik Torch per monitorare le query DNS eliminate dai client non autenticati sulla VLAN guest. Aggiungi i domini mancanti al walled garden.

Se i client 802.1X non riescono a autenticarsi, verifica il shared secret e assicurati che il client RADIUS sia configurato con service=wireless. Controlla i log della dashboard di Purple per confermare se l'Access-Reject proviene da Purple o dal tuo provider di identità.

Se i client si autenticano ma ricevono l'indirizzo IP errato, verifica che il filtraggio VLAN del bridge sia abilitato e che il server DHCP sia correttamente associato all'interfaccia VLAN assegnata dinamicamente.

ROI e impatto sul business

L'implementazione di Purple nella tua infrastruttura MikroTik trasforma un centro di costo in un generatore di entrate. Raccogliendo dati di prima parte, le location possono creare profili digitali dettagliati e automatizzare le campagne di marketing. Ad esempio, Avanti West Coast ha ottenuto un ritorno sull'investimento del 463% capitalizzando sui viaggiatori abituali e sulle opportunità di upsell.

Inoltre, il networking basato sull'identità riduce i costi di gestione IT. L'automazione dell'onboarding e dell'offboarding per lo Staff WiFi tramite Entra ID elimina la gestione manuale delle password, mentre il PPSK per il Multi-Tenant WiFi consente ai gestori immobiliari di configurare reti isolate senza dover distribuire hardware dedicato per ogni unità.

Definizioni chiave

Hotspot Gateway

A RouterOS feature that intercepts unauthenticated HTTP traffic and redirects it to a captive portal splash page.

Used to capture guest data and enforce terms of service before granting internet access.

Walled Garden

A list of allowed destinations that unauthenticated users can access.

Critical for allowing guests to reach the Purple splash page, CDNs, and OAuth providers (like Google) to complete the login process.

802.1X

An IEEE standard for port-based network access control that provides an authentication mechanism to devices wishing to attach to a LAN or WLAN.

Used for secure Staff WiFi, allowing authentication via Entra ID or Okta instead of a shared password.

Private PSK (PPSK)

A security architecture where multiple unique Pre-Shared Keys are used on a single SSID, often tied to specific MAC addresses and VLANs.

Ideal for Multi-Tenant WiFi, providing isolated network bubbles for residents and their consumer devices.

RADIUS

Remote Authentication Dial-In User Service. A networking protocol that provides centralised Authentication, Authorization, and Accounting (AAA) management.

The core protocol linking MikroTik hardware to Purple's cloud platform for identity validation.

VLAN Filtering

A RouterOS bridge setting that enforces VLAN tagging and untagging rules on bridge ports.

Must be enabled for dynamic VLAN assignment via RADIUS to function correctly.

CAPsMAN

Controlled Access Point system Manager. MikroTik's centralised wireless management system.

Used to deploy consistent wireless security profiles and RADIUS settings across multiple access points.

EAP-TLS

Extensible Authentication Protocol - Transport Layer Security. A highly secure authentication method requiring client-side certificates.

Supported by Purple for zero-trust Staff WiFi deployments where passwordless authentication is required.

Esempi pratici

A 200-room hotel needs to deploy secure Staff WiFi across their MikroTik access points. They want finance staff on VLAN 10 and operations staff on VLAN 20, using their existing Microsoft Entra ID credentials.

  1. Integrate Purple with Microsoft Entra ID in the Purple dashboard.
  2. Configure the MikroTik RADIUS client to point to Purple with service=wireless.
  3. Create a MikroTik wireless security profile with authentication-types=wpa2-eap.
  4. Enable vlan-filtering=yes on the MikroTik bridge.
  5. In Purple, map the Entra ID 'Finance' group to return Mikrotik-Wireless-VLANID=10 and the 'Operations' group to return Mikrotik-Wireless-VLANID=20.
Commento dell'esaminatore: This approach uses IEEE 802.1X for secure, passwordless authentication. By relying on Entra ID groups and RADIUS attributes, the network dynamically segments traffic at the edge, reducing the attack surface and eliminating manual VLAN configuration on the router.

A build-to-rent property manager needs to provide isolated WiFi networks for 50 apartments using a single SSID broadcast from MikroTik CAPsMAN.

  1. Configure the MikroTik wireless security profile for the SSID with authentication-types=wpa2-psk and radius-mac-authentication=yes.
  2. Ensure the RADIUS client is configured with service=wireless pointing to Purple.
  3. In the Purple dashboard, register the MAC addresses of the residents' devices.
  4. Assign a unique PSK and VLAN ID to each apartment in Purple.
  5. When a device connects, Purple returns the Mikrotik-Wireless-Psk and Mikrotik-Wireless-VLANID attributes, placing the device in its isolated network bubble.
Commento dell'esaminatore: This Private PSK (PPSK) architecture provides enterprise-grade isolation while supporting consumer devices that lack 802.1X capabilities. It scales efficiently and allows centralised management via Purple.

Domande di esercitazione

Q1. You have configured the MikroTik Hotspot Gateway and pointed it to Purple's RADIUS server. Guests connect to the SSID, but their browsers display a timeout error instead of the Purple splash page. What is the most likely configuration error?

Suggerimento: Consider what must happen before the guest authenticates.

Visualizza risposta modello

The walled garden is misconfigured or missing entries. Without allowing access to Purple's splash page domains and associated CDNs in the /ip hotspot walled-garden, the unauthenticated guest cannot load the login page, resulting in a timeout.

Q2. A retail chain wants to deploy Staff WiFi using 802.1X and Entra ID. They configure `authentication-types=wpa2-eap` and set up the RADIUS client. However, authentication fails. You check the RADIUS client configuration and see `service=hotspot`. How do you resolve this?

Suggerimento: Different wireless authentication methods require different RADIUS service types in RouterOS.

Visualizza risposta modello

Change the RADIUS client configuration to include service=wireless. The hotspot service type is only used for captive portal authentication. 802.1X and MAC authentication require the wireless service type.

Q3. You are deploying Multi-Tenant WiFi using Private PSKs. Purple successfully returns the `Mikrotik-Wireless-Psk` and `Mikrotik-Wireless-VLANID` attributes, and the device connects. However, the device receives an IP address from the default management subnet, not the isolated tenant subnet. What RouterOS setting is missing?

Suggerimento: Dynamic VLAN assignment requires the bridge to process VLAN tags.

Visualizza risposta modello

Bridge VLAN filtering is disabled. You must set vlan-filtering=yes on the bridge interface. Without this, the bridge ignores the dynamic VLAN tag assigned by RADIUS, and the traffic falls back to the default untagged PVID.

Continua a leggere questa serie

Integrazione di Alta Labs con Purple WiFi: installazione e configurazione del Captive Portal

Questa guida di riferimento tecnico copre l'integrazione end-to-end degli access point Alta Labs AP6 e AP6 Pro con il captive portal ospitato in cloud di Purple. Dettaglia la configurazione del reindirizzamento esterno, l'autenticazione RADIUS, i requisiti di walled garden e la segmentazione multi-tenant tramite AltaPass Private Pre-Shared Keys. I gestori delle sedi e i team IT disporranno di un playbook di implementazione replicabile per ambienti hospitality, retail e smart office.

Leggi la guida →

Integrazione di Zyxel Nebula Cloud e USG con Purple WiFi

Questa guida di riferimento tecnico copre l'integrazione end-to-end di Zyxel Nebula Cloud e dei firewall USG Flex con la piattaforma Purple WiFi. Fornisce istruzioni di configurazione passo-passo per il reindirizzamento del Captive Portal per gli ospiti, l'autenticazione RADIUS, la configurazione del Walled Garden, il WiFi protetto per il personale tramite 802.1X e la segmentazione della rete multi-tenant utilizzando le chiavi pre-condivise private (PPSK) di Zyxel con assegnazione dinamica della VLAN. I responsabili IT, gli MSP e gli architetti di rete che distribuiscono il WiFi in ambienti ricettivi, retail e multi-tenant troveranno indicazioni pratiche basate sugli standard di settore, inclusi PCI DSS, IEEE 802.1X e GDPR.

Leggi la guida →

Aruba ClearPass e Purple WiFi: Guida all'integrazione e alla distribuzione

Questa guida fornisce un riferimento tecnico completo per l'integrazione di HPE Aruba ClearPass Policy Manager con la piattaforma Purple WiFi, coprendo l'architettura proxy RADIUS, la configurazione del Captive Portal e la mappatura dinamica dei ruoli VLAN. È progettata per i responsabili IT e gli architetti di rete in ambienti fortemente basati su Aruba che necessitano di mantenere ClearPass per il NAC pur implementando Purple per l'autenticazione degli ospiti e l'analisi. L'implementazione di questa integrazione colma una lacuna critica tra i fornitori, consentendo sicurezza e conformità di livello aziendale insieme alle capacità di intelligence sui visitatori leader di mercato di Purple.

Leggi la guida →