Debian Codegraph @

doc/antora/modules/tutorials/pages/proxy_receive.adoc

raw
1 = Configuring a server to send and receive proxy requests
2
3
4
5 *Goal:* To configure the server to proxy packets to a remote (home)
6 RADIUS server and to receive packets from another proxy server.
7
8 *Time:* 15-25 minutes
9
10 *Files:*
11
12 - `etc/raddb/proxy.conf`
13 - `etc/raddb/clients.conf`
14
15 For this exercise, the users will be divided into groups of two. One
16 user will be named "realm1" and the other will be named
17 "realm2".
18
19 Each user will configure two realms in the `proxy.conf` file. One of the
20 user's assigned realms will be authenticated by the local RADIUS
21 server. The other realm will be proxied to the RADIUS server
22 administered by the other user. Both realms will be configured to
23 "strip" the realm name from the incoming request.
24
25 User 1:
26
27 realm1 is local
28
29 realm2 gets proxied to the server running as "realm2".
30
31 User 2:
32
33 realm1 gets proxied to the server running as "realm1".
34
35 realm2 is local
36
37 The users should also configure each other's server as a RADIUS
38 client, as given in the exercise in xref:new_client.adoc[New Clients].
39
40 The entry from the exercise in xref:new_user.adoc[New User] for user "bob" in
41 the file, will be used in this exercise.
42
43 The example packets `bob.sh`, `[email protected]`, and `[email protected]` may
44 be used in this exercise.
45
46 Each user should test that authentication requests from "bob" to
47 their RADIUS server should result in authentication accept replies and
48 that the request was not forwarded to the other RADIUS server.
49
50 Each user should test that authentication requests for their own
51 realm (User 1: "bob@realm1", User 2: "bob@realm2") to their
52 RADIUS server should result in authentication accept replies and that
53 the request was not forwarded to the other RADIUS server.
54
55 Each user in turn should then attempt authentication using the other
56 user's realm (User 1: "bob@realm2", User 2: "bob@realm1"),
57 to their local RADIUS server.
58
59 Each in turn should verify that authentication requests for their
60 realm sent to the other user's RADIUS server results in an
61 authentication reject.
62
63 User 2 should then stop his server. User 1 should then attempt an
64 authentication request to his server where the request would normally
65 be proxied. Both users should examine the debug logs of User 1’s
66 RADIUS client and server in order to observe what the server's resulting behavior
67 will be.
68
69 == Questions
70
71 1. Why is it necessary for each server to mark some realms as local?
72 2. What would happen if each user did not configure the other RADIUS
73 server in the "raddb/clients.conf" file?
74 3. What would happen if each user did not configure the realms to
75 "strip" the realm from the proxied requests?
76
77 // Copyright (C) 2021 Network RADIUS SAS. Licenced under CC-by-NC 4.0.
78 // This documentation was developed by Network RADIUS SAS.