RadSec: RADIUS over TLS
By the end you can
- Say what RadSec adds over UDP RADIUS and what it keeps the same
- Issue a RadSec certificate bound to the right addresses
- Explain what happens when a RadSec certificate is revoked
- Decide when CoA over RadSec is safe to turn on
What RadSec adds
Classic RADIUS sends UDP packets protected by a shared secret. Anyone who learns the secret can forge requests, and packets crossing networks you do not control can be watched. RadSec sends the same RADIUS over a TLS connection. The device proves who it is with a certificate Authcha issued, and Authcha proves who it is with its server certificate. Nobody on the path can read or change the traffic, and there is no shared secret to leak.
Use it for devices that support it, and especially for traffic that crosses networks you do not control. UDP 1812 and 1813 keep working alongside it, so you can move devices one at a time. RadSec is part of the NAC edition.
How it works
- Connection. The device opens a TCP connection to port 2083 and both sides present certificates (mutual TLS). TLS 1.2 or newer is required, TLS 1.3 clients negotiate a post-quantum hybrid key exchange where they support it, and a device without a certificate is refused during the handshake.
- A separate CA. RadSec certificates come from their own CA, created the first time you issue one. A user or device certificate can never authenticate a network device over RadSec, and a RadSec certificate can never be used for EAP-TLS.
- Admission. A connection is accepted only if the certificate chains to the RadSec CA, Authcha issued it, it is not revoked or expired, and the connection comes from an address the certificate is bound to.
- Address binding. Every RadSec certificate is bound to the addresses, networks or host names the device connects from. A stolen certificate and key are useless from anywhere else. Networks wider than /16 are refused, and only IPv4 is supported.
- Live revocation. Authcha checks the database for every request on a RadSec connection, not only when it opens.
- The shared secret is the fixed word
radsec, as RFC 6614 requires. It adds no security; TLS does the work. - Policy is unchanged. 802.1X, MAB, access rules and posture work exactly as over UDP.
Issue a certificate
Network Access → Certificates → RadSec (network devices) → Issue RadSec certificate.
- Enter the device name.
- Enter the IP addresses or networks the device connects from, and optionally host names. At least one is required. With NAT in between, enter the translated address, the one Authcha sees.
- Choose validity (default 2 years, maximum 5) and where the key comes from: Generate here (a
.p12and the key as PEM, once) or Paste a CSR. - Download the certificate, the key and the server CA certificate.
The first certificate you issue also starts the RadSec listener, which restarts the RADIUS service once, for a few seconds.
Configure the device
The RadSec page shows everything and includes snippets for Cisco IOS-XE, Aruba AOS-CX, Juniper Junos, Fortinet FortiOS and radsecproxy.
| Setting | Value |
|---|---|
| Server | The server name on the page, port 2083 |
| Validate the server against | The server CA certificate you downloaded |
| Present | The certificate and key you issued |
| TLS version | 1.2 or newer |
| Shared secret | radsec, where one is still asked for |
The device must connect to the server name (or an address the server certificate covers) or it refuses Authcha's certificate. Treat the snippets as a starting point: keywords differ by platform and release, and not every model supports RadSec. For a device that does not, run radsecproxy next to it. The device speaks UDP to the proxy, and the proxy speaks RadSec to Authcha.
Revocation and renewal
Revoke stops the device. When it takes effect:
| Situation | Effect |
|---|---|
| The device opens a new connection | Its first request is refused |
| It already has a connection open | Its next request is refused |
| The connection itself | Stays open but useless, until closed: at most 1 hour after it opened, or after 5 minutes of silence |
A device that also has a UDP shared secret is not affected by revoking its RadSec certificate. Remove that client too if you want it gone. Edit sources changes allowed addresses without a new certificate. Renew by issuing a new certificate, installing it, then revoking the old one. Authcha renews its own server certificate automatically, and devices that trust the server CA keep working.
CoA and Disconnect over RadSec
By default a Disconnect goes over UDP 3799 with a per-device secret. For a device with a RadSec certificate you can send it over TLS instead. Because RFC 6614 keeps the roles of the two ends, Authcha opens a second, outbound TLS connection to the device's RadSec port to send it.
On the RadSec page, use the device's lightning-bolt action, tick Send CoA and Disconnect over RadSec, set the port and save. Send test sends a CoA-Request for a session that does not exist. A CoA-NAK ("session not found") proves the channel works and changes nothing.
Firewall and turning it off
Open 2083/tcp from your devices to Authcha, and keep UDP 1812/1813 for devices still on UDP. If you enable CoA over RadSec, also allow TCP from Authcha to the device's RadSec port. To turn RadSec off, set RADSEC_ENABLED=false in .env and restart freeradius. UDP is unaffected either way.
LabHands-on
Needs your own install and a device or radsecproxy.
- Open the RadSec page and read the status. It says Not started until you issue a certificate.
- Issue a RadSec certificate for a lab device, bound to its address.
- Configure radsecproxy (or the device) with the CA, certificate and server name. Send a login through it and find it in Live Auth.
- Edit the certificate's sources to a wrong address and confirm the connection is refused. Put it back.
- Revoke the certificate and watch the next request get refused.
- Open Certificates on the demo to see the list view, noting RadSec is disabled there.
Check yourselfQuiz
Cheat sheetKeep this
- RadSec = RADIUS over TLS, TCP 2083, mutual certificates, secret
radsec. - Own CA, separate from EAP-TLS. Certificates are address-bound (IPv4, nothing wider than /16).
- Revocation checked on every request. Open connections end within 1 h or 5 min idle.
- Use radsecproxy for devices without RadSec.
- CoA over RadSec: only for devices that act as a RadSec server. Leave off otherwise.
- Off:
RADSEC_ENABLED=false. UDP keeps working. - Read more: RadSec.