Browse code

Adding RADIUS

Veselin Kolev authored on 16/12/2019 07:33:16
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,702 @@
1
+# -*- text -*-
2
+##
3
+##  eap.conf -- Configuration for EAP types (PEAP, TTLS, etc.)
4
+##
5
+##	$Id: 95bebe4d25ef13871fb201ba540ed008078dab07 $
6
+
7
+#######################################################################
8
+#
9
+#  Whatever you do, do NOT set 'Auth-Type := EAP'.  The server
10
+#  is smart enough to figure this out on its own.  The most
11
+#  common side effect of setting 'Auth-Type := EAP' is that the
12
+#  users then cannot use ANY other authentication method.
13
+#
14
+#  EAP types NOT listed here may be supported via the "eap2" module.
15
+#  See experimental.conf for documentation.
16
+#
17
+	eap {
18
+		#  Invoke the default supported EAP type when
19
+		#  EAP-Identity response is received.
20
+		#
21
+		#  The incoming EAP messages DO NOT specify which EAP
22
+		#  type they will be using, so it MUST be set here.
23
+		#
24
+		#  For now, only one default EAP type may be used at a time.
25
+		#
26
+		#  If the EAP-Type attribute is set by another module,
27
+		#  then that EAP type takes precedence over the
28
+		#  default type configured here.
29
+		#
30
+		default_eap_type = md5
31
+		#default_eap_type = peap
32
+
33
+		#  A list is maintained to correlate EAP-Response
34
+		#  packets with EAP-Request packets.  After a
35
+		#  configurable length of time, entries in the list
36
+		#  expire, and are deleted.
37
+		#
38
+		timer_expire     = 60
39
+
40
+		#  There are many EAP types, but the server has support
41
+		#  for only a limited subset.  If the server receives
42
+		#  a request for an EAP type it does not support, then
43
+		#  it normally rejects the request.  By setting this
44
+		#  configuration to "yes", you can tell the server to
45
+		#  instead keep processing the request.  Another module
46
+		#  MUST then be configured to proxy the request to
47
+		#  another RADIUS server which supports that EAP type.
48
+		#
49
+		#  If another module is NOT configured to handle the
50
+		#  request, then the request will still end up being
51
+		#  rejected.
52
+		ignore_unknown_eap_types = no
53
+
54
+		# Cisco AP1230B firmware 12.2(13)JA1 has a bug.  When given
55
+		# a User-Name attribute in an Access-Accept, it copies one
56
+		# more byte than it should.
57
+		#
58
+		# We can work around it by configurably adding an extra
59
+		# zero byte.
60
+		cisco_accounting_username_bug = no
61
+
62
+		#
63
+		#  Help prevent DoS attacks by limiting the number of
64
+		#  sessions that the server is tracking.  For simplicity,
65
+		#  this is taken from the "max_requests" directive in
66
+		#  radiusd.conf.
67
+		max_sessions = ${max_requests}
68
+
69
+		# Supported EAP-types
70
+
71
+		#
72
+		#  We do NOT recommend using EAP-MD5 authentication
73
+		#  for wireless connections.  It is insecure, and does
74
+		#  not provide for dynamic WEP keys.
75
+		#
76
+		md5 {
77
+		}
78
+
79
+		# Cisco LEAP
80
+		#
81
+		#  We do not recommend using LEAP in new deployments.  See:
82
+		#  http://www.securiteam.com/tools/5TP012ACKE.html
83
+		#
84
+		#  Cisco LEAP uses the MS-CHAP algorithm (but not
85
+		#  the MS-CHAP attributes) to perform it's authentication.
86
+		#
87
+		#  As a result, LEAP *requires* access to the plain-text
88
+		#  User-Password, or the NT-Password attributes.
89
+		#  'System' authentication is impossible with LEAP.
90
+		#
91
+		leap {
92
+		}
93
+
94
+		#  Generic Token Card.
95
+		#
96
+		#  Currently, this is only permitted inside of EAP-TTLS,
97
+		#  or EAP-PEAP.  The module "challenges" the user with
98
+		#  text, and the response from the user is taken to be
99
+		#  the User-Password.
100
+		#
101
+		#  Proxying the tunneled EAP-GTC session is a bad idea,
102
+		#  the users password will go over the wire in plain-text,
103
+		#  for anyone to see.
104
+		#
105
+		gtc {
106
+			#  The default challenge, which many clients
107
+			#  ignore..
108
+			#challenge = "Password: "
109
+
110
+			#  The plain-text response which comes back
111
+			#  is put into a User-Password attribute,
112
+			#  and passed to another module for
113
+			#  authentication.  This allows the EAP-GTC
114
+			#  response to be checked against plain-text,
115
+			#  or crypt'd passwords.
116
+			#
117
+			#  If you say "Local" instead of "PAP", then
118
+			#  the module will look for a User-Password
119
+			#  configured for the request, and do the
120
+			#  authentication itself.
121
+			#
122
+			auth_type = PAP
123
+		}
124
+
125
+		## EAP-TLS
126
+		#
127
+		#  See raddb/certs/README for additional comments
128
+		#  on certificates.
129
+		#
130
+		#  If OpenSSL was not found at the time the server was
131
+		#  built, the "tls", "ttls", and "peap" sections will
132
+		#  be ignored.
133
+		#
134
+		#  Otherwise, when the server first starts in debugging
135
+		#  mode, test certificates will be created.  See the
136
+		#  "make_cert_command" below for details, and the README
137
+		#  file in raddb/certs
138
+		#
139
+		#  These test certificates SHOULD NOT be used in a normal
140
+		#  deployment.  They are created only to make it easier
141
+		#  to install the server, and to perform some simple
142
+		#  tests with EAP-TLS, TTLS, or PEAP.
143
+		#
144
+		#  See also:
145
+		#
146
+		#  http://www.dslreports.com/forum/remark,9286052~mode=flat
147
+		#
148
+		#  Note that you should NOT use a globally known CA here!
149
+		#  e.g. using a Verisign cert as a "known CA" means that
150
+		#  ANYONE who has a certificate signed by them can
151
+		#  authenticate via EAP-TLS!  This is likely not what you want.
152
+		tls {
153
+			#
154
+			#  These is used to simplify later configurations.
155
+			#
156
+			certdir = ${confdir}/certs
157
+			cadir = ${confdir}/certs
158
+
159
+			private_key_password = whatever
160
+			private_key_file = ${certdir}/server.key
161
+
162
+			#  If Private key & Certificate are located in
163
+			#  the same file, then private_key_file &
164
+			#  certificate_file must contain the same file
165
+			#  name.
166
+			#
167
+			#  If CA_file (below) is not used, then the
168
+			#  certificate_file below MUST include not
169
+			#  only the server certificate, but ALSO all
170
+			#  of the CA certificates used to sign the
171
+			#  server certificate.
172
+			certificate_file = ${certdir}/server.crt
173
+
174
+			#  Trusted Root CA list
175
+			#
176
+			#  ALL of the CA's in this list will be trusted
177
+			#  to issue client certificates for authentication.
178
+			#
179
+			#  In general, you should use self-signed
180
+			#  certificates for 802.1x (EAP) authentication.
181
+			#  In that case, this CA file should contain
182
+			#  *one* CA certificate.
183
+			#
184
+			#  This parameter is used only for EAP-TLS,
185
+			#  when you issue client certificates.  If you do
186
+			#  not use client certificates, and you do not want
187
+			#  to permit EAP-TLS authentication, then delete
188
+			#  this configuration item.
189
+			CA_file = ${cadir}/CA-wifi.crt
190
+
191
+			#
192
+			#  For DH cipher suites to work, you have to
193
+			#  run OpenSSL to create the DH file first:
194
+			#
195
+			#  	openssl dhparam -out certs/dh 1024
196
+			#
197
+			dh_file = ${certdir}/dh
198
+
199
+			#
200
+			#  If your system doesn't have /dev/urandom,
201
+			#  you will need to create this file, and
202
+			#  periodically change its contents.
203
+			#
204
+			#  For security reasons, FreeRADIUS doesn't
205
+			#  write to files in its configuration
206
+			#  directory.
207
+			#
208
+#			random_file = ${certdir}/random
209
+
210
+			#
211
+			#  This can never exceed the size of a RADIUS
212
+			#  packet (4096 bytes), and is preferably half
213
+			#  that, to accomodate other attributes in
214
+			#  RADIUS packet.  On most APs the MAX packet
215
+			#  length is configured between 1500 - 1600
216
+			#  In these cases, fragment size should be
217
+			#  1024 or less.
218
+			#
219
+		#	fragment_size = 1024
220
+
221
+			#  include_length is a flag which is
222
+			#  by default set to yes If set to
223
+			#  yes, Total Length of the message is
224
+			#  included in EVERY packet we send.
225
+			#  If set to no, Total Length of the
226
+			#  message is included ONLY in the
227
+			#  First packet of a fragment series.
228
+			#
229
+		#	include_length = yes
230
+
231
+			#  Check the Certificate Revocation List
232
+			#
233
+			#  1) Copy CA certificates and CRLs to same directory.
234
+			#  2) Execute 'c_rehash <CA certs&CRLs Directory>'.
235
+			#    'c_rehash' is OpenSSL's command.
236
+			#  3) uncomment the line below.
237
+			#  5) Restart radiusd
238
+		#	check_crl = yes
239
+			CA_path = ${cadir}
240
+
241
+		       #
242
+		       #  If check_cert_issuer is set, the value will
243
+		       #  be checked against the DN of the issuer in
244
+		       #  the client certificate.  If the values do not
245
+		       #  match, the cerficate verification will fail,
246
+		       #  rejecting the user.
247
+		       #
248
+		       #  In 2.1.10 and later, this check can be done
249
+		       #  more generally by checking the value of the
250
+		       #  TLS-Client-Cert-Issuer attribute.  This check
251
+		       #  can be done via any mechanism you choose.
252
+		       #
253
+		#       check_cert_issuer = "/C=GB/ST=Berkshire/L=Newbury/O=My Company Ltd"
254
+
255
+		       #
256
+		       #  If check_cert_cn is set, the value will
257
+		       #  be xlat'ed and checked against the CN
258
+		       #  in the client certificate.  If the values
259
+		       #  do not match, the certificate verification
260
+		       #  will fail rejecting the user.
261
+		       #
262
+		       #  This check is done only if the previous
263
+		       #  "check_cert_issuer" is not set, or if
264
+		       #  the check succeeds.
265
+		       #
266
+		       #  In 2.1.10 and later, this check can be done
267
+		       #  more generally by checking the value of the
268
+		       #  TLS-Client-Cert-CN attribute.  This check
269
+		       #  can be done via any mechanism you choose.
270
+		       #
271
+		#	check_cert_cn = %{User-Name}
272
+		#
273
+			# Set this option to specify the allowed
274
+			# TLS cipher suites.  The format is listed
275
+			# in "man 1 ciphers".
276
+			cipher_list = "DEFAULT"
277
+
278
+			#
279
+			# As part of checking a client certificate, the EAP-TLS
280
+			# sets some attributes such as TLS-Client-Cert-CN. This
281
+			# virtual server has access to these attributes, and can
282
+			# be used to accept or reject the request.
283
+			#
284
+		#	virtual_server = check-eap-tls
285
+
286
+			# This command creates the initial "snake oil"
287
+			# certificates when the server is run as root,
288
+			# and via "radiusd -X".
289
+			#
290
+			# As of 2.1.11, it *also* checks the server
291
+			# certificate for validity, including expiration.
292
+			# This means that radiusd will refuse to start
293
+			# when the certificate has expired.  The alternative
294
+			# is to have the 802.1X clients refuse to connect
295
+			# when they discover the certificate has expired.
296
+			#
297
+			# Debugging client issues is hard, so it's better
298
+			# for the server to print out an error message,
299
+			# and refuse to start.
300
+			#
301
+			# Redhat RPM's run the bootstrap certificate creation
302
+			# as part of the RPM install (not upgrade), therefore
303
+			# the make_cert_command is commented out.
304
+			#
305
+			#make_cert_command = "${certdir}/bootstrap"
306
+
307
+			#
308
+			#  Elliptical cryptography configuration
309
+			#
310
+			#  Only for OpenSSL >= 0.9.8.f
311
+			#
312
+			ecdh_curve = "prime256v1"
313
+
314
+			#
315
+			#  Session resumption / fast reauthentication
316
+			#  cache.
317
+			#
318
+			#  The cache contains the following information:
319
+			#
320
+			#  session Id - unique identifier, managed by SSL
321
+			#  User-Name  - from the Access-Accept
322
+			#  Stripped-User-Name - from the Access-Request
323
+			#  Cached-Session-Policy - from the Access-Accept
324
+			#
325
+			#  The "Cached-Session-Policy" is the name of a
326
+			#  policy which should be applied to the cached
327
+			#  session.  This policy can be used to assign
328
+			#  VLANs, IP addresses, etc.  It serves as a useful
329
+			#  way to re-apply the policy from the original
330
+			#  Access-Accept to the subsequent Access-Accept
331
+			#  for the cached session.
332
+			#
333
+			#  On session resumption, these attributes are
334
+			#  copied from the cache, and placed into the
335
+			#  reply list.
336
+			#
337
+			#  You probably also want "use_tunneled_reply = yes"
338
+			#  when using fast session resumption.
339
+			#
340
+			cache {
341
+			      #
342
+			      #  Enable it.  The default is "no".
343
+			      #  Deleting the entire "cache" subsection
344
+			      #  Also disables caching.
345
+			      #
346
+			      #  You can disallow resumption for a
347
+			      #  particular user by adding the following
348
+			      #  attribute to the control item list:
349
+			      #
350
+			      #		Allow-Session-Resumption = No
351
+			      #
352
+			      #  If "enable = no" below, you CANNOT
353
+			      #  enable resumption for just one user
354
+			      #  by setting the above attribute to "yes".
355
+			      #
356
+			      enable = no
357
+
358
+			      #
359
+			      #  Lifetime of the cached entries, in hours.
360
+			      #  The sessions will be deleted after this
361
+			      #  time.
362
+			      #
363
+			      lifetime = 24 # hours
364
+
365
+			      #
366
+			      #  The maximum number of entries in the
367
+			      #  cache.  Set to "0" for "infinite".
368
+			      #
369
+			      #  This could be set to the number of users
370
+			      #  who are logged in... which can be a LOT.
371
+			      #
372
+			      max_entries = 255
373
+			}
374
+
375
+			#
376
+			#  As of version 2.1.10, client certificates can be
377
+			#  validated via an external command.  This allows
378
+			#  dynamic CRLs or OCSP to be used.
379
+			#
380
+			#  This configuration is commented out in the
381
+			#  default configuration.  Uncomment it, and configure
382
+			#  the correct paths below to enable it.
383
+			#
384
+			verify {
385
+				#  A temporary directory where the client
386
+				#  certificates are stored.  This directory
387
+				#  MUST be owned by the UID of the server,
388
+				#  and MUST not be accessible by any other
389
+				#  users.  When the server starts, it will do
390
+				#  "chmod go-rwx" on the directory, for
391
+				#  security reasons.  The directory MUST
392
+				#  exist when the server starts.
393
+				#
394
+				#  You should also delete all of the files
395
+				#  in the directory when the server starts.
396
+		#     		tmpdir = /tmp/radiusd
397
+
398
+				#  The command used to verify the client cert.
399
+				#  We recommend using the OpenSSL command-line
400
+				#  tool.
401
+				#
402
+				#  The ${..CA_path} text is a reference to
403
+				#  the CA_path variable defined above.
404
+				#
405
+				#  The %{TLS-Client-Cert-Filename} is the name
406
+				#  of the temporary file containing the cert
407
+				#  in PEM format.  This file is automatically
408
+				#  deleted by the server when the command
409
+				#  returns.
410
+		#    		client = "/path/to/openssl verify -CApath ${..CA_path} %{TLS-Client-Cert-Filename}"
411
+			}
412
+
413
+			#
414
+			#  OCSP Configuration
415
+			#  Certificates can be verified against an OCSP
416
+			#  Responder. This makes it possible to immediately
417
+			#  revoke certificates without the distribution of
418
+			#  new Certificate Revokation Lists (CRLs).
419
+			#
420
+			ocsp {
421
+			      #
422
+			      #  Enable it.  The default is "no".
423
+			      #  Deleting the entire "ocsp" subsection
424
+			      #  Also disables ocsp checking
425
+			      #
426
+			      enable = no
427
+
428
+			      #
429
+			      #  The OCSP Responder URL can be automatically
430
+			      #  extracted from the certificate in question.
431
+			      #  To override the OCSP Responder URL set
432
+			      #  "override_cert_url = yes". 
433
+			      #
434
+			      override_cert_url = yes
435
+
436
+			      #
437
+			      #  If the OCSP Responder address is not
438
+			      #  extracted from the certificate, the
439
+			      #  URL can be defined here.
440
+
441
+			      #
442
+			      #  Limitation: Currently the HTTP
443
+			      #  Request is not sending the "Host: "
444
+			      #  information to the web-server.  This
445
+			      #  can be a problem if the OCSP
446
+			      #  Responder is running as a vhost.
447
+			      #
448
+			      url = "http://127.0.0.1/ocsp/"
449
+
450
+			      #
451
+			      # If the OCSP Responder can not cope with nonce
452
+			      # in the request, then it can be disabled here.
453
+			      #
454
+			      # For security reasons, disabling this option
455
+			      # is not recommended as nonce protects against
456
+			      # replay attacks.
457
+			      #
458
+			      # Note that Microsoft AD Certificate Services OCSP
459
+			      # Responder does not enable nonce by default. It is
460
+			      # more secure to enable nonce on the responder than
461
+			      # to disable it in the query here.
462
+			      # See http://technet.microsoft.com/en-us/library/cc770413%28WS.10%29.aspx
463
+			      #
464
+			      # use_nonce = yes
465
+
466
+			      #
467
+			      # Number of seconds before giving up waiting
468
+			      # for OCSP response. 0 uses system default.
469
+			      #
470
+			      # timeout = 0
471
+
472
+			      #
473
+			      # Normally an error in querying the OCSP
474
+			      # responder (no response from server, server did
475
+			      # not understand the request, etc) will result in
476
+			      # a validation failure.
477
+			      #
478
+			      # To treat these errors as 'soft' failures and
479
+			      # still accept the certificate, enable this
480
+			      # option.
481
+			      # 
482
+			      # Warning: this may enable clients with revoked
483
+			      # certificates to connect if the OCSP responder
484
+			      # is not available. Use with caution.
485
+			      #
486
+			      # softfail = no
487
+			}
488
+		}
489
+
490
+		#  The TTLS module implements the EAP-TTLS protocol,
491
+		#  which can be described as EAP inside of Diameter,
492
+		#  inside of TLS, inside of EAP, inside of RADIUS...
493
+		#
494
+		#  Surprisingly, it works quite well.
495
+		#
496
+		#  The TTLS module needs the TLS module to be installed
497
+		#  and configured, in order to use the TLS tunnel
498
+		#  inside of the EAP packet.  You will still need to
499
+		#  configure the TLS module, even if you do not want
500
+		#  to deploy EAP-TLS in your network.  Users will not
501
+		#  be able to request EAP-TLS, as it requires them to
502
+		#  have a client certificate.  EAP-TTLS does not
503
+		#  require a client certificate.
504
+		#
505
+		#  You can make TTLS require a client cert by setting
506
+		#
507
+		#	EAP-TLS-Require-Client-Cert = Yes
508
+		#
509
+		#  in the control items for a request.
510
+		#
511
+		ttls {
512
+			#  The tunneled EAP session needs a default
513
+			#  EAP type which is separate from the one for
514
+			#  the non-tunneled EAP module.  Inside of the
515
+			#  TTLS tunnel, we recommend using EAP-MD5.
516
+			#  If the request does not contain an EAP
517
+			#  conversation, then this configuration entry
518
+			#  is ignored.
519
+			default_eap_type = md5
520
+
521
+			#  The tunneled authentication request does
522
+			#  not usually contain useful attributes
523
+			#  like 'Calling-Station-Id', etc.  These
524
+			#  attributes are outside of the tunnel,
525
+			#  and normally unavailable to the tunneled
526
+			#  authentication request.
527
+			#
528
+			#  By setting this configuration entry to
529
+			#  'yes', any attribute which NOT in the
530
+			#  tunneled authentication request, but
531
+			#  which IS available outside of the tunnel,
532
+			#  is copied to the tunneled request.
533
+			#
534
+			# allowed values: {no, yes}
535
+			copy_request_to_tunnel = no
536
+
537
+			#  The reply attributes sent to the NAS are
538
+			#  usually based on the name of the user
539
+			#  'outside' of the tunnel (usually
540
+			#  'anonymous').  If you want to send the
541
+			#  reply attributes based on the user name
542
+			#  inside of the tunnel, then set this
543
+			#  configuration entry to 'yes', and the reply
544
+			#  to the NAS will be taken from the reply to
545
+			#  the tunneled request.
546
+			#
547
+			# allowed values: {no, yes}
548
+			use_tunneled_reply = no
549
+
550
+			#
551
+			#  The inner tunneled request can be sent
552
+			#  through a virtual server constructed
553
+			#  specifically for this purpose.
554
+			#
555
+			#  If this entry is commented out, the inner
556
+			#  tunneled request will be sent through
557
+			#  the virtual server that processed the
558
+			#  outer requests.
559
+			#
560
+			virtual_server = "inner-tunnel"
561
+
562
+			#  This has the same meaning as the
563
+			#  same field in the "tls" module, above.
564
+			#  The default value here is "yes".
565
+		#	include_length = yes
566
+		}
567
+
568
+		##################################################
569
+		#
570
+		#  !!!!! WARNINGS for Windows compatibility  !!!!!
571
+		#
572
+		##################################################
573
+		#
574
+		#  If you see the server send an Access-Challenge,
575
+		#  and the client never sends another Access-Request,
576
+		#  then
577
+		#
578
+		#		STOP!
579
+		#
580
+		#  The server certificate has to have special OID's
581
+		#  in it, or else the Microsoft clients will silently
582
+		#  fail.  See the "scripts/xpextensions" file for
583
+		#  details, and the following page:
584
+		#
585
+		#	http://support.microsoft.com/kb/814394/en-us
586
+		#
587
+		#  For additional Windows XP SP2 issues, see:
588
+		#
589
+		#	http://support.microsoft.com/kb/885453/en-us
590
+		#
591
+		#
592
+		#  If is still doesn't work, and you're using Samba,
593
+		#  you may be encountering a Samba bug.  See:
594
+		#
595
+		#	https://bugzilla.samba.org/show_bug.cgi?id=6563
596
+		#
597
+		#  Note that we do not necessarily agree with their
598
+		#  explanation... but the fix does appear to work.
599
+		#
600
+		##################################################
601
+
602
+		#
603
+		#  The tunneled EAP session needs a default EAP type
604
+		#  which is separate from the one for the non-tunneled
605
+		#  EAP module.  Inside of the TLS/PEAP tunnel, we
606
+		#  recommend using EAP-MS-CHAPv2.
607
+		#
608
+		#  The PEAP module needs the TLS module to be installed
609
+		#  and configured, in order to use the TLS tunnel
610
+		#  inside of the EAP packet.  You will still need to
611
+		#  configure the TLS module, even if you do not want
612
+		#  to deploy EAP-TLS in your network.  Users will not
613
+		#  be able to request EAP-TLS, as it requires them to
614
+		#  have a client certificate.  EAP-PEAP does not
615
+		#  require a client certificate.
616
+		#
617
+		#
618
+		#  You can make PEAP require a client cert by setting
619
+		#
620
+		#	EAP-TLS-Require-Client-Cert = Yes
621
+		#
622
+		#  in the control items for a request.
623
+		#
624
+		peap {
625
+			#  The tunneled EAP session needs a default
626
+			#  EAP type which is separate from the one for
627
+			#  the non-tunneled EAP module.  Inside of the
628
+			#  PEAP tunnel, we recommend using MS-CHAPv2,
629
+			#  as that is the default type supported by
630
+			#  Windows clients.
631
+			default_eap_type = mschapv2
632
+
633
+			#  the PEAP module also has these configuration
634
+			#  items, which are the same as for TTLS.
635
+			copy_request_to_tunnel = no
636
+			use_tunneled_reply = no
637
+
638
+			#  When the tunneled session is proxied, the
639
+			#  home server may not understand EAP-MSCHAP-V2.
640
+			#  Set this entry to "no" to proxy the tunneled
641
+			#  EAP-MSCHAP-V2 as normal MSCHAPv2.
642
+		#	proxy_tunneled_request_as_eap = yes
643
+
644
+			#
645
+			#  The inner tunneled request can be sent
646
+			#  through a virtual server constructed
647
+			#  specifically for this purpose.
648
+			#
649
+			#  If this entry is commented out, the inner
650
+			#  tunneled request will be sent through
651
+			#  the virtual server that processed the
652
+			#  outer requests.
653
+			#
654
+			virtual_server = "inner-tunnel"
655
+
656
+			# This option enables support for MS-SoH
657
+			# see doc/SoH.txt for more info.
658
+			# It is disabled by default.
659
+			#
660
+#			soh = yes
661
+
662
+			#
663
+			# The SoH reply will be turned into a request which
664
+			# can be sent to a specific virtual server:
665
+			#
666
+#			soh_virtual_server = "soh-server"
667
+		}
668
+
669
+		#
670
+		#  This takes no configuration.
671
+		#
672
+		#  Note that it is the EAP MS-CHAPv2 sub-module, not
673
+		#  the main 'mschap' module.
674
+		#
675
+		#  Note also that in order for this sub-module to work,
676
+		#  the main 'mschap' module MUST ALSO be configured.
677
+		#
678
+		#  This module is the *Microsoft* implementation of MS-CHAPv2
679
+		#  in EAP.  There is another (incompatible) implementation
680
+		#  of MS-CHAPv2 in EAP by Cisco, which FreeRADIUS does not
681
+		#  currently support.
682
+		#
683
+		mschapv2 {
684
+			#  Prior to version 2.1.11, the module never
685
+			#  sent the MS-CHAP-Error message to the
686
+			#  client.  This worked, but it had issues
687
+			#  when the cached password was wrong.  The
688
+			#  server *should* send "E=691 R=0" to the
689
+			#  client, which tells it to prompt the user
690
+			#  for a new password.
691
+			#
692
+			#  The default is to behave as in 2.1.10 and
693
+			#  earlier, which is known to work.  If you
694
+			#  set "send_error = yes", then the error
695
+			#  message will be sent back to the client.
696
+			#  This *may* help some clients work better,
697
+			#  but *may* also cause other clients to stop
698
+			#  working.
699
+			#
700
+#			send_error = no
701
+		}
702
+	}