file
Stores captured RADIUS messages in files. The file type is PcapNG.
Configuration
directory(required): Specifies where capture files should be stored.filename(optional): Specifies the exact filename for the capture file. When specified, all captured packets are written to this single file. When omitted, a separate file is automatically created for each authentication context, named<context_id>.pcapngwherecontext_idis the hexadecimal authentication context ID.
Example
captures {
# Capture to separate files per authentication context
capture "CAPTURE_TO_DIRECTORY" {
file {
directory "/var/lib/radiator/captures";
}
}
# Capture all packets to a single file
capture "CAPTURE_TO_FILE" {
file {
directory "/var/lib/radiator/captures";
filename "radiator-server.pcapng";
}
}
}
When troubleshooting authentication issues, you can correlate authentication log entries with their corresponding capture files using the Context-Id:
% sudo tail -1 radiator-server-authentication.log | jq -r '.["Context-Id"]'
abc123def456789a
% sudo ls -l /var/lib/radiator/captures/abc123def456789a.pcapng
-rw-r----- 1 radiator radiator 41256 Jun 5 09:23 /var/lib/radiator/captures/abc123def456789a.pcapng