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