Add config item to toggle openssl vulnerability check
[freeradius.git] / raddb / radiusd.conf.in
1 # -*- text -*-
2 ##
3 ## radiusd.conf -- FreeRADIUS server configuration file - @RADIUSD_VERSION_STRING@
4 ##
5 ##      http://www.freeradius.org/
6 ##      $Id$
7 ##
8
9 ######################################################################
10 #
11 #       Read "man radiusd" before editing this file.  See the section
12 #       titled DEBUGGING.  It outlines a method where you can quickly
13 #       obtain the configuration you want, without running into
14 #       trouble.
15 #
16 #       Run the server in debugging mode, and READ the output.
17 #
18 #               $ radiusd -X
19 #
20 #       We cannot emphasize this point strongly enough.  The vast
21 #       majority of problems can be solved by carefully reading the
22 #       debugging output, which includes warnings about common issues,
23 #       and suggestions for how they may be fixed.
24 #
25 #       There may be a lot of output, but look carefully for words like:
26 #       "warning", "error", "reject", or "failure".  The messages there
27 #       will usually be enough to guide you to a solution.
28 #
29 #       If you are going to ask a question on the mailing list, then
30 #       explain what you are trying to do, and include the output from
31 #       debugging mode (radiusd -X).  Failure to do so means that all
32 #       of the responses to your question will be people telling you
33 #       to "post the output of radiusd -X".
34
35 ######################################################################
36 #
37 #       The location of other config files and logfiles are declared
38 #       in this file.
39 #
40 #       Also general configuration for modules can be done in this
41 #       file, it is exported through the API to modules that ask for
42 #       it.
43 #
44 #       See "man radiusd.conf" for documentation on the format of this
45 #       file.  Note that the individual configuration items are NOT
46 #       documented in that "man" page.  They are only documented here,
47 #       in the comments.
48 #
49 #       The "unlang" policy language can be used to create complex
50 #       if / else policies.  See "man unlang" for details.
51 #
52
53 prefix = @prefix@
54 exec_prefix = @exec_prefix@
55 sysconfdir = @sysconfdir@
56 localstatedir = @localstatedir@
57 sbindir = @sbindir@
58 logdir = @logdir@
59 raddbdir = @raddbdir@
60 radacctdir = @radacctdir@
61
62 #
63 #  name of the running server.  See also the "-n" command-line option.
64 name = radiusd
65
66 #  Location of config and logfiles.
67 confdir = ${raddbdir}
68 modconfdir = ${confdir}/mods-config
69 certdir = ${confdir}/certs
70 cadir   = ${confdir}/certs
71 run_dir = ${localstatedir}/run/${name}
72
73 # Should likely be ${localstatedir}/lib/radiusd
74 db_dir = ${raddbdir}
75
76 #
77 # libdir: Where to find the rlm_* modules.
78 #
79 #   This should be automatically set at configuration time.
80 #
81 #   If the server builds and installs, but fails at execution time
82 #   with an 'undefined symbol' error, then you can use the libdir
83 #   directive to work around the problem.
84 #
85 #   The cause is usually that a library has been installed on your
86 #   system in a place where the dynamic linker CANNOT find it.  When
87 #   executing as root (or another user), your personal environment MAY
88 #   be set up to allow the dynamic linker to find the library.  When
89 #   executing as a daemon, FreeRADIUS MAY NOT have the same
90 #   personalized configuration.
91 #
92 #   To work around the problem, find out which library contains that symbol,
93 #   and add the directory containing that library to the end of 'libdir',
94 #   with a colon separating the directory names.  NO spaces are allowed.
95 #
96 #   e.g. libdir = /usr/local/lib:/opt/package/lib
97 #
98 #   You can also try setting the LD_LIBRARY_PATH environment variable
99 #   in a script which starts the server.
100 #
101 #   If that does not work, then you can re-configure and re-build the
102 #   server to NOT use shared libraries, via:
103 #
104 #       ./configure --disable-shared
105 #       make
106 #       make install
107 #
108 libdir = @libdir@
109
110 #  pidfile: Where to place the PID of the RADIUS server.
111 #
112 #  The server may be signalled while it's running by using this
113 #  file.
114 #
115 #  This file is written when ONLY running in daemon mode.
116 #
117 #  e.g.:  kill -HUP `cat /var/run/radiusd/radiusd.pid`
118 #
119 pidfile = ${run_dir}/${name}.pid
120
121 #  panic_action: Command to execute if the server dies unexpectedly.
122 #
123 #  FOR PRODUCTION SYSTEMS, ACTIONS SHOULD ALWAYS EXIT.
124 #  AN INTERACTIVE ACTION MEANS THE SERVER IS NOT RESPONDING TO REQUESTS.
125 #  AN INTERACTICE ACTION MEANS THE SERVER WILL NOT RESTART.
126 #
127 #  The panic action is a command which will be executed if the server
128 #  receives a fatal, non user generated signal, i.e. SIGSEGV, SIGBUS,
129 #  SIGABRT or SIGFPE.
130 #
131 #  This can be used to start an interactive debugging session so
132 #  that information regarding the current state of the server can
133 #  be acquired.
134 #
135 #  The following string substitutions are available:
136 #  - %e   The currently executing program e.g. /sbin/radiusd
137 #  - %p   The PID of the currently executing program e.g. 12345
138 #
139 #  Standard ${} substitutions are also allowed.
140 #
141 #  An example panic action for opening an interactive session in GDB would be:
142 #
143 #panic_action = "gdb %e %p"
144 #
145 #  Again, don't use that on a production system.
146 #
147 #  An example panic action for opening an automated session in GDB would be:
148 #
149 #panic_action = "gdb -silent -x ${raddbdir}/panic.gdb %e %p 2>&1 | tee ${logdir}/gdb-${name}-%p.log"
150 #
151 #  That command can be used on a production system.
152 #
153
154 #  max_request_time: The maximum time (in seconds) to handle a request.
155 #
156 #  Requests which take more time than this to process may be killed, and
157 #  a REJECT message is returned.
158 #
159 #  WARNING: If you notice that requests take a long time to be handled,
160 #  then this MAY INDICATE a bug in the server, in one of the modules
161 #  used to handle a request, OR in your local configuration.
162 #
163 #  This problem is most often seen when using an SQL database.  If it takes
164 #  more than a second or two to receive an answer from the SQL database,
165 #  then it probably means that you haven't indexed the database.  See your
166 #  SQL server documentation for more information.
167 #
168 #  Useful range of values: 5 to 120
169 #
170 max_request_time = 30
171
172 #  cleanup_delay: The time to wait (in seconds) before cleaning up
173 #  a reply which was sent to the NAS.
174 #
175 #  The RADIUS request is normally cached internally for a short period
176 #  of time, after the reply is sent to the NAS.  The reply packet may be
177 #  lost in the network, and the NAS will not see it.  The NAS will then
178 #  re-send the request, and the server will respond quickly with the
179 #  cached reply.
180 #
181 #  If this value is set too low, then duplicate requests from the NAS
182 #  MAY NOT be detected, and will instead be handled as separate requests.
183 #
184 #  If this value is set too high, then the server will cache too many
185 #  requests, and some new requests may get blocked.  (See 'max_requests'.)
186 #
187 #  Useful range of values: 2 to 10
188 #
189 cleanup_delay = 5
190
191 #  max_requests: The maximum number of requests which the server keeps
192 #  track of.  This should be 256 multiplied by the number of clients.
193 #  e.g. With 4 clients, this number should be 1024.
194 #
195 #  If this number is too low, then when the server becomes busy,
196 #  it will not respond to any new requests, until the 'cleanup_delay'
197 #  time has passed, and it has removed the old requests.
198 #
199 #  If this number is set too high, then the server will use a bit more
200 #  memory for no real benefit.
201 #
202 #  If you aren't sure what it should be set to, it's better to set it
203 #  too high than too low.  Setting it to 1000 per client is probably
204 #  the highest it should be.
205 #
206 #  Useful range of values: 256 to infinity
207 #
208 max_requests = 1024
209
210 #  hostname_lookups: Log the names of clients or just their IP addresses
211 #  e.g., www.freeradius.org (on) or 206.47.27.232 (off).
212 #
213 #  The default is 'off' because it would be overall better for the net
214 #  if people had to knowingly turn this feature on, since enabling it
215 #  means that each client request will result in AT LEAST one lookup
216 #  request to the nameserver.   Enabling hostname_lookups will also
217 #  mean that your server may stop randomly for 30 seconds from time
218 #  to time, if the DNS requests take too long.
219 #
220 #  Turning hostname lookups off also means that the server won't block
221 #  for 30 seconds, if it sees an IP address which has no name associated
222 #  with it.
223 #
224 #  allowed values: {no, yes}
225 #
226 hostname_lookups = no
227
228 #
229 #  Logging section.  The various "log_*" configuration items
230 #  will eventually be moved here.
231 #
232 log {
233         #
234         #  Destination for log messages.  This can be one of:
235         #
236         #       files - log to "file", as defined below.
237         #       syslog - to syslog (see also the "syslog_facility", below.
238         #       stdout - standard output
239         #       stderr - standard error.
240         #
241         #  The command-line option "-X" over-rides this option, and forces
242         #  logging to go to stdout.
243         #
244         destination = files
245
246         #
247         #  Highlight important messages sent to stderr and stdout.
248         #
249         #  Option will be ignored (disabled) if output if TERM is not
250         #  an xterm or output is not to a TTY.
251         #
252         colourise = yes
253
254         #
255         #  The logging messages for the server are appended to the
256         #  tail of this file if destination == "files"
257         #
258         #  If the server is running in debugging mode, this file is
259         #  NOT used.
260         #
261         file = ${logdir}/radius.log
262
263         #
264         #  If this configuration parameter is set, then log messages for
265         #  a *request* go to this file, rather than to radius.log.
266         #
267         #  i.e. This is a log file per request, once the server has accepted
268         #  the request as being from a valid client.  Messages that are
269         #  not associated with a request still go to radius.log.
270         #
271         #  Not all log messages in the server core have been updated to use
272         #  this new internal API.  As a result, some messages will still
273         #  go to radius.log.  Please submit patches to fix this behavior.
274         #
275         #  The file name is expanded dynamically.  You should ONLY user
276         #  server-side attributes for the filename (e.g. things you control).
277         #  Using this feature MAY also slow down the server substantially,
278         #  especially if you do thinks like SQL calls as part of the
279         #  expansion of the filename.
280         #
281         #  The name of the log file should use attributes that don't change
282         #  over the lifetime of a request, such as User-Name,
283         #  Virtual-Server or Packet-Src-IP-Address.  Otherwise, the log
284         #  messages will be distributed over multiple files.
285         #
286         #  Logging can be enabled for an individual request by a special
287         #  dynamic expansion macro:  %{debug: 1}, where the debug level
288         #  for this request is set to '1' (or 2, 3, etc.).  e.g.
289         #
290         #       ...
291         #       update control {
292         #              Tmp-String-0 = "%{debug:1}"
293         #       }
294         #       ...
295         #
296         #  The attribute that the value is assigned to is unimportant,
297         #  and should be a "throw-away" attribute with no side effects.
298         #
299         #requests = ${logdir}/radiusd-%{%{Virtual-Server}:-DEFAULT}-%Y%m%d.log
300
301         #
302         #  Which syslog facility to use, if ${destination} == "syslog"
303         #
304         #  The exact values permitted here are OS-dependent.  You probably
305         #  don't want to change this.
306         #
307         syslog_facility = daemon
308
309         #  Log the full User-Name attribute, as it was found in the request.
310         #
311         # allowed values: {no, yes}
312         #
313         stripped_names = no
314
315         #  Log authentication requests to the log file.
316         #
317         #  allowed values: {no, yes}
318         #
319         auth = no
320
321         #  Log passwords with the authentication requests.
322         #  auth_badpass  - logs password if it's rejected
323         #  auth_goodpass - logs password if it's correct
324         #
325         #  allowed values: {no, yes}
326         #
327         auth_badpass = no
328         auth_goodpass = no
329
330         #  Log additional text at the end of the "Login OK" messages.
331         #  for these to work, the "auth" and "auth_goodpass" or "auth_badpass"
332         #  configurations above have to be set to "yes".
333         #
334         #  The strings below are dynamically expanded, which means that
335         #  you can put anything you want in them.  However, note that
336         #  this expansion can be slow, and can negatively impact server
337         #  performance.
338         #
339 #       msg_goodpass = ""
340 #       msg_badpass = ""
341
342         #  The message when the user exceeds the Simultaneous-Use limit.
343         #
344         msg_denied = "You are already logged in - access denied"
345 }
346
347 #  The program to execute to do concurrency checks.
348 checkrad = ${sbindir}/checkrad
349
350 # SECURITY CONFIGURATION
351 #
352 #  There may be multiple methods of attacking on the server.  This
353 #  section holds the configuration items which minimize the impact
354 #  of those attacks
355 #
356 security {
357         #  chroot: directory where the server does "chroot".
358         #
359         #  The chroot is done very early in the process of starting
360         #  the server.  After the chroot has been performed it
361         #  switches to the "user" listed below (which MUST be
362         #  specified).  If "group" is specified, it switches to that
363         #  group, too.  Any other groups listed for the specified
364         #  "user" in "/etc/group" are also added as part of this
365         #  process.
366         #
367         #  The current working directory (chdir / cd) is left
368         #  *outside* of the chroot until all of the modules have been
369         #  initialized.  This allows the "raddb" directory to be left
370         #  outside of the chroot.  Once the modules have been
371         #  initialized, it does a "chdir" to ${logdir}.  This means
372         #  that it should be impossible to break out of the chroot.
373         #
374         #  If you are worried about security issues related to this
375         #  use of chdir, then simply ensure that the "raddb" directory
376         #  is inside of the chroot, end be sure to do "cd raddb"
377         #  BEFORE starting the server.
378         #
379         #  If the server is statically linked, then the only files
380         #  that have to exist in the chroot are ${run_dir} and
381         #  ${logdir}.  If you do the "cd raddb" as discussed above,
382         #  then the "raddb" directory has to be inside of the chroot
383         #  directory, too.
384         #
385 #       chroot = /path/to/chroot/directory
386
387         # user/group: The name (or #number) of the user/group to run radiusd as.
388         #
389         #   If these are commented out, the server will run as the
390         #   user/group that started it.  In order to change to a
391         #   different user/group, you MUST be root ( or have root
392         #   privileges ) to start the server.
393         #
394         #   We STRONGLY recommend that you run the server with as few
395         #   permissions as possible.  That is, if you're not using
396         #   shadow passwords, the user and group items below should be
397         #   set to radius'.
398         #
399         #  NOTE that some kernels refuse to setgid(group) when the
400         #  value of (unsigned)group is above 60000; don't use group
401         #  "nobody" on these systems!
402         #
403         #  On systems with shadow passwords, you might have to set
404         #  'group = shadow' for the server to be able to read the
405         #  shadow password file.  If you can authenticate users while
406         #  in debug mode, but not in daemon mode, it may be that the
407         #  debugging mode server is running as a user that can read
408         #  the shadow info, and the user listed below can not.
409         #
410         #  The server will also try to use "initgroups" to read
411         #  /etc/groups.  It will join all groups where "user" is a
412         #  member.  This can allow for some finer-grained access
413         #  controls.
414         #
415 #       user = radius
416 #       group = radius
417
418         #  Core dumps are a bad thing.  This should only be set to
419         #  'yes' if you're debugging a problem with the server.
420         #
421         #  allowed values: {no, yes}
422         #
423         allow_core_dumps = no
424
425         #
426         #  max_attributes: The maximum number of attributes
427         #  permitted in a RADIUS packet.  Packets which have MORE
428         #  than this number of attributes in them will be dropped.
429         #
430         #  If this number is set too low, then no RADIUS packets
431         #  will be accepted.
432         #
433         #  If this number is set too high, then an attacker may be
434         #  able to send a small number of packets which will cause
435         #  the server to use all available memory on the machine.
436         #
437         #  Setting this number to 0 means "allow any number of attributes"
438         max_attributes = 200
439
440         #
441         #  reject_delay: When sending an Access-Reject, it can be
442         #  delayed for a few seconds.  This may help slow down a DoS
443         #  attack.  It also helps to slow down people trying to brute-force
444         #  crack a users password.
445         #
446         #  Setting this number to 0 means "send rejects immediately"
447         #
448         #  If this number is set higher than 'cleanup_delay', then the
449         #  rejects will be sent at 'cleanup_delay' time, when the request
450         #  is deleted from the internal cache of requests.
451         #
452         #  Useful ranges: 1 to 5
453         reject_delay = 1
454
455         #
456         #  status_server: Whether or not the server will respond
457         #  to Status-Server requests.
458         #
459         #  When sent a Status-Server message, the server responds with
460         #  an Access-Accept or Accounting-Response packet.
461         #
462         #  This is mainly useful for administrators who want to "ping"
463         #  the server, without adding test users, or creating fake
464         #  accounting packets.
465         #
466         #  It's also useful when a NAS marks a RADIUS server "dead".
467         #  The NAS can periodically "ping" the server with a Status-Server
468         #  packet.  If the server responds, it must be alive, and the
469         #  NAS can start using it for real requests.
470         #
471         #  See also raddb/sites-available/status
472         #
473         status_server = yes
474
475         #
476         #  allow_vulnerable_openssl: Allow the server to start with
477         #  versions of OpenSSL known to have critical vulnerabilities.
478         #
479         #  This check is based on the version number reported by libssl
480         #  and may not reflect patches applied to libssl by
481         #  distribution maintainers.
482         #
483         allow_vulnerable_openssl = no
484 }
485
486 # PROXY CONFIGURATION
487 #
488 #  proxy_requests: Turns proxying of RADIUS requests on or off.
489 #
490 #  The server has proxying turned on by default.  If your system is NOT
491 #  set up to proxy requests to another server, then you can turn proxying
492 #  off here.  This will save a small amount of resources on the server.
493 #
494 #  If you have proxying turned off, and your configuration files say
495 #  to proxy a request, then an error message will be logged.
496 #
497 #  To disable proxying, change the "yes" to "no", and comment the
498 #  $INCLUDE line.
499 #
500 #  allowed values: {no, yes}
501 #
502 proxy_requests  = yes
503 $INCLUDE proxy.conf
504
505
506 # CLIENTS CONFIGURATION
507 #
508 #  Client configuration is defined in "clients.conf".
509 #
510
511 #  The 'clients.conf' file contains all of the information from the old
512 #  'clients' and 'naslist' configuration files.  We recommend that you
513 #  do NOT use 'client's or 'naslist', although they are still
514 #  supported.
515 #
516 #  Anything listed in 'clients.conf' will take precedence over the
517 #  information from the old-style configuration files.
518 #
519 $INCLUDE clients.conf
520
521
522 # THREAD POOL CONFIGURATION
523 #
524 #  The thread pool is a long-lived group of threads which
525 #  take turns (round-robin) handling any incoming requests.
526 #
527 #  You probably want to have a few spare threads around,
528 #  so that high-load situations can be handled immediately.  If you
529 #  don't have any spare threads, then the request handling will
530 #  be delayed while a new thread is created, and added to the pool.
531 #
532 #  You probably don't want too many spare threads around,
533 #  otherwise they'll be sitting there taking up resources, and
534 #  not doing anything productive.
535 #
536 #  The numbers given below should be adequate for most situations.
537 #
538 thread pool {
539         #  Number of servers to start initially --- should be a reasonable
540         #  ballpark figure.
541         start_servers = 5
542
543         #  Limit on the total number of servers running.
544         #
545         #  If this limit is ever reached, clients will be LOCKED OUT, so it
546         #  should NOT BE SET TOO LOW.  It is intended mainly as a brake to
547         #  keep a runaway server from taking the system with it as it spirals
548         #  down...
549         #
550         #  You may find that the server is regularly reaching the
551         #  'max_servers' number of threads, and that increasing
552         #  'max_servers' doesn't seem to make much difference.
553         #
554         #  If this is the case, then the problem is MOST LIKELY that
555         #  your back-end databases are taking too long to respond, and
556         #  are preventing the server from responding in a timely manner.
557         #
558         #  The solution is NOT do keep increasing the 'max_servers'
559         #  value, but instead to fix the underlying cause of the
560         #  problem: slow database, or 'hostname_lookups=yes'.
561         #
562         #  For more information, see 'max_request_time', above.
563         #
564         max_servers = 32
565
566         #  Server-pool size regulation.  Rather than making you guess
567         #  how many servers you need, FreeRADIUS dynamically adapts to
568         #  the load it sees, that is, it tries to maintain enough
569         #  servers to handle the current load, plus a few spare
570         #  servers to handle transient load spikes.
571         #
572         #  It does this by periodically checking how many servers are
573         #  waiting for a request.  If there are fewer than
574         #  min_spare_servers, it creates a new spare.  If there are
575         #  more than max_spare_servers, some of the spares die off.
576         #  The default values are probably OK for most sites.
577         #
578         min_spare_servers = 3
579         max_spare_servers = 10
580
581         #  When the server receives a packet, it places it onto an
582         #  internal queue, where the worker threads (configured above)
583         #  pick it up for processing.  The maximum size of that queue
584         #  is given here.
585         #
586         #  When the queue is full, any new packets will be silently
587         #  discarded.
588         #
589         #  The most common cause of the queue being full is that the
590         #  server is dependent on a slow database, and it has received
591         #  a large "spike" of traffic.  When that happens, there is
592         #  very little you can do other than make sure the server
593         #  receives less traffic, or make sure that the database can
594         #  handle the load.
595         #
596 #       max_queue_size = 65536
597
598         #  There may be memory leaks or resource allocation problems with
599         #  the server.  If so, set this value to 300 or so, so that the
600         #  resources will be cleaned up periodically.
601         #
602         #  This should only be necessary if there are serious bugs in the
603         #  server which have not yet been fixed.
604         #
605         #  '0' is a special value meaning 'infinity', or 'the servers never
606         #  exit'
607         max_requests_per_server = 0
608
609         #  Automatically limit the number of accounting requests.
610         #  This configuration item tracks how many requests per second
611         #  the server can handle.  It does this by tracking the
612         #  packets/s received by the server for processing, and
613         #  comparing that to the packets/s handled by the child
614         #  threads.
615         #
616
617         #  If the received PPS is larger than the processed PPS, *and*
618         #  the queue is more than half full, then new accounting
619         #  requests are probabilistically discarded.  This lowers the
620         #  number of packets that the server needs to process.  Over
621         #  time, the server will "catch up" with the traffic.
622         #
623         #  Throwing away accounting packets is usually safe and low
624         #  impact.  The NAS will retransmit them in a few seconds, or
625         #  even a few minutes.  Vendors should read RFC 5080 Section 2.2.1
626         #  to see how accounting packets should be retransmitted.  Using
627         #  any other method is likely to cause network meltdowns.
628         #
629         auto_limit_acct = no
630 }
631
632 # MODULE CONFIGURATION
633 #
634 #  The names and configuration of each module is located in this section.
635 #
636 #  After the modules are defined here, they may be referred to by name,
637 #  in other sections of this configuration file.
638 #
639 modules {
640         #
641         #  Each module has a configuration as follows:
642         #
643         #       name [ instance ] {
644         #               config_item = value
645         #               ...
646         #       }
647         #
648         #  The 'name' is used to load the 'rlm_name' library
649         #  which implements the functionality of the module.
650         #
651         #  The 'instance' is optional.  To have two different instances
652         #  of a module, it first must be referred to by 'name'.
653         #  The different copies of the module are then created by
654         #  inventing two 'instance' names, e.g. 'instance1' and 'instance2'
655         #
656         #  The instance names can then be used in later configuration
657         #  INSTEAD of the original 'name'.  See the 'radutmp' configuration
658         #  for an example.
659         #
660
661         #
662         #  As of 3.0, modules are in mods-enabled/.  Files matching
663         #  the regex /[a-zA-Z0-9_.]+/ are loaded.  The modules are
664         #  initialized ONLY if they are referenced in a processing
665         #  section, such as authorize, authenticate, accounting,
666         #  pre/post-proxy, etc.
667         #
668         $INCLUDE mods-enabled/
669 }
670
671 # Instantiation
672 #
673 #  This section orders the loading of the modules.  Modules
674 #  listed here will get loaded BEFORE the later sections like
675 #  authorize, authenticate, etc. get examined.
676 #
677 #  This section is not strictly needed.  When a section like
678 #  authorize refers to a module, it's automatically loaded and
679 #  initialized.  However, some modules may not be listed in any
680 #  of the following sections, so they can be listed here.
681 #
682 #  Also, listing modules here ensures that you have control over
683 #  the order in which they are initialized.  If one module needs
684 #  something defined by another module, you can list them in order
685 #  here, and ensure that the configuration will be OK.
686 #
687 #  After the modules listed here have been loaded, all of the modules
688 #  in the "mods-enabled" directory will be loaded.  Loading the
689 #  "mods-enabled" directory means that unlike Version 2, you usually
690 #  don't need to list modules here.
691 #
692 instantiate {
693         #
694         # We list the counter module here so that it registers
695         # the check_name attribute before any module which sets
696         # it
697 #       daily
698
699         # subsections here can be thought of as "virtual" modules.
700         #
701         # e.g. If you have two redundant SQL servers, and you want to
702         # use them in the authorize and accounting sections, you could
703         # place a "redundant" block in each section, containing the
704         # exact same text.  Or, you could uncomment the following
705         # lines, and list "redundant_sql" in the authorize and
706         # accounting sections.
707         #
708         #redundant redundant_sql {
709         #       sql1
710         #       sql2
711         #}
712 }
713
714 ######################################################################
715 #
716 #  Policies are virtual modules, similar to those defined in the
717 #  "instantiate" section above.
718 #
719 #  Defining a policy in one of the policy.d files means that it can be
720 #  referenced in multiple places as a *name*, rather than as a series of
721 #  conditions to match, and actions to take.
722 #
723 #  Policies are something like subroutines in a normal language, but
724 #  they cannot be called recursively. They MUST be defined in order.
725 #  If policy A calls policy B, then B MUST be defined before A.
726 #
727 ######################################################################
728 policy {
729         $INCLUDE policy.d/
730 }
731
732 ######################################################################
733 #
734 #  SNMP notifications.  Uncomment the following line to enable
735 #  snmptraps.  Note that you MUST also configure the full path
736 #  to the "snmptrap" command in the "trigger.conf" file.
737 #
738 #$INCLUDE trigger.conf
739
740 ######################################################################
741 #
742 #       Load virtual servers.
743 #
744 #       This next $INCLUDE line loads files in the directory that
745 #       match the regular expression: /[a-zA-Z0-9_.]+/
746 #
747 #       It allows you to define new virtual servers simply by placing
748 #       a file into the raddb/sites-enabled/ directory.
749 #
750 $INCLUDE sites-enabled/
751
752 ######################################################################
753 #
754 #       All of the other configuration sections like "authorize {}",
755 #       "authenticate {}", "accounting {}", have been moved to the
756 #       the file:
757 #
758 #               raddb/sites-available/default
759 #
760 #       This is the "default" virtual server that has the same
761 #       configuration as in version 1.0.x and 1.1.x.  The default
762 #       installation enables this virtual server.  You should
763 #       edit it to create policies for your local site.
764 #
765 #       For more documentation on virtual servers, see:
766 #
767 #               raddb/sites-available/README
768 #
769 ######################################################################