Create a RADIUS provider
A RADIUS client, such as a VPN gateway or network access server, sends authentication requests to an authentik RADIUS outpost. The outpost runs the provider's authentication flow and checks the user's access to the associated application.
Creating an authentik RADIUS provider requires the following steps:
- Choose an authentication flow
- Create a RADIUS application and provider
- Deploy the provider to a RADIUS outpost
- Configure the RADIUS client
- Verify the configuration
Prerequisites
- An authentik administrator account and a test user with a known password.
- A RADIUS client that supports PAP or EAP-TLS and can reach the outpost on UDP port
1812. See Protocol support. - The source IP addresses that the outpost will see for your RADIUS clients, including any address translation.
- A host for the RADIUS outpost with access to the authentik API. The embedded outpost does not serve RADIUS.
- For MFA, an already enrolled TOTP, static, or Duo authenticator for the test user.
Only authentication requests are supported; do not configure RADIUS accounting against the outpost.
Choose an authentication flow
The RADIUS provider runs an authentication flow in the background. Choose a flow that uses the supported stages. Browser-only interactions and authenticator enrollment cannot be completed through a RADIUS password prompt.
For password-based authentication with PAP, you can use an existing flow if its stages and MFA requirements are compatible with RADIUS. If your RADIUS authentication requirements differ from those for web logins, create a separate flow with Designation set to Authentication, and bind stages to it.
A typical PAP authentication flow runs these stages in order:
- Identification stage: identifies the user. Configure it to accept usernames.
- Password stage: validates the user's password. Select a backend that can validate your users' passwords.
- Authenticator validation stage: validates a supported authenticator when MFA is required. To require MFA for every user, set Not configured action to Deny the user access.
- User login stage: completes authentication and attaches the authenticated user to the session used for the application access check.
If the flow requires MFA, ensure that users have a supported authenticator configured. Users must enroll through a browser flow first. For passwords with an appended TOTP or static code, enable Code-based MFA Support on the provider. See Code-based MFA support.
For certificate-based authentication, follow the EAP-TLS configuration instructions. EAP-TLS requires authentik Enterprise.
Create a RADIUS application and provider
You can create an application and provider together from the Admin interface:
- Log in to authentik as an administrator and open the authentik Admin interface.
- Navigate to Applications > Applications and click New Application.
- Provide an Application Name and Slug, configure any other application details, and click Next.
- Select Radius Provider as the provider type and click Next.
- On the Configure Radius Provider page, configure the following settings:
- Provide a Provider Name.
- Set Authentication Flow to the flow selected in the previous section.
- Enable Code-based MFA Support for password-plus-code authentication, or disable it for a password-only flow. Review Code-based MFA support before choosing, because the setting affects passwords that contain semicolons.
- Under Protocol settings, configure the following settings:
- Shared secret: keep the generated value or enter a strong secret supported by your client. Store it securely and configure the identical value on every RADIUS client that uses this provider.
- Client Networks: replace the unrestricted default,
0.0.0.0/0, ::/0, with the comma-separated CIDRs that contain your RADIUS clients' source addresses. For example,192.0.2.10/32allows a client at that IPv4 address. Use the source address that the outpost sees, which might differ from the client's address if requests pass through NAT. These are the devices sending RADIUS requests, not necessarily the end-user devices being authenticated. - Certificate: leave this unset for PAP. For EAP-TLS, select the server certificate. Only certificates with a supported key algorithm can be selected.
- Property mappings: optionally, select property mappings for any attributes that your client requires.
- Under Advanced flow settings, keep the default Invalidation Flow unless your deployment requires a different logout flow.
- Click Next. Configure any policy, user, or group bindings that should control access to the application, then click Next again.
- Review the application and provider details and click Create Application.
Users must have access to the application for RADIUS authentication to succeed. Successful password authentication alone does not bypass the application access check. If the application has bindings, ensure that an applicable binding grants users access.
You can also create a provider from Applications > Providers by clicking New Provider and selecting Radius Provider. Associate the provider with an application before adding it to an outpost. An unassigned provider is not available to the RADIUS outpost.
When assigning multiple providers to one outpost, use distinct shared secrets and non-overlapping client networks. The outpost uses the request's source address to select a shared secret, then uses that secret to select the provider. Reusing secrets or overlapping networks can cause the outpost to select the wrong provider. See Client networks and provider selection for details and an example.
Deploy the provider to a RADIUS outpost
The RADIUS provider requires a RADIUS outpost.
- In the Admin interface, navigate to Applications > Outposts and click New Outpost.
- Configure the following settings:
- Provide an Outpost Name, such as
radius-outpost. - Set Type to Radius.
- Select an Integration for authentik to manage the deployment, or leave it empty to deploy the outpost manually.
- Under Applications, select the RADIUS application created in the previous section.
- Under Advanced settings, configure any required outpost settings.
- Provide an Outpost Name, such as
- Click Create Outpost.
- If you did not select an integration, deploy the outpost using the RADIUS Docker Compose example. For Kubernetes, adapt the manual deployment template: use the
ghcr.io/goauthentik/radiusimage with a tag that matches your authentik version, configure UDP port1812on the container and Service, and replace the proxy-specific HTTP Ingress with a way for RADIUS clients to reach the UDP Service. - Check the outpost's health in Applications > Outposts and inspect its logs for startup or configuration errors before testing authentication.
Ensure that the RADIUS client can reach the outpost's authentication port, normally UDP port 1812, and that the outpost can reach authentik. If you customize the exposed port, use that port in the client configuration. For Kubernetes, account for any source address translation between the clients and the outpost.
The outpost's AUTHENTIK_TOKEN authenticates the outpost to the authentik API. It is separate from the provider's Shared secret, which authenticates RADIUS traffic between clients and the outpost.
Configure the RADIUS client
Use your device's RADIUS authentication settings to enter these values:
| Setting | Value |
|---|---|
| RADIUS server | The reachable IP address or hostname of the RADIUS outpost |
| Authentication port and transport | UDP port 1812, or the port that you exposed |
| Shared secret | The exact secret from the provider that matches this client's source IP |
| Authentication method | PAP for password-based authentication, or EAP-TLS for certificate-based authentication |
| Username | For PAP, the authentik username accepted by the identification stage |
| Password | For PAP, the user's password, with ;<code> appended when using code-based MFA |
If the device lets you select its source interface or address for RADIUS traffic, ensure that the resulting source IP is in Client Networks. Do not use authentik's web URL as the RADIUS endpoint unless that host also exposes the RADIUS outpost's UDP port.
For EAP-TLS, also configure the end-user devices to use their client certificates and private keys and to validate the RADIUS server certificate. See EAP-TLS.
Configuration verification
-
Send an authentication request from a configured RADIUS client using an account that is allowed to access the application. Test from the actual RADIUS device first, using its built-in authentication test if available. For a command-line PAP test, install the FreeRADIUS
radtestutility on a host whose source IP is in the intended client network and run:radtest -t pap '<username>' '<password>' '<outpost_address>:1812' 0 '<shared_secret>'With code-based MFA enabled and required by the flow, replace
<password>with<password>;<current_code>. The quotes keep the shell from interpreting the semicolon. Use a test account and a private shell because command arguments and shell history can expose these values. A test from your laptop verifies the laptop's source network, not the VPN gateway's. -
Confirm that authentication succeeds and that the final RADIUS response is an
Access-Accept. EAP-TLS uses intermediate challenge exchanges before the final response. -
If you configured RADIUS property mappings, inspect the decoded
Access-Acceptand verify that the expected attributes and values are present. Successful authentication alone does not confirm that a mapping worked. If requests are rejected only when a mapping is assigned, see Troubleshoot a failed mapping. -
Separately, test a request that fails authentication or application authorization and confirm that it produces an
Access-Reject. For example, repeat the test with an incorrect password. For a flow requiring code-based MFA, also test a missing or incorrect code. Response property mappings do not run for requests denied at these stages. -
If several providers share the outpost, repeat the test from each client network with that provider's shared secret and an allowed test user. Temporarily set the outpost's log level to
debugto seeMatched CIDRwith the sourceip, selectedcidr, and application slug ininstance. Restore your usual log level afterwards. -
Confirm that no provider on the outpost retains
0.0.0.0/0or::/0, then send a request from a reachable host outside all configured networks. Expect no response and a timeout, withNo matching prefixes foundin the outpost logs. Changing a RADIUS attribute such asNAS-IP-Addressdoes not simulate a different packet source.
If authentication fails, check the RADIUS outpost logs and Events > Logs in the Admin interface:
- No response or a timeout without a matching outpost log: check routing, firewall rules, and the UDP port exposure. Not every invalid request receives an
Access-Reject. No matching prefixes found: compare the logged source IP with Client Networks, including any NAT.Invalid message authenticator: the outpost drops the request without a response, so the client reports a timeout. Verify that the client uses the selected provider's shared secret.Access-Reject: check the username, password parsing, flow stages, enrolled MFA device, and application bindings. Also verify the shared secret. A client that does not send aMessage-Authenticatorattribute is rejected, not dropped, when its secret is wrong, because the password cannot be decrypted correctly.- Missing response attributes: see Troubleshoot a failed mapping.