authcha learn

Learn / Guest and portals

Captive portals: what Authcha does and does not do

Module 2 of 5 · 20 minutes

By the end you can

  • Say which jobs belong to the gateway and which belong to Authcha
  • List what Authcha will never do on a gateway
  • Pick the right integration path for a given gateway
  • Explain what "emulated" means in the compatibility table

The two halves

A captive portal is a gateway (a pfSense firewall, a wireless controller, a hotspot router) that holds a new client on a restricted network, shows a login page, and lets the client through once it is authenticated.

The most important sentence in this track: the gateway intercepts and admits. Authcha is the RADIUS server and policy brain it asks. For pfSense and MikroTik hotspots, Authcha also writes the login page and hosts the helper pages for vouchers, verification codes and status.

What Authcha does

JobHow
Decides who may log inThe gateway sends credentials to Authcha as a RADIUS Access-Request (PAP). Authcha accepts or rejects
Tells the gateway what the person getsReply attributes: VLAN, session limits and the web policy name
Keeps the session recordThe gateway's RADIUS accounting is stored. Sessions shows who is online
Ends sessionsAn RFC 5176 Disconnect-Request to a gateway that accepts it; the router's REST API for a MikroTik with REST settings; a queue the agent drains for pfSense CE
Issues guest accessVouchers and the self-service guest and employee portals
Writes the login page (pfSense, MikroTik)Portal gateways generates the branded, translated, accessible page you upload
Hosts helper pagesVoucher login, the verification-code stage for OTP user types, status and sign-out, and an RFC 8908 Captive Portal API address

What Authcha does not do

  • It does not intercept or redirect a client's traffic. The gateway must capture the first web request and send the browser to a login page.
  • It does not admit a client on the gateway by itself. The gateway authenticates its own clients against RADIUS. No Authcha page tells the gateway "let this address through", and Authcha holds no gateway credential, except an optional REST user you give for a MikroTik.
  • It does not reach into a gateway except by RADIUS, an optional reachability test of the portal address, and that MikroTik REST call.
  • It does not filter web traffic. That is web policy, covered in the Integrations track.

Choose the path

GatewayHow it connects
pfSense CERADIUS PAP; Authcha generates the page pfSense serves. Vouchers use MAC login; codes use a single-use token. The next module walks through it
MikroTik RouterOS hotspotThe same, with the hotspot's own page files generated by Authcha; Disconnect on UDP 3799 or the REST API
Any NAS that redirects and accepts CoA (Cisco, Aruba, Ruckus, HPE, Juniper, Extreme, Fortinet, generic)Central Web Auth: Authcha hosts the sign-in page and tells the NAS to let the client in by CoA. Nothing is uploaded to the NAS
Wi-Fi controllers (UniFi, Meraki, Aruba, Cisco WLC, FortiGate, and modules for Ruckus, Omada, Mist)The controller redirects to Authcha as an external portal, and its API admits the client
Open-source hotspots (CoovaChilli, nodogsplash, openNDS and others)Authcha's landing page and the gateway's own admit mechanism
WiFiDogNot supported

Be honest about test status

The guides say plainly how far each integration was tested. Emulated means the flows were exercised against a mock written from the gateway's documented protocol, not against real firmware. Today the pfSense portal was verified in a lab on pfSense 2.9.0 for login, accounting, the agent's sign-out and the generated pages, and the others are emulated or mock-tested. Every guide has a "not verified" list. Read it before you promise a customer a specific gateway, and plan a proof of concept on their real equipment.

LabHands-on

  1. Open Portal Gateways on the demo (viewer login demo-viewer, password Authcha-View-2026). See the gateways, their zones and settings.
  2. Open the Captive portals guide and find the compatibility matrix. For three gateways of your choice, write down the status.
  3. Open the Captive portals on Wi-Fi controllers guide and read its "not verified" section.
  4. For a gateway at your own site, decide which row of the table applies and what you would need to test.

Check yourselfQuiz

1Who admits a client onto the network in a captive portal?
2Does Authcha filter web traffic?
3For pfSense, where does the password go?
4What does "emulated" mean in the compatibility table?
5Which path fits a Cisco switch that can redirect and accept CoA?

Cheat sheetKeep this

  • Gateway intercepts and admits. Authcha decides and tells.
  • Authcha does not intercept traffic, admit clients on a gateway itself, or filter web traffic.
  • Paths: pfSense (page + PAP), MikroTik (hotspot files), CWA (any NAS with redirect + CoA), controllers (external portal + API), open-source hotspots.
  • "Emulated" or "mock-tested" is not real-gear tested. Plan a proof of concept.
  • Read more: Captive portals, Central Web Auth.