| 1 |
= Proxy Fail-over |
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
*Goal:* To configure a "backup" home server that is used when the |
| 6 |
"primary" home server fails. |
| 7 |
|
| 8 |
*Time:* 15-25 minutes |
| 9 |
|
| 10 |
*Files:* |
| 11 |
|
| 12 |
- `etc/raddb/proxy.conf` |
| 13 |
- `etc/raddb/clients.conf` |
| 14 |
|
| 15 |
*Diagram:* |
| 16 |
|
| 17 |
image::proxy_backup_server.svg[Fig. Proxy Backup Server] |
| 18 |
|
| 19 |
For this exercise, you should find a group of other willing |
| 20 |
FreeRADIUS users! |
| 21 |
|
| 22 |
Divide yourselves into groups of three. One person (user 1) will |
| 23 |
operate the RADIUS server for "realm1" and the others will be operate |
| 24 |
the RADIUS server for "realm2". |
| 25 |
|
| 26 |
Each user will configure their realm in the `proxy.conf` file to |
| 27 |
be a "local" realm. user 1 will also configure two entries in the |
| 28 |
`proxy.conf` file for "realm2", one entry for each of the other |
| 29 |
partner's RADIUS servers. user 1 will configure the realms to "strip" |
| 30 |
the realm name from the incoming request. |
| 31 |
|
| 32 |
The two group for "realm2" should also configure their |
| 33 |
`clients.conf` file to permit user 1’s RADIUS server to act as a client, |
| 34 |
as given in the exercise in xref:new_client.adoc[New Clients]. |
| 35 |
Each user operating "realm2" should pick a different shared |
| 36 |
secret to use with user 1. |
| 37 |
|
| 38 |
Once the servers have been configured, the group should collectively |
| 39 |
observe user 1 sending the following requests to their server: |
| 40 |
- [email protected] |
| 41 |
- [email protected] |
| 42 |
|
| 43 |
The group should verify that the expected authentication requests |
| 44 |
sent to the server for "realm1" are handled locally, as in the |
| 45 |
exercise in xref:proxy.adoc[Proxy]. |
| 46 |
|
| 47 |
The group should then verify that the expected requests sent to |
| 48 |
the server for "realm1" are proxied to a server for "realm2". The |
| 49 |
group should send multiple requests to the server for "realm1" that are |
| 50 |
proxied to a server for "realm2", and they should verify that all of |
| 51 |
the requests are proxied to the same home server for "realm2". |
| 52 |
|
| 53 |
The group should then stop the "realm2" server that responded |
| 54 |
to that request, and they should repeat the request to "realm1". The |
| 55 |
group should observe the resulting behavior of the server for "realm1". |
| 56 |
|
| 57 |
If time permits, the group may switch roles, so that users have the |
| 58 |
opportunity to set up a proxy and a home server. |
| 59 |
|
| 60 |
== Questions |
| 61 |
|
| 62 |
1. Which server for "realm2" is picked by "realm1"? Why? |
| 63 |
2. Would the server for "realm1" ever again try to send packets to |
| 64 |
the "realm2" server that has been stopped? If so, when? If not, |
| 65 |
why not? |
| 66 |
3. What would happen if both servers for "realm2" failed? |
| 67 |
|
| 68 |
// Copyright (C) 2021 Network RADIUS SAS. Licenced under CC-by-NC 4.0. |
| 69 |
// This documentation was developed by Network RADIUS SAS. |