| 1 |
= Adding a new client to the server |
| 2 |
|
| 3 |
*Goal:* To permit an additional RADIUS client to communicate with the |
| 4 |
server. |
| 5 |
|
| 6 |
*Time:* 5-10 minutes. |
| 7 |
|
| 8 |
*File:* |
| 9 |
|
| 10 |
- `etc/raddb/clients.conf` |
| 11 |
|
| 12 |
The RADIUS server will only communicate with known clients. This |
| 13 |
restriction is for security, so that unknown machines on the Internet |
| 14 |
cannot probe the RADIUS server with test packets. |
| 15 |
|
| 16 |
In FreeRADIUS, the `clients.conf` file lists the clients that are |
| 17 |
permitted to send requests to the server. Take some time to read this file and |
| 18 |
the included comments. |
| 19 |
|
| 20 |
Configure the server with the the IP address of the new client and a |
| 21 |
shared secret. If the server is already running, stop it. |
| 22 |
|
| 23 |
Start the server |
| 24 |
|
| 25 |
[source, bash] |
| 26 |
------------ |
| 27 |
$ radiusd -X |
| 28 |
------------ |
| 29 |
|
| 30 |
Send a Status-Server packet from the new client to the server, using the |
| 31 |
correct IP address, port, and shared secret. |
| 32 |
|
| 33 |
Verify that the server saw the packet. Also verify that the client saw |
| 34 |
the response. |
| 35 |
|
| 36 |
Some common problems are: |
| 37 |
|
| 38 |
* not using the correct port in the client software |
| 39 |
* not using the the correct shared secret in the client software |
| 40 |
* the server responds to the client from an address that is different from the one to which the client sent the request. |
| 41 |
|
| 42 |
The first two problems can be solved by configuring the client with the |
| 43 |
correct information. The last problem is seen when the client does not |
| 44 |
see the response from the server, or when the server gives an error message about an |
| 45 |
invalid response. |
| 46 |
|
| 47 |
If the server responds to the packet and the client accepts the |
| 48 |
response, then the test was successful, and the server may be halted. |
| 49 |
|
| 50 |
== Questions |
| 51 |
|
| 52 |
1. What happens when the server receives a packet from a machine not |
| 53 |
listed in "clients.conf"? |
| 54 |
2. Why does the client not accept the response from the server when |
| 55 |
that response originates from another IP address? |
| 56 |
3. Why does the server have to be re-started when the "clients.conf" |
| 57 |
file is edited? |
| 58 |
4. What are the other fields in a client entry, and what are they used |
| 59 |
for? |
| 60 |
|
| 61 |
// Copyright (C) 2021 Network RADIUS SAS. Licenced under CC-by-NC 4.0. |
| 62 |
// This documentation was developed by Network RADIUS SAS. |