This article explains how to configure a LANCOM router or WLAN controller so that guests on an open SSID are redirected to the Cloudi-Fi captive portal and authenticated by Cloudi-Fi RADIUS through the LANCOM Public Spot.
Tested with: LANCOM vRouter, LCOS 10.94 RU5, managing a LANCOM LX-6400 access point.
How it works
- A guest joins the guest SSID and opens any web page.
- The LANCOM Public Spot redirects the guest to the Cloudi-Fi portal, adding the guest's MAC and IP address and the gateway details to the URL.
- The guest registers on the portal. Cloudi-Fi creates credentials for the session and posts them back to the LANCOM login page.
- The LANCOM checks the credentials with Cloudi-Fi RADIUS, opens internet access and redirects the guest to the Cloudi-Fi success page.
Before you start
Have the following ready. Values in angle brackets, such as <gw-ip>, are used throughout this article.
| Item | Example | Where to get it |
|---|---|---|
| LANCOM router or WLC firmware | LCOS 10.94 RU5 | LANCOM |
| Access point firmware | Current LCOS LX release for your AP model | LANCOM. An outdated LX release can fail to apply the SSID configuration. |
Cloudi-Fi portal URL <portal-url>
|
https://login.cloudi-fi.net/start/ch/<company-hash>/lh/<location-hash>/sp/lancom.com |
Cloudi-Fi admin console or your Cloudi-Fi contact |
Cloudi-Fi RADIUS server <radius-ip> and shared secret |
Depends on your region and environment | Cloudi-Fi |
Guest gateway address <gw-ip>
|
192.168.3.254/24 |
Your addressing plan |
Gateway hostname <gw-host>
|
lancom-gw.example.com |
A domain you control |
TLS certificate for <gw-host>
|
Wildcard certificate with its intermediate chain | Your certificate authority |
| Public IP address the gateway uses to reach the internet | Your internet-facing NAT address | Give it to Cloudi-Fi so it can be authorised as a RADIUS client |
All steps use the LANCOM web interface (WEBconfig). Paths starting with Setup are under Extras → LCOS Menu Tree. Click Send to save each change.
Get Cloudi-Fi captive portal URL
To create a new location in the Cloudi-fi Admin interface if it doesn't already exist, follow these instructions:
Go to the "Location" section in the Cloudi-fi Admin interface.
Create New Location and enter the required details for the new location:
- Location Name
- Type (Redirect URL)
- Portal template
- Country
Location URL: this URL will be used to configure an External Captive Portal
- Access the Cloudi-Fi administration console
- Select the location
- Click on the menu button for the location
- Select "Copy Splash page URL"
Transform the URL as follows:
Cloudi-Fi
https://login.cloudi-fi.net/start/ch/************/lh/************/sp/spsomething.com
Fortinet FortiGate
https://login.cloudi-fi.net/start/ch/************/lh/************/sp/splancom.com
Get Radius information
You will need the Radius information (Server IPs, Secret, Ports) to proceed with the setup.
- IPs address of the Radius servers
- Ports: UDP 1812 (Authentication) & 1813 (Accounting)
- The Secret (provided by Cloudi-Fi Support)
You can get the Secret by asking Chatbot in the Cloudi-Fi Admin Console. Cloudi-Fi’s Support team will provide you with the necessary information.
1. Create the guest network and DHCP
Create a dedicated guest network and make the gateway the guests' DNS server.
Go to Configuration → IPv4 → General → IP networks → Add and enter:
- Network name:
GUEST - IP address / Netmask:
<gw-ip>/255.255.255.0 - Network type: Intranet
- VLAN ID:
2(any free ID, as long as it matches Step 2) - Interface:
WLC-TUNNEL-1for traffic tunnelled from the access points, or the LAN or VLAN interface your guests arrive on - Interface tag:
2
Go to Configuration → IPv4 → DHCPv4 → DHCP networks, open GUEST and set:
- DHCP server enabled: Yes
- First and last address: for example
.10to.240 - Default gateway:
<gw-ip> - Primary DNS:
<gw-ip>, Secondary DNS:0.0.0.0
Important: the DNS setting is required. Guests who are not yet logged in cannot reach public DNS servers such as 1.1.1.1 or 8.8.8.8, and the walled garden only works for host names that guests resolve through the LANCOM.
2. Create the guest SSID
Skip item 1 if the LANCOM already manages your access points.
In Configuration → WLAN Controller → General, enable the WLAN controller. In Configuration → Certificates → Cert. authority (CA), activate the CA. The controller uses it to issue certificates to the access points.
Go to Configuration → WLAN Controller → Profiles → Logical WLAN networks (SSIDs) → Add and enter:
- Name:
GUEST-CP. Network name (SSID): your guest SSID - Connect SSID to:
WLC-TUNNEL-1 - VLAN mode: Untagged. With Tagged, guests did not receive a DHCP address in our tests.
- VLAN ID:
2 - Encryption profile:
OPEN - RADIUS accounting: off. The Public Spot sends accounting itself (Step 5).
Go to Configuration → WLAN Controller → Profiles → WLAN profiles, open the profile assigned to your access points and set WLAN network list to the name of the logical network from item 2 (for example GUEST-CP), not the SSID.
Important: if the WLAN network list is empty or names a network that does not exist, the access point stays connected to the controller but broadcasts no SSID.
Push the change to the access point: go to Setup → WLAN-Management → Disconnect-AP, enter the access point's LAN MAC address without separators (for example 00a05786e6e5) and click Execute. The access point reconnects within about a minute and downloads the new profile.
Check: in Extras → LCOS Menu Tree → Status → WLAN-Management → AP-Connections, the access point shows Authorized Yes and State Run.
3. Check internet access with NAT
Guest traffic must reach the internet masqueraded (NAT) behind a WAN address of the LANCOM.
- If the LANCOM has its own WAN connection (DSL, IPoE, PPPoE): check that the default route points to that remote site with masquerading on. Nothing else to do.
- If the LANCOM sits behind another router on your LAN, as is common for a vRouter: LCOS does not masquerade traffic sent to a next-hop router on the LAN, even when the route says Masquerade = on. Give the LANCOM a dedicated uplink on a WAN interface (an IPoE remote site with a static address), point the internet routes to it with masquerading on, and keep the routes to your private networks on the LAN router so management access is not cut off. Contact Cloudi-Fi support if you need the detailed procedure.
Check: Extras → Execute Ping to 1.1.1.1 succeeds, and in Status → IP-Router → Act.-IPv4-Routing-Tab. the internet routes show the WAN interface with Masquerade on.
4. Turn on Public Spot authentication
Go to Configuration → Public-Spot → Authentication:
- Authentication mode: Authenticate with name and password
- User has to accept the terms of use: off. Cloudi-Fi shows the terms on the portal.
Go to Configuration → Public-Spot → Server → Interfaces - Public-Spot and enable user authentication on WLC-TUNNEL-1 (or the guest interface from Step 1) only.
Go to Setup → Public-Spot-Module → VLAN-Table and add the guest VLAN ID (2).
No local user accounts are needed on the LANCOM. Cloudi-Fi creates the guest's credentials and posts them to the LANCOM login page.
5. Add the Cloudi-Fi RADIUS server
Go to Setup → Public-Spot-Module → RADIUS-Servers → Add:
| Field | Value |
|---|---|
| Provider | CLOUDIFI |
| Auth.-Server-Hostname | <radius-ip> |
| Auth.-Server-Port | 1812 |
| Auth.-Server-Secret | Shared secret from Cloudi-Fi |
| Auth.-Require-Msg-Auth. | Yes |
| Acc.-Server-Hostname | <radius-ip> |
| Acc.-Server-Port | 1813 |
| Acc.-Server-Secret | The same shared secret |
Important: a new entry starts with both ports set to 0 and the accounting hostname empty. With port 0 the LANCOM sends no RADIUS request and every login fails, so enter 1812 and 1813 explicitly.
The Public Spot uses the provider whose name matches the realm of the user name, then an entry named DEFAULT, then the first entry in the table. Keep a single Cloudi-Fi entry so the choice is unambiguous.
Ask Cloudi-Fi to authorise the public IP address your LANCOM uses to reach the internet (Step 3). RADIUS requests come from that address.
6. Redirect guests to the Cloudi-Fi portal
Go to Setup → Public-Spot-Module → Page-Table:
Open Welcome, set Type to Redirect and URL to:
<portal-url>?mac=%m&ip=%r&gw_mac=%c&gw=https://<gw-host>&serial=%e&url=%o
Open Start (the page shown after a successful login), set Type to Redirect and URL to https://login.cloudi-fi.net/success.php.
After each change, run Status → Public-Spot → Flush-Template-Cache so new redirects use the new URL immediately.
| Parameter | LCOS value | Sent to Cloudi-Fi |
|---|---|---|
mac |
%m |
Guest MAC address |
ip |
%r |
Guest IP address |
gw_mac |
%c |
LANCOM MAC address |
gw |
Fixed text https://<gw-host>
|
Address of the LANCOM login page, without a trailing slash |
serial |
%e |
LANCOM serial number |
url |
%o |
Page the guest originally requested |
Note: do not use %a for the gateway address. It is only filled on Template pages and arrives as unreadable characters on a Redirect page. Do not add ssid=%s on tunnelled SSIDs, because it arrives empty. A literal % in the URL must be written %%.
7. Allow the Cloudi-Fi portal before login (walled garden)
Guests who are not logged in can only reach the hosts listed here.
Go to Setup → Public-Spot-Module → Free-Networks and add one row per host, each with Mask 255.255.255.255 and the VLANs field left empty:
*.cloudi-fi.net*.cloudi-fi.comlogin.cloudi-fi.netcdn.cloudi-fi.netguest-api-v1.cloudi-fi.net
Set Setup → Public-Spot-Module → Free-Server to login.cloudi-fi.net.
If your portal offers social or SSO login, also add the identity provider domains Cloudi-Fi lists for your portal.
Important: leave the VLANs column empty. A VLAN filter that does not match how guest traffic arrives silently disables the entry. Write wildcards as *.domain with the dot: *domain also matches unrelated domains ending in the same letters.
8. Serve the login over HTTPS
The Cloudi-Fi portal runs over HTTPS and posts the guest's credentials to the LANCOM. If the LANCOM login is plain HTTP, Chrome and Edge stop the guest with the warning "The information you're about to submit is not secure". Use HTTPS with a publicly trusted certificate.
Build one PKCS#12 file with the server certificate, private key, intermediate and root certificates. With OpenSSL 3, use legacy encryption so LCOS can read the file:
openssl pkcs12 -export -inkey gw.key -in gw.crt -certfile chain.pem \ -certpbe PBE-SHA1-3DES -keypbe PBE-SHA1-3DES -macalg sha1 -out gw.pfx
Upload it in Extras → File management → Upload Certificate or File with File Type SSL - Container as PKCS#12-File (*.pfx, *.p12). This certificate is also used by the LANCOM web interface.
Set Configuration → Public-Spot → Server → Device hostname (or Setup → Public-Spot-Module → Device-Hostname) to <gw-host>.
Go to Setup → DNS → DNS-List → Add: Host-name <gw-host>, IP address <gw-ip>. Guests use the LANCOM as DNS server (Step 1), so they resolve this name locally. A public DNS record is optional, and some resolvers drop public names that point to private addresses.
In Configuration → Public-Spot → Authentication → Login page is called via, select HTTPS.
Check that the Welcome URL (Step 6) sends gw=https://<gw-host>.
Check: in Extras → LCOS Menu Tree → Status → Certificates → Device-Certificates, ssl_cert is available with the expected expiry date. From a guest device, https://<gw-host> opens without a certificate warning.
9. Send guest traffic logs to Cloudi-Fi (optional)
For traffic-log retention, the LANCOM can send one syslog line per guest connection to the Cloudi-Fi syslog collector, together with the DHCP and Public Spot session events Cloudi-Fi uses to link each connection to a device and a user. LANCOM firewall messages do not contain the MAC address, so the DHCP and session events are required.
- Go to Setup → IP-Router → Firewall → Actions → Add: Name
ACCEPT-SYSLOG, Description%a%s(accept, and send a syslog message for the first packet of each connection).
Go to Setup → IP-Router → Firewall → Rules, open the rule that lets guests reach the internet (source: guest network, destination: ANYHOST) and set its Action to ACCEPT-SYSLOG. Only connections accepted by this rule are logged, so its service list decides what is covered. Use ANY if every guest connection must be logged, and keep a higher-priority rule that blocks guest access to your internal networks.
Go to Setup → SYSLOG → Filter and add three rules, all with Filter-Name CFI, Match-source none, Match-level none and Filter-Action Allow:
| Idx. | Filter-Regex | Keeps |
|---|---|---|
| 1 | received on <guest-network> |
Guest connections (outbound direction only) |
| 2 | session for user |
Public Spot session start and end |
| 3 | assigned to MAC |
DHCP leases |
<guest-network> is the name of the guest network from Step 1, for example GUEST. Do not include the PACKET_INFO: or SYSTEM_INFO: prefix in a pattern: LCOS matches the message text without it.
Go to Setup → SYSLOG → Server → Add: IP-Address <cloudi-fi-syslog-ip>, Port 514, Protocol UDP, RFC5424-Format No, Source System, Login, Accounting and Router, Level Alarm, Error, Warning and Info, Filter-Policy Deny, Filter-Name CFI. With policy Deny, everything the filter does not allow is dropped.
Make sure Setup → SYSLOG → Operating is Yes.
Logs leave through the WAN interface and arrive from the gateway's public IP address. Give that address to Cloudi-Fi so the collector accepts them.
10. Test
Test with a device that is not logged in yet. A device that already has a Public Spot session cannot log in again: end the session first with Status → Public-Spot → Delete-Station and the device's MAC address without separators.
- The device joins the guest SSID and gets an address from the guest pool, with DNS
<gw-ip>. - Opening
http://neverssl.comredirects to the Cloudi-Fi portal, and the URL containsmac,ip,gw_mac,gw,serialandurl. - The portal loads completely, with no time-out and no missing styles.
- After registration, no "not secure" warning appears and the guest lands on the Cloudi-Fi success page.
-
Status → Public-Spot → Station-Table shows the device as authenticated with the
CLOUDIFIprovider.
Troubleshooting
| Symptom | Likely cause | Fix |
|---|---|---|
| Access point connected to the controller but no SSID | The WLAN profile's network list is empty or names a logical network that does not exist | Step 2, item 3 |
| Access point drops from the controller as soon as an SSID is assigned | Access point firmware too old | Update the access point to the current LCOS LX release |
| Guests get no IP address | SSID VLAN mode does not match the guest network | Step 2: VLAN mode Untagged on WLC-TUNNEL-1
|
| Redirect works but the portal times out | Guests use public DNS servers, or guest traffic is not NATed | Step 1 (DNS = gateway) and Step 3 |
gw arrives as unreadable characters |
%a used on a Redirect page |
Step 6: send gw as fixed text |
| "Login Failed – Wrong user name and/or password" and no RADIUS request reaches Cloudi-Fi | RADIUS ports left at 0, or the device already has an active Public Spot session |
Step 5: set ports 1812 and 1813. Step 10: delete the station and retry. |
| RADIUS requests reach the wrong server | Several RADIUS-Servers entries | Step 5: keep a single Cloudi-Fi entry |
| Access-Accept received but every login still fails | Wrong shared secret, or the reply lacks Message-Authenticator while Auth.-Require-Msg-Auth. is Yes | Step 5: check the secret with Cloudi-Fi |
| Accounting requests are never answered | Accounting secret empty or wrong | Step 5: set Acc.-Server-Secret |
| Browser warns "The information you're about to submit is not secure" | Login served over HTTP | Step 8 |