Advertisement
Guest User

Untitled

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