RADIUS login (radius)
Sends an Access-Request to a RADIUS server with the account and password of a radius credential, and reports how long the server took and what it answered: accept, reject or challenge. The answer that counts as healthy is configurable. That makes two checks of one sensor: that a good login is accepted, and, with expected set to reject and a deliberately wrong password in the credential, that the server still says no to a bad one.
What it looks like

The sensor's page after a few polls, logging in with PAP to a RADIUS server. In the dark theme: the sensor's page. The form for adding it, with its parameters filled in: light, dark.
Channels
| Key | Name | Unit | Default limits |
|---|---|---|---|
response_ms | Response time | ms | warning above 1000, error above 5000 |
result | Answer | none | none (0 is Access-Reject, 1 is Access-Accept, 2 is Access-Challenge) |
The sensor's own verdict compares the answer with expected: the same answer is healthy, any other is Down and the message says what was expected and, for the two usual mistakes, what to check. A timeout is a collection failure, not a reading: a server cannot be told apart from one that drops the request, so there is no "timeout" value of result.
Parameters
| Parameter | Default | Meaning |
|---|---|---|
port | 1812 | UDP port of the authentication service. |
method | pap | pap hides the password with the shared secret as RFC 2865 describes. chap sends a challenge and a digest of the password, so the password is not sent in any form; the server has to hold it in the clear to check it. |
expected | accept | The answer that is healthy: accept, reject or challenge. Challenge is what a server answers when it wants more from the user, such as a one-time code. |
nas_identifier | probeward | The NAS-Identifier to present. Some servers choose a policy by it. |
Suggested interval: 60 seconds. Credential: RADIUS.
Every request also carries a Message-Authenticator (RFC 3579). Servers that have closed the "Blast-RADIUS" hole require it, and the others ignore it. The answer is believed only if its Response Authenticator proves that the server knows the shared secret, so a forged or misdirected reply is never taken for an accept.
The credential
A radius credential holds three things: the shared secret between the probe and the server, the user name to log in as, and its password. It is set the way the other credentials are, as the RADIUS credential of the sensor, its device or a group above it (see credentials), and it never appears in parameters, messages or logs. For a check that a login is refused, create a second credential with a wrong password for the same user and put it on a sensor with expected set to reject. Take care that the server does not lock the account after a number of failures; use an account made for the purpose, or a user name that does not exist.
On the target
The RADIUS server must have the probe's address as a client, with the shared secret you put in the credential. Without that, most servers ignore the request without a word, and the poll ends in a timeout. The sensor only authenticates; it does not send accounting.
Failures
| Message | Meaning |
|---|---|
<server> did not answer within N ms: the server is down, it does not accept requests from this probe's address, or it ignored a request signed with a different shared secret (kind timeout) | The three causes cannot be told apart from outside. Check that the probe is a client of the server and that the secret matches, then that the server runs. |
the RADIUS answer failed authentication: the server signed it with a different shared secret ... (kind protocol) | A server answered, but not under this secret. |
the RADIUS answer ... (kind protocol) | The answer was damaged, belonged to another request, or was not an accept, reject or challenge. |
Access-Reject where Access-Accept was expected | A successful poll that is Down. The user name or password is wrong, or the server's policy refuses the account. |
Access-Accept where Access-Reject was expected | A successful poll that is Down. The login that should be refused was let in. |
the RADIUS sensor needs a radius credential (kind config) | No credential of kind radius is set for the sensor. |
Verification
Run against FreeRADIUS in a container on a test network: an account accepted by PAP and by CHAP, the same account refused with a wrong password (healthy when a reject is expected), and a wrong shared secret, which ends in a timeout as the server ignores it. The packets are built and read by hand; the hiding of the password, both authenticators and the CHAP digest are checked against the formulas of the RFCs. The retransmission after a lost datagram, a reply signed with another secret and a damaged Message-Authenticator are tested against a server the tests start themselves.
The live tests read their target from the environment and say so and return when it is not set:
| Variable | Meaning |
|---|---|
PROBEWARD_TEST_RADIUS_HOST | The server's address. |
PROBEWARD_TEST_RADIUS_SECRET | The shared secret. |
PROBEWARD_TEST_RADIUS_USER, PROBEWARD_TEST_RADIUS_PASSWORD | An account the server accepts, and its password. |
cargo test -p probeward-sensors --test live_protocols radius -- --nocapture