802.1X corporate network access
Instead of one shared Wi-Fi password, every employee connects to the wired or wireless corporate network with their own user name and password. The switch or access point hands the check to Captivo's RADIUS server, which can also put each group on its own VLAN.
What the module does
- Per-user sign-in with EAP-PEAP-MSCHAPv2, the method Windows, macOS, iOS and Android support out of the box. Panel users can also use EAP-TTLS with PAP inside.
- The RADIUS server speaks TLS 1.2 only. A client that offers nothing newer than TLS 1.0 or 1.1 cannot connect.
- A VLAN per group, assigned to the port or SSID at sign-in.
- MAC Authentication Bypass for printers, cameras and other devices that cannot do 802.1X.
- Optionally, sign-in with Active Directory or LDAP accounts, without creating users in the panel.
- Account lockout and a log of every attempt with its reason.
1. Enable the module
Open Settings → 802.1X → Settings and switch on Enable 802.1X module. Users, Groups, Switches and Logs appear in the menu. Switching the module off hides those pages but deletes nothing.
2. Create groups and users
- Groups: a name and an optional VLAN ID from 1 to 4094. A member of a group with a VLAN is placed on it through the standard Tunnel-Type, Tunnel-Medium-Type and Tunnel-Private-Group-Id attributes, provided the switch has dynamic VLAN assignment turned on. Without a VLAN the port keeps its own. Deleting a group leaves its users in place, without a group. A group also has an optional description (up to 200 characters), and the list shows how many users each one has.
- Users: a user name (up to 64 characters), a password (8 to 128 characters) and optionally a group. The password is stored only as the NT hash MSCHAPv2 needs, so it cannot be shown later; it can only be set again. The list shows Active, Inactive or Locked and the last sign-in; the row menu changes the group, sets a password, unlocks, enables or disables, and deletes. Names are unique and are compared exactly as typed.
- Five wrong passwords in a row lock the account for 15 minutes. Unlock opens it early, and setting a new password unlocks it too. A disabled user is refused even with the right password.
3. Register the switches and access points
On Switches, add a Switch name and its IP / CIDR: one address, or a range such as 10.0.5.0/24 for a group of switches sharing one secret. The panel generates the Shared secret, and CLI setup commands under each switch give a ready block for Cisco IOS, Aruba (ArubaOS-CX), UniFi and MikroTik with the RADIUS server address and the secret filled in. The server address in those blocks is the host of Settings → System → Server Address without its port, or the DOT1X_RADIUS_IP setting of the server when it is set. If a block still shows <RADIUS-SUNUCU-IP>, neither is known yet; fill in the server address, and if the server has several interfaces check that it is the one your switches can reach. Switch names take up to 32 characters, each IP / CIDR can be registered once, and the secret is 24 random bytes that you cannot choose: Show, Copy secret and Regenerate secret are on the row.
radius server CAPTIVO
address ipv4 <RADIUS-SERVER-IP> auth-port 1812 acct-port 1813
key <SHARED-SECRET>
aaa group server radius CAPTIVO-GRP
server name CAPTIVO
aaa authentication dot1x default group CAPTIVO-GRP
aaa authorization network default group CAPTIVO-GRP
dot1x system-auth-control
interface range Gi1/0/1-48
authentication port-control auto
dot1x pae authenticatorA new switch works from its first request; no restart is needed. Deleting one, or Regenerate secret, takes effect within a minute, during which the old secret is still accepted. The switch must reach the server on UDP 1812 and 1813.
4. Make clients trust the server certificate
PEAP runs inside TLS, and the RADIUS server presents a certificate signed by a CA it generated on first start; the pair is kept on a volume and survives restarts and updates. Download CA Certificate on the Switches page gives captivo-dot1x-ca.pem. The CA is called Captivo 802.1X CA, the server certificate is issued to the name captivo-radius, and both are valid for ten years. If a client profile asks which server name to expect, enter captivo-radius. If the download answers that the CA has not been generated yet, the RADIUS service has not started once. Install the CA on clients as a trusted root, by hand or through Group Policy or your MDM:
certutil -addstore -f "Root" captivo-dot1x-ca.pemsudo security add-trusted-cert -d -r trustRoot \
-k /Library/Keychains/System.keychain captivo-dot1x-ca.pemOn iOS, open the file, install the profile under Settings → General → VPN & Device Management, then turn on full trust for it under About → Certificate Trust Settings; without that last step the certificate looks installed but EAP does not trust it. On Android, install it under the security settings as a CA certificate. Turning off server certificate validation in the client profile also works, but then a client cannot tell a fake RADIUS server from the real one; keep it for a quick test.
Devices that cannot do 802.1X (MAB)
Add the device's MAC address to the MAC whitelist (active and not expired), and turn on MAC Authentication Bypass on that port or SSID. The switch then sends the MAC address as the user name and Captivo accepts it if the whitelist has it, in any separator format. On Cisco IOS:
interface range Gi1/0/1-48
authentication order dot1x mab
authentication priority dot1x mab
mabSigning in with directory accounts (EAP-TTLS)
Set up directory sign-in first. Then switch on Directory (AD/LDAP) sign-in under 802.1X Settings, and optionally give a Directory users VLAN ID: one VLAN for everyone who signs in this way. Employees then connect with their domain account and nobody has to create them in the panel.
- The client profile must use EAP-TTLS with PAP as the inner (phase 2) method. Windows often offers this only through Group Policy or Intune; Apple devices need a configuration profile.
- With TTLS-PAP the password travels inside the TLS tunnel in clear, so server certificate validation is mandatory here: a client that skips it hands the domain password to any fake access point.
- A user name that exists in the panel is always checked there first; a locked or disabled panel user is not passed on to the directory. Panel users keep connecting as before, with PEAP or with TTLS-PAP. A directory account cannot use PEAP: the directory is consulted only for TTLS-PAP, so PEAP with a domain account is logged as an unknown user.
- The directory check goes through the Captivo web service. If that service is down, directory sign-ins are refused rather than let through; panel users are not affected. Captivo does not count wrong directory passwords, but Active Directory's own lockout policy does.
Logs and troubleshooting
Logs lists every attempt with time, user name, result, switch, EAP method and VLAN, and can be filtered by user name (contains, any case) and by result. The EAP method column reads peap-mschapv2, ttls_local (a panel user over TTLS), ttls_directory or mab. The page shows the latest 200 attempts of your organisation (at most 500), newest first, with no paging or export, and attempts older than 365 days are deleted. MAC Authentication Bypass attempts appear here too, including those from the captive portal when MAC authentication is on there.
| Result | What to do |
|---|---|
| Reject — wrong password | Set a new password on Users; that also clears the lock. |
| Reject — account locked | Wait 15 minutes or press Unlock. |
| Reject — user disabled | Enable the user again. |
| Reject — unknown user | Check the spelling on the client and that the user exists in the panel. |
| reject_directory | The directory refused or could not be reached (wrong domain password, user outside the required group, or the directory unreachable). It is not in the Result filter and shows as this raw code; test the account from the Directory page. |
| MAC bypass — reject | No active, unexpired MAC whitelist entry for that address. |
No entry at all for a switch usually means its requests never reached the server or were ignored: the switch is not registered, it sends from a different address than the one entered, the secret differs, or a firewall blocks UDP 1812/1813. A client reporting that the server identity cannot be verified does not trust the CA yet (step 4).
For a step-by-step diagnosis see cannot connect with 802.1X.