Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

radiusd.conf 30KB

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