You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

clients.conf 6.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  1. # -*- text -*-
  2. ##
  3. ## clients.conf -- client configuration directives
  4. ##
  5. ## $Id: 729c15d3e84c6cdb54a5f3652d93a2d7f8725fd4 $
  6. #######################################################################
  7. #
  8. # Define RADIUS clients (usually a NAS, Access Point, etc.).
  9. #
  10. # Defines a RADIUS client.
  11. #
  12. # '127.0.0.1' is another name for 'localhost'. It is enabled by default,
  13. # to allow testing of the server after an initial installation. If you
  14. # are not going to be permitting RADIUS queries from localhost, we suggest
  15. # that you delete, or comment out, this entry.
  16. #
  17. #
  18. #
  19. # Each client has a "short name" that is used to distinguish it from
  20. # other clients.
  21. #
  22. # In version 1.x, the string after the word "client" was the IP
  23. # address of the client. In 2.0, the IP address is configured via
  24. # the "ipaddr" or "ipv6addr" fields. For compatibility, the 1.x
  25. # format is still accepted.
  26. #
  27. client localhost {
  28. # Allowed values are:
  29. # dotted quad (1.2.3.4)
  30. # hostname (radius.example.com)
  31. ipaddr = 127.0.0.1
  32. # OR, you can use an IPv6 address, but not both
  33. # at the same time.
  34. # ipv6addr = :: # any. ::1 == localhost
  35. #
  36. # A note on DNS: We STRONGLY recommend using IP addresses
  37. # rather than host names. Using host names means that the
  38. # server will do DNS lookups when it starts, making it
  39. # dependent on DNS. i.e. If anything goes wrong with DNS,
  40. # the server won't start!
  41. #
  42. # The server also looks up the IP address from DNS once, and
  43. # only once, when it starts. If the DNS record is later
  44. # updated, the server WILL NOT see that update.
  45. #
  46. # One client definition can be applied to an entire network.
  47. # e.g. 127/8 should be defined with "ipaddr = 127.0.0.0" and
  48. # "netmask = 8"
  49. #
  50. # If not specified, the default netmask is 32 (i.e. /32)
  51. #
  52. # We do NOT recommend using anything other than 32. There
  53. # are usually other, better ways to achieve the same goal.
  54. # Using netmasks of other than 32 can cause security issues.
  55. #
  56. # You can specify overlapping networks (127/8 and 127.0/16)
  57. # In that case, the smallest possible network will be used
  58. # as the "best match" for the client.
  59. #
  60. # Clients can also be defined dynamically at run time, based
  61. # on any criteria. e.g. SQL lookups, keying off of NAS-Identifier,
  62. # etc.
  63. # See raddb/sites-available/dynamic-clients for details.
  64. #
  65. # netmask = 32
  66. #
  67. # The shared secret use to "encrypt" and "sign" packets between
  68. # the NAS and FreeRADIUS. You MUST change this secret from the
  69. # default, otherwise it's not a secret any more!
  70. #
  71. # The secret can be any string, up to 8k characters in length.
  72. #
  73. # Control codes can be entered vi octal encoding,
  74. # e.g. "\101\102" == "AB"
  75. # Quotation marks can be entered by escaping them,
  76. # e.g. "foo\"bar"
  77. #
  78. # A note on security: The security of the RADIUS protocol
  79. # depends COMPLETELY on this secret! We recommend using a
  80. # shared secret that is composed of:
  81. #
  82. # upper case letters
  83. # lower case letters
  84. # numbers
  85. #
  86. # And is at LEAST 8 characters long, preferably 16 characters in
  87. # length. The secret MUST be random, and should not be words,
  88. # phrase, or anything else that is recognizable.
  89. #
  90. # The default secret below is only for testing, and should
  91. # not be used in any real environment.
  92. #
  93. secret = testing123
  94. #
  95. # Old-style clients do not send a Message-Authenticator
  96. # in an Access-Request. RFC 5080 suggests that all clients
  97. # SHOULD include it in an Access-Request. The configuration
  98. # item below allows the server to require it. If a client
  99. # is required to include a Message-Authenticator and it does
  100. # not, then the packet will be silently discarded.
  101. #
  102. # allowed values: yes, no
  103. require_message_authenticator = no
  104. #
  105. # The short name is used as an alias for the fully qualified
  106. # domain name, or the IP address.
  107. #
  108. # It is accepted for compatibility with 1.x, but it is no
  109. # longer necessary in 2.0
  110. #
  111. # shortname = localhost
  112. #
  113. # the following three fields are optional, but may be used by
  114. # checkrad.pl for simultaneous use checks
  115. #
  116. #
  117. # The nastype tells 'checkrad.pl' which NAS-specific method to
  118. # use to query the NAS for simultaneous use.
  119. #
  120. # Permitted NAS types are:
  121. #
  122. # cisco
  123. # computone
  124. # livingston
  125. # juniper
  126. # max40xx
  127. # multitech
  128. # netserver
  129. # pathras
  130. # patton
  131. # portslave
  132. # tc
  133. # usrhiper
  134. # other # for all other types
  135. #
  136. nastype = other # localhost isn't usually a NAS...
  137. #
  138. # The following two configurations are for future use.
  139. # The 'naspasswd' file is currently used to store the NAS
  140. # login name and password, which is used by checkrad.pl
  141. # when querying the NAS for simultaneous use.
  142. #
  143. # login = !root
  144. # password = someadminpas
  145. #
  146. # As of 2.0, clients can also be tied to a virtual server.
  147. # This is done by setting the "virtual_server" configuration
  148. # item, as in the example below.
  149. #
  150. # virtual_server = home1
  151. #
  152. # A pointer to the "home_server_pool" OR a "home_server"
  153. # section that contains the CoA configuration for this
  154. # client. For an example of a coa home server or pool,
  155. # see raddb/sites-available/originate-coa
  156. # coa_server = coa
  157. }
  158. # IPv6 Client
  159. #client ::1 {
  160. # secret = testing123
  161. # shortname = localhost
  162. #}
  163. #
  164. # All IPv6 Site-local clients
  165. #client fe80::/16 {
  166. # secret = testing123
  167. # shortname = localhost
  168. #}
  169. #client some.host.org {
  170. # secret = testing123
  171. # shortname = localhost
  172. #}
  173. #
  174. # You can now specify one secret for a network of clients.
  175. # When a client request comes in, the BEST match is chosen.
  176. # i.e. The entry from the smallest possible network.
  177. #
  178. #client 192.168.0.0/24 {
  179. # secret = testing123-1
  180. # shortname = private-network-1
  181. #}
  182. #
  183. #client 192.168.0.0/16 {
  184. # secret = testing123-2
  185. # shortname = private-network-2
  186. #}
  187. #client 10.10.10.10 {
  188. # # secret and password are mapped through the "secrets" file.
  189. # secret = testing123
  190. # shortname = liv1
  191. # # the following three fields are optional, but may be used by
  192. # # checkrad.pl for simultaneous usage checks
  193. # nastype = livingston
  194. # login = !root
  195. # password = someadminpas
  196. #}
  197. #######################################################################
  198. #
  199. # Per-socket client lists. The configuration entries are exactly
  200. # the same as above, but they are nested inside of a section.
  201. #
  202. # You can have as many per-socket client lists as you have "listen"
  203. # sections, or you can re-use a list among multiple "listen" sections.
  204. #
  205. # Un-comment this section, and edit a "listen" section to add:
  206. # "clients = per_socket_clients". That IP address/port combination
  207. # will then accept ONLY the clients listed in this section.
  208. #
  209. #clients per_socket_clients {
  210. # client 192.168.3.4 {
  211. # secret = testing123
  212. # }
  213. #}
  214. client everyone {
  215. ipaddr = 0.0.0.0
  216. netmask = 0
  217. secret = testing123
  218. }