radiusd.conf 26 KB

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