Debian Codegraph @

doc/antora/modules/tutorials/pages/eap-peap.adoc

raw
1 = EAP-PEAP: Tunneled authentication
2
3 *Goal:* To configure the server to use the EAP-PEAP authentication
4 protocol and to send and receive test packets.
5
6 *Time:* 20-35 minutes.
7
8 *File:*
9
10 - `etc/raddb/mods-available/eap`
11
12 *Diagram:*
13
14 image::peap_packet.svg[Fig. PEAP Packet]
15
16 When started with the `radiusd -X` command, the server automatically creates
17 certificates for use with PEAP. In a normal installation, there should
18 be little or no action required to enable PEAP.
19
20 Start the server, and verify that the `peap` module was loaded and that
21 the server is `Ready to process requests`.
22
23 This exercise does not cover how to configure EAP-PEAP on the wireless
24 client nor how to set up a wireless access point to perform EAP-PEAP.
25 We suggest that you consults the documentation for your
26 wireless client software for details on this process.
27
28 For the initial testing of EAP-PEAP, we recommend using
29 `EAP-MSCHAPv2` on the wireless client as the tunneled authentication
30 protocol. You should check that the `mschap` module is configured in the
31 `raddb/modules` directory. The `mschapv2` module performs EAP-MSCHAPv2
32 authentication and is contained in the `eap` section of the
33 `raddb/eap.conf`. While these authentication methods are similar, they
34 are not identical. Both modules need to be configured for EAP-PEAP to
35 work.
36
37 Test PEAP ``inner tunnel'' authentication via the following command:
38
39 [source, bash]
40 --------------------------------------------------------------
41 $ radtest -t mschap 127.0.0.1:18120 USER PASSWORD 0 testing123
42 --------------------------------------------------------------
43
44 Once the wireless client has been configured to enable EAP-PEAP,
45 you should perform a test authentication to the server. If all goes well,
46 the server, AP, and wireless client should exchange multiple RADIUS
47 `Access-Request` and `Access-Challenge` packets. This process should take
48 a few seconds, and you should wait until it is done. If all goes well,
49 the final packet from the server should be an `Access-Accept` and should
50 contain the `MS-MPPE-Recv-Key` and `MS-MPPE-Send-Key` attributes.
51
52 Verify that the authentication succeeded by using the `ping` command to
53 see if the wireless client now has network access.
54
55 == Further Considerations
56
57 Different wireless clients may implement different tunneled
58 authentication protocols inside of EAP-PEAP. These clients may not be
59 compatible with all RADIUS servers. FreeRADIUS has only been tested
60 using EAP-MSCHAPv2 as the tunneled authentication protocol. Other
61 protocols may require source code changes to work.
62
63 If there are issues getting EAP-PEAP to work on Windows, the following
64 registry setting may be useful
65
66 ------------------------------------------------------------------
67 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Tracing\RASTLS\EnableTracing
68 ------------------------------------------------------------------
69
70 Set the above key to value ``1''. A file `RASTLS.LOG` will be created
71 and will contain the requested tracing information.
72
73 == Questions
74
75 1. How does EAP-PEAP compare with EAP-TTLS?
76 2. What authentication protocols may be carried inside of the TLS
77 tunnel for EAP-PEAP?
78 3. Would you use EAP-PEAP in a large deployment? If so, why? If not,
79 why not?
80
81 // Copyright (C) 2021 Network RADIUS SAS. Licenced under CC-by-NC 4.0.
82 // This documentation was developed by Network RADIUS SAS.