Debian Codegraph @

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

raw
1 = Configuring a server to proxy requests
2
3
4
5 *Goal:* To configure the server to proxy packets to a remote (home)
6 RADIUS server and to perform test authentications against both the
7 proxy server and the home server.
8
9 *Time:* 15-25 minutes
10
11 *File:*
12
13 - `etc/raddb/proxy.conf`
14
15 *Diagram:*
16
17 image::access-request-proxy.svg[Fig. Proxy]
18
19 For this exercise, you will configure a RADIUS server to proxy
20 requests to a home RADIUS server that is run by another user
21 (the uber user)).
22
23 You will configure a realm, called "realm1" in the
24 `raddb/proxy.conf` file. This realm will be proxied to the RADIUS server
25 administered by the uber user, who will supply the IP address, port,
26 and shared secret used by their RADIUS server. The entry for the home
27 server in `proxy.conf` will be configured to "strip" the realm name
28 from the incoming request.
29
30 The entry from the exercise in
31 xref:new_user.adoc[New User] for user "bob", in the
32 "users" file will be used in this exercise.
33
34 The example packets `bob.sh` and `[email protected]` may be used in this
35 exercise.
36
37 You should verify that authentication requests for user "bob"
38 to their RADIUS server result in authentication accept replies and that
39 the request was not forwarded to the home RADIUS server. You
40 should then use the `[email protected]` script to attempt an authentication
41 request to their RADIUS server, which will then be proxied to the home
42 server.
43
44 Once you have verified that authentication requests are proxied
45 to the home server and that you have received an authentication accept, the
46 uber user will halt the home server. The users should then
47 re-attempt the `[email protected]` authentication request to their server.
48 They should then observe the resulting behavior of their server, as it
49 attempts to proxy to a home server that does not respond.
50
51 == Questions
52
53 1. How would you configure "proxy.conf" so that "realm1" was not
54 proxied, but was instead handled by the local RADIUS server?
55 2. Will it make any difference for the home server if the request sent
56 to the proxy contains CHAP-Password instead of User-Password?
57 3. Since the User-Password is encrypted with the RADIUS shared secret,
58 what happens to it when a request is proxied?
59
60 // Copyright (C) 2021 Network RADIUS SAS. Licenced under CC-by-NC 4.0.
61 // This documentation was developed by Network RADIUS SAS.