Debian Codegraph @

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

raw
1 = Matching entries in the users file
2
3 *Goal:* To configure multiple entries for a user in the "users" file
4 and to validate the server's configuration by sending test packets to
5 exercise the new entries.
6
7 *Time:* 30-45 minutes.
8
9 Now that we have verified that we can add a simple entry to the file, we
10 will try more complex configurations.
11
12 In this exercise, we will add three configuration entries for a user
13 named "bob" with clear-text password "hello". The three entries are
14 related as follows:
15
16 * The first will configure user "bob" with password "hello". It will
17 configure a reply message in an appropriate attribute. This
18 configuration entry will cause the server to continue processing the
19 file.
20 * The second entry will configure user "bob" and will match only when
21 "bob" is asking to use PPP. The configuration entry should add the
22 appropriate attributes to the reply, to allow "bob" to use PPP and to
23 assign him the IP address 192.168.10.12. This entry should also cause
24 the server to continue processing the file.
25 * The last entry will configure any user asking for "framed" service,
26 and will assign them a default route of 192.168.10.1 with netmask of
27 255.255.255.0.
28
29 We suggest that you approach the problem by configuring each of the
30 three entries in isolation. That is, add one entry, then create and send test
31 packets until the server responds with the attributes you expect. Then,
32 comment out the first entry and repeat the process for the second
33 entry. Do the same for the third entry. Once all entries work in
34 isolation, uncomment the first two and verify that the combination of
35 entries behaves as expected.
36
37 Test the server with username "bob" and password "hello". Use the
38 debug output of the server to see which entries in the file were
39 matched. You may use `radclient` or the `bob.sh` script to send the
40 packets. In that case, save the packets into a file, and use the "-f"
41 parameter to radclient to tell it which file to read.
42
43 Perform other authentication tests, adding the appropriate attributes to
44 the request sent by the RADIUS client. Continue until you have packets
45 that will match:
46
47 * entries 1 and 2, but not 3.
48 * entries 1 and 3, but not 2.
49 * entries 1, 2, and 3.
50
51 Save copies of the packets.
52
53 == Questions
54
55 1. What is the difference between the Framed-Route and Framed-Routing
56 Attributes?
57 2. What is the Framed-IP-Netmask attribute used for?
58 3. What are potential pitfalls with the entry 2? That is, the entry
59 meets the requirements, but do the requirements fit the needs of the
60 network?
61 4. How does this kind of simple configuration scale to many users?
62
63 // Copyright (C) 2021 Network RADIUS SAS. Licenced under CC-by-NC 4.0.
64 // This documentation was developed by Network RADIUS SAS.