FreeRADIUS clients.conf Generator
Generate clients.conf blocks for one NAS or a whole subnet, with a strong shared secret, sensible limits and matching NAS-side configuration.
Result
About FreeRADIUS clients.conf Generator
FreeRADIUS silently ignores packets from any source not listed in clients.conf - the most common cause of "the server is not responding". This generates a correct client block, a strong per-NAS secret, and the matching configuration for the NAS itself.
Per-NAS secrets
Use a unique secret per NAS. The shared secret protects the Response Authenticator and the User-Password obfuscation; one reused secret across an estate means one compromised device unlocks every RADIUS conversation. Rotate on device replacement, and store secrets somewhere that is not the configuration backup.
Subnet clients
A CIDR client entry lets you onboard a whole access layer at once, but it inherently means a shared secret. It is a reasonable trade for hundreds of switches doing 802.1X; it is a poor trade for three BNGs carrying subscriber sessions.
Common use cases
- Onboarding a new BNG or access switch onto an existing FreeRADIUS server.
- Generating a strong secret without reaching for a password site.
- Producing matching NAS and server configuration in one step for a change request.
Edge cases and gotchas
- Never commit clients.conf to a public repository - it contains live credentials.
- CoA and Disconnect messages arrive on UDP 3799 and need the NAS to accept them (RouterOS: /radius incoming).
- require_message_authenticator should be set to yes once every NAS supports it - it mitigates the BlastRADIUS class of attack.