Home › Setup guides › OpenWrt / CoovaChilli Hotspot RADIUS Setup
OpenWrt / CoovaChilli Hotspot RADIUS Setup
To run WiFiNexa on OpenWrt, add the router as OpenWrt / CoovaChilli in Hotspots and set a UAM secret. Then copy the server addresses, secret, portal URL, UAM secret and NAS ID from the setup guide into /etc/chilli/config and restart chilli. Guests then log in on your branded WiFiNexa page through CoovaChilli.
- Hotspots → Add router → Brand OpenWrt / CoovaChilli; set a UAM secret.
- In
/etc/chilli/config: HS_RADIUS / HS_RADIUS2, HS_RADSECRET, HS_UAMSERVER, HS_UAMFORMAT (portal URL), HS_UAMSECRET (same value), HS_NASID and HS_UAMALLOW - exact values are in the setup guide. - Restart chilli. WiFiNexa detects uamip / uamport / challenge and logs the guest in through Chilli.
When to use OpenWrt / CoovaChilli
CoovaChilli turns an OpenWrt router (or any Linux box) into a full hotspot gateway with a captive portal and RADIUS. It is a good choice for low-cost routers, remote sites and labs.
Step by step
- Install CoovaChilli on the router (
opkg install coova-chillion OpenWrt) and pick the LAN interface guests will use. - In WiFiNexa: Hotspots → Add router → OpenWrt / CoovaChilli and choose a UAM secret.
- Edit
/etc/chilli/config(or the LuCI page) with the values from the setup guide:
HS_RADIUS=<primary RADIUS IP>
HS_RADIUS2=<secondary RADIUS IP>
HS_RADSECRET=<shared secret>
HS_UAMSERVER=<WiFiNexa host>
HS_UAMFORMAT=<portal URL>
HS_UAMSECRET=<the same UAM secret>
HS_NASID=<router identity>
HS_UAMALLOW=<walled garden hosts>
- Restart chilli and connect a phone to the guest network.
How the login works
Chilli redirects the guest with uamip, uamport and a challenge. WiFiNexa computes the response with your UAM secret, sends the guest back through Chilli's logon address, and Chilli checks the login with the WiFiNexa RADIUS server.
Common problems
- Login refused right after choosing a method - the UAM secret in WiFiNexa and in
HS_UAMSECRETare different. - Page does not load before login - the WiFiNexa host is missing from
HS_UAMALLOW.
Questions
Can I use WiFiNexa with OpenWrt?
Yes, through CoovaChilli: set WiFiNexa as the RADIUS server and portal URL in /etc/chilli/config and use the same UAM secret on both sides.
What is the UAM secret for?
Chilli and WiFiNexa use it to protect the login exchange. It must be identical in WiFiNexa and in HS_UAMSECRET.
Do I need a public IP on the OpenWrt router?
No for logins: Chilli starts every request. A public IP is only needed if you want WiFiNexa to disconnect sessions remotely.
Last updated 2026-12-02