The captive portal puts a sign-in page in front of a network. A phone or laptop that joins the network sees the page, and reaches nothing through the firewall until someone signs in. People get in:
- with their organisation account:
- Microsoft Entra ID (Microsoft 365);
- Google Workspace;
- JumpCloud;
- Active Directory or another LDAP directory;
- RADIUS (NPS, FreeRADIUS, JumpCloud RADIUS, Duo);
- any OpenID Connect provider (Okta, Keycloak, Authentik and others);
- with a voucher, a printed code with its own time, devices and data allowance;
- by accepting the terms (click-through);
- by registering with name and email;
- with a code by email: the guest enters an email address and types the six-digit code the portal sends there (new in 1.7.5);
- with a host's approval, by an emailed link.
Codes and approval links go by email through the portal's mail server (Settings › Sponsor and SMTP). Codes by text message (SMS) are not offered: the firewall has no SMS provider.
Single sign-on keeps your multi-factor and Conditional Access rules, and the firewall never sees those passwords.
The example:
| Firewall | fw-main |
| Guest network | Wi-Fi Guest, zone guest, interface enp5s0.30, 192.168.30.1/24 and fd00:30::1/64 |
| Portal address | guest.example.com (a Let's Encrypt certificate in the store) |
| Staff sign-in | Microsoft Entra ID of example.com, and the office Active Directory corp |
| Visitors | vouchers for 8 hours and 2 GB |
Before you start
- A separate guest network. Put the portal on a network of its own, such as a VLAN or a Wi-Fi network from the firewall's radio. Don't put it on your main LAN or the management network: your own devices would need to sign in too. System › Wizards › New network or Wi-Fi network creates one, with DHCP, a zone, internet access and NAT.
- DNS for guests. Guests need a resolver before they sign in. Turn on Network › DNS › DNS resolver for the guest zone, or serve the firewall's address as DNS with the DHCP add-in.
- A host name and a certificate for the portal (required for single sign-on, recommended always):
- choose a name such as
guest.example.com; - guests must resolve it to the firewall's guest address. Add a host override on the DNS resolver (
guest.example.com→ 192.168.30.1), or a DNS record in your public zone; - get a certificate for it with System › Wizards › Certificate. Let's Encrypt with DNS validation works even though the portal is not reachable from the internet, and it renews by itself.
- choose a name such as
Set up with the wizard
Open System › Wizards › Captive portal, or Identity › Guest services › Set up with the wizard.

- Where: tick the guest zone. Devices there reach nothing through the firewall until they sign in.
- Ways in: tick each way people get on, and set the session length and an optional data allowance per session.
- Vouchers carry their own time and data.
- Each account provider can set its own session length.
- Accounts: add the providers people sign in with. Each one shows the exact steps to take at the provider, with the redirect URI to copy, and a Test button. See Providers below.

- Portal address:
- enter the host name and choose its certificate;
- Check that guests reach it resolves the name and compares it with the firewall's guest address. When they differ, it says which DNS entry to add;
- More sites guests may open before signing in takes host names that guests may reach on HTTPS before they sign in, such as a terms page. The providers' own sign-in sites are allowed automatically;
- Announce the portal by DHCP and router advertisements (RFC 8910): iPhones, Android and Windows then open the sign-in page by themselves.
- Look: the title, a welcome message and the terms of use, with a preview of the page. A logo is set on Guest services › Settings.
- Review:
- the wizard lists in words what will change, and the commit preview shows every setting;
- Apply commits. Confirm within 5 minutes, or everything goes back by itself, so a mistake cannot lock you out.
Providers
Every provider has:
- Allowed groups: only members may sign in;
- Allowed email domains;
- an optional session length.
Microsoft Entra ID
- In Microsoft Entra admin center › App registrations › New registration:
- name the app Korthveil guest Wi-Fi;
- account types: this organizational directory only;
- redirect URI: Web, then the address the wizard shows, such as
https://guest.example.com:8443/sso/callback.
- Copy the Application (client) ID into the wizard. For the tenant, enter your domain and press Find: the wizard fills in the Directory (tenant) ID.
- Certificates & secrets › New client secret. Copy its Value, not the Secret ID, into Client secret. Note when it expires.
- Optional, to limit by group: Token configuration › Add groups claim › Security groups. Then list the groups' Object IDs under Allowed groups.
- Test:
- it finds the tenant's sign-in endpoints and signing keys;
- it checks that guests can reach Microsoft's sign-in pages before they sign in;
- it confirms the client ID and secret: a wrong secret is reported as refused.
Google Workspace
- In Google Cloud console › APIs & Services:
- OAuth consent screen, user type Internal;
- Credentials › Create credentials › OAuth client ID › Web application;
- under Authorized redirect URIs, add the redirect URI from the wizard.
- Copy the Client ID and Client secret.
- Enter your Workspace domain. The firewall checks the domain of every sign-in (the
hdclaim), so other Google accounts are refused.
JumpCloud
There are two ways to use JumpCloud:
- Single sign-on, with JumpCloud MFA:
- In the JumpCloud admin console, open SSO Applications › Add New Application › Custom Application. Choose Manage Single Sign-On (SSO) › Configure SSO with OIDC.
- Set the redirect URI to the wizard's, the grant type to Authorization Code, and client authentication to Client Secret Basic.
- Map the email and profile scopes. Add the group attribute groups if you limit by group.
- Bind the user groups that may sign in, activate, and copy the client ID and secret. The secret is shown once.
- JumpCloud LDAP, with user name and password:
- On Identity › Directories, add a directory of type JumpCloud:
- server
ldap.jumpcloud.com; - baseo=<your organisation ID>,dc=jumpcloud,dc=com; - a bind user with the LDAP Bind DN role. - Choose that directory in an Active Directory or LDAP provider.
- On Identity › Directories, add a directory of type JumpCloud:
- server
Active Directory or LDAP
- Set the directory up once on Identity › Directories. Find directories finds your domain controllers, and Test checks a user there.
- Choose it in the provider, and list the groups that may sign in (for example Wi-Fi Users). Nested groups work in Active Directory.
- Test with a test user name and password: it shows the user's groups.
RADIUS
- On the RADIUS server (NPS, FreeRADIUS, JumpCloud RADIUS, Duo):
- add the firewall's guest-zone address as a client (NAS);
- give it a shared secret of 16 characters or more;
- allow PAP.
- Enter the servers in order and the secret.
- Every answer must carry a Message-Authenticator: Korthveil refuses answers without one (the BlastRADIUS attack).
- A Filter-Id or Class in the answer counts as the user's group.
- Multi-factor challenges (Access-Challenge) cannot be answered on the portal: use single sign-on for multi-factor sign-in.
Other OpenID Connect providers
Create a confidential web client with the redirect URI. Then enter:
- the issuer URL (the address whose
/.well-known/openid-configurationthe provider publishes); - the client ID and secret;
- a Groups claim, if the provider names it otherwise.
What guests see

- A phone that joins the network opens the page by itself, through its connectivity check or the DHCP announcement.
- The page shows each way in that you turned on: a button per single sign-on provider, a user name and password form for directory and RADIUS accounts, and a voucher form. When you entered terms of use, each way in has an I accept the terms of use box that must be ticked.
- Sign in with Microsoft or Google goes to the provider and back. After sign-in, the page shows how long access lasts and how much of the data allowance is left.
- When the time or the allowance is used up, or you end the session, the page says why.
Day to day: Identity › Guest services
- Active guests lists everyone online:
- who they are and how they signed in (provider and groups for accounts, the code for vouchers);
- their addresses, the data used, and when access ends.
+1 h extends a session. The bin icon ends it at once, including the connections the device has open, so a running download or stream stops too.

- The Portal panel shows:
- the listening addresses;
- the redirect URI to register;
- the sign-in sites guests may reach before signing in, and whether they resolved.
- Vouchers creates printable batches with time, devices and a data allowance. The list shows how much of each voucher's allowance is used. A used-up voucher cannot be used again.
- Printed cards carry a QR code. With an HTTPS portal address (for example
https://guest.example.com), the QR code opens the sign-in page with the voucher code already filled in; otherwise it holds the code itself. With the guest network's name entered, the print also shows a join this network QR code (open or enhanced open guest networks only: a passphrase is never put in a QR code).
- Printed cards carry a QR code. With an HTTPS portal address (for example
- A guest Wi-Fi network: put its SSID (Wireless › Wi-Fi networks) or the firewall's own access point in the guest zone and VLAN, and choose that zone here. To switch the guest network off at night, give the SSID an off schedule (see the guide Wi-Fi channels, schedules and "why can't it connect").
- Settings holds everything the wizard set, and more:
- the logo;
- sponsor approval by email;
- outside DNS servers;
- retention;
- pasted certificates.
How it works
- Before sign-in:
- web requests (port 80) are sent to the portal, and everything else through the firewall is rejected;
- DNS to the firewall's resolver is allowed;
- HTTPS is allowed to the providers' sign-in sites and the sites you listed. The firewall resolves those names every minute, with the same resolver guests use, and keeps the addresses for a day.
- After sign-in, the device's IPv4 and IPv6 addresses are allowed until the session ends.
- Data allowances are counted per connection, in both directions, every 30 seconds. When a session reaches its allowance, it ends.
- When a session ends (time, data, logout, or you), its addresses lose access and its open connections are ended. New connections go to the portal again.
- Sessions, vouchers and usage are kept in the firewall's database. They survive restarts, and a failover pair takes them over.
Troubleshooting
| Symptom | Check |
|---|---|
| The phone does not open the page | DNS for guests (Before you start, step 2); with the announcement on, the guest network needs a DHCP network on the DHCP page |
| "This site can't be reached" after Sign in with Microsoft | The provider's sign-in host is not allowed: run Test on the provider; it names any host to add to More sites guests may open |
| The provider says the redirect URI does not match | Register exactly the redirect URI shown on Guest services › Active guests (scheme, host name, and port) |
| "Sign-in could not be completed" | The client secret is wrong or expired: run Test, then create a new secret at the provider |
| "Your account is not allowed on this network" | The user is not in the allowed groups or domains; for Entra ID, the groups claim is missing (Token configuration) |
| The email code does not arrive | Check the spam folder; Settings › SMTP must use TLS and the sender must be allowed by your mail server. A guest can ask for at most 3 codes in 15 minutes; a code is valid for 10 minutes and 5 tries |
| RADIUS: "Sign-in is not available right now" | The server does not answer, or answers without Message-Authenticator; see its log for the firewall's requests |