Use postgresl style comments
[freeradius.git] / raddb / proxy.conf
1 # -*- text -*-
2 ##
3 ## proxy.conf -- proxy radius and realm configuration directives
4 ##
5 ##      $Id$
6
7 #######################################################################
8 #
9 #  Proxy server configuration
10 #
11 #  This entry controls the servers behaviour towards ALL other servers
12 #  to which it sends proxy requests.
13 #
14 proxy server {
15         #
16         #  Note that as of 2.0, the "synchronous", "retry_delay",
17         #  "retry_count", and "dead_time" have all been deprecated.
18         #  For backwards compatibility, they are are still accepted
19         #  by the server, but they ONLY apply to the old-style realm
20         #  configuration.  i.e. realms with "authhost" and/or "accthost"
21         #  entries.
22         #
23         #  i.e. "retry_delay" and "retry_count" have been replaced
24         #  with per-home-server configuration.  See the "home_server"
25         #  example below for details.
26         #
27         #  i.e. "dead_time" has been replaced with a per-home-server
28         #  "revive_interval".  We strongly recommend that this not
29         #  be used, however.  The new method is much better.
30
31         #
32         #  In 2.0, the server is always "synchronous", and setting
33         #  "synchronous = no" is impossible.  This simplifies the
34         #  server and increases the stability of the network.
35         #
36         #  If you need to set "synchronous = no", please send a
37         #  message to the list <freeradius-users@lists.freeradius.org>
38         #  explaining why this feature is vital for your network.
39
40         #
41         #  If a realm exists, but there are no live home servers for
42         #  it, we can fall back to using the "DEFAULT" realm.  This is
43         #  most useful for accounting, where the server can proxy
44         #  accounting requests to home servers, but if they're down,
45         #  use a DEFAULT realm that is LOCAL (i.e. accthost = LOCAL),
46         #  and then store the packets in the "detail" file.  That data
47         #  can be later proxied to the home servers by radrelay, when
48         #  those home servers come back up again.       
49
50         #  Setting this to "yes" may have issues for authentication.
51         #  i.e. If you are proxying for two different ISP's, and then
52         #  act as a general dial-up for Gric.  If one of the first two
53         #  ISP's has their RADIUS server go down, you do NOT want to
54         #  proxy those requests to GRIC.  Instead, you probably want
55         #  to just drop the requests on the floor.  In that case, set
56         #  this value to 'no'.
57         #
58         #  allowed values: {yes, no}
59         #
60         default_fallback = no
61
62 }
63
64 #######################################################################
65 #
66 #  Configuration for the proxy realms.
67 #
68 #  As of 2.0. the old-style "realms" file is deprecated, and is not
69 #  used by FreeRADIUS.
70 #
71 #  As of 2.0, the "realm" configuration has changed.  Instead of
72 #  specifying "authhost" and "accthost" in a realm section, the home
73 #  servers are specified seperately in a "home_server" section.  For
74 #  backwards compatibility, you can still use the "authhost" and
75 #  "accthost" directives.  If you only have one home server for a
76 #  realm, it is easier to use the old-style configuration.
77 #
78 #  However, if you have multiple servers for a realm, we STRONGLY
79 #  suggest moving to the new-style configuration.
80 #
81 #
82 #  Load-balancing and failover between home servers is handled via
83 #  a "home_server_pool" section.
84 #
85 #  Finally, The "realm" section defines the realm, some options, and
86 #  indicates which server pool should be used for the realm.
87 #
88 #  This change means that simple configurations now require multiple
89 #  ssections to define a realm.  However, complex configurations
90 #  are much simpler than before, as multiple realms can share the same
91 #  server pool.
92 #
93 #  That is, realms point to server pools, and server pools point to
94 #  home servers.  Multiple realms can point to one server pool.  One
95 #  server pool can point to multiple home servers.  Each home server
96 #  can appear in one or more pools.
97 #
98
99 ######################################################################
100 #
101 #  This section defines a "Home Server" which is another RADIUS
102 #  server that gets sent proxied requests.  In earlier versions
103 #  of FreeRADIUS, home servers were defined in "realm" sections,
104 #  which was awkward.  In 2.0, they have been made independent
105 #  from realms, which is better for a number of reasons.
106 #
107 home_server localhost {
108         #
109         #  Home servers can be sent Access-Request packets
110         #  or Accounting-Request packets.
111         #
112         #  Allowed values are:
113         #       auth      - Handles Access-Request packets
114         #       acct      - Handles Accounting-Request packets
115         #       auth+acct - Handles Access-Request packets at "port",
116         #                   and Accounting-Request packets at "port + 1"
117         #       coa       - Handles CoA-Request and Disconnect-Request packets.
118         #                   See also raddb/sites-available/originate-coa
119         type = auth
120
121         #
122         #  Configure ONE OF the following entries:
123         #
124         #       IPv4 address
125         #
126         ipaddr = 127.0.0.1
127
128         #       OR IPv6 address
129         # ipv6addr = ::1
130
131         #       OR virtual server       
132         # virtual_server = foo
133
134         #       Note that while both ipaddr and ipv6addr will accept
135         #       both addresses and host names, we do NOT recommend
136         #       using host names.  When you specify a host name, the
137         #       server has to do a DNS lookup to find the IP address
138         #       of the home server.  If the DNS server is slow or
139         #       unresponsive, it means that FreeRADIUS will NOT be
140         #       able to determine the address, and will therefore NOT
141         #       start.
142         #
143         #       Also, the mapping of host name to address is done ONCE
144         #       when the server starts.  If DNS is later updated to
145         #       change the address, FreeRADIUS will NOT discover that
146         #       until after a re-start, or a HUP.
147         #
148         #       If you specify a virtual_server here, then requests
149         #       will be proxied internally to that virtual server.
150         #       These requests CANNOT be proxied again, however.  The
151         #       intent is to have the local server handle packets
152         #       when all home servers are dead.
153         #
154         #       Requests proxied to a virtual server will be passed
155         #       through the pre-proxy and post-proxy sections, just
156         #       like any other request.  See also the sample "realm"
157         #       configuration, below.
158         #
159         #       None of the rest of the home_server configuration is used
160         #       for the "virtual_server" configuration.
161
162         #
163         #  The port to which packets are sent.
164         #
165         #  Usually 1812 for type "auth", and  1813 for type "acct".
166         #  Older servers may use 1645 and 1646.
167         #  Use 3799 for type "coa"
168         #
169         port = 1812
170
171         #
172         #  The shared secret use to "encrypt" and "sign" packets between
173         #  FreeRADIUS and the home server.
174         #
175         #  The secret can be any string, up to 8k characters in length.
176         #
177         #  Control codes can be entered vi octal encoding,
178         #       e.g. "\101\102" == "AB"
179         #  Quotation marks can be entered by escaping them,
180         #       e.g. "foo\"bar"
181         #  Spaces or other "special" characters can be entered
182         #  by putting quotes around the string.
183         #       e.g. "foo bar"
184         #            "foo;bar"
185         #
186         secret = testing123
187
188         ############################################################
189         #
190         #  The rest of the configuration items listed here are optional,
191         #  and do not have to appear in every home server definition.
192         #
193         ############################################################
194
195         #
196         #  You can optionally specify the source IP address used when
197         #  proxying requests to this home server.  When the src_ipaddr
198         #  it set, the server will automatically create a proxy
199         #  listener for that IP address.
200         #
201         #  If you specify this field for one home server, you will
202         #  likely need to specify it for ALL home servers.
203         #
204         #  If you don't care about the source IP address, leave this
205         #  entry commented.
206         #
207 #       src_ipaddr = 127.0.0.1
208
209         #  RFC 5080 suggests that all clients SHOULD include it in an
210         #  Access-Request.  The configuration item below tells the
211         #  proxying server (i.e. this one) whether or not the home
212         #  server requires a Message-Authenticator attribute.  If it
213         #  is required (value set to "yes"), then all Access-Request
214         #  packets sent to that home server will have a
215         #  Message-Authenticator attribute.
216         #
217         #  allowed values: yes, no
218         require_message_authenticator = no
219
220         #
221         #  If the home server doesn't respond to the request within
222         #  this time, this server will consider the request dead, and
223         #  respond to the NAS with an Access-Reject.
224         #
225         #  If NO responses are received to any requests sent within this
226         #  time period, the home server will be marked "zombie", as below.
227         #
228         #  Useful range of values: 5 to 60
229         response_window = 20
230
231         #
232         #  If the home server does not respond to ANY packets for
233         #  a certain time, consider it dead.  This time period is
234         #  called the "zombie" period, because the server is neither
235         #  alive nor dead.
236         #
237         #  If "status_check" below is something other than "none", then
238         #  the server will start sending status checks at the start of
239         #  the zombie period.  It will continue sending status checks
240         #  until the home server is marked "alive".
241         #
242         #  Useful range of values: 20 to 120
243         zombie_period = 40
244
245         ############################################################
246         #
247         #  As of 2.0, FreeRADIUS supports RADIUS layer "status
248         #  checks".  These are used by a proxy server to see if a home
249         #  server is alive.
250         #
251         #  These status packets are sent ONLY if the proxying server
252         #  believes that the home server is dead.  They are NOT sent
253         #  if the proxying server believes that the home server is
254         #  alive.  They are NOT sent if the proxying server is not
255         #  proxying packets.
256         #
257         #  If the home server responds to the status check packet,
258         #  then it is marked alive again, and is returned to use.
259         #
260         ############################################################
261
262         #
263         #  Some home servers do not support status checks via the
264         #  Status-Server packet.  Others may not have a "test" user
265         #  configured that can be used to query the server, to see if
266         #  it is alive.  For those servers, we have NO WAY of knowing
267         #  when it becomes alive again.  Therefore, after the server
268         #  has been marked dead, we wait a period of time, and mark
269         #  it alive again, in the hope that it has come back to
270         #  life.
271         #
272         #  If it has NOT come back to life, then FreeRADIUS will wait
273         #  for "zombie_period" before marking it dead again.  During
274         #  the "zombie_period", ALL AUTHENTICATIONS WILL FAIL, because
275         #  the home server is still dead.  There is NOTHING that can
276         #  be done about this, other than to enable the status checks,
277         #  as documented below.
278         #
279         #  e.g. if "zombie_period" is 40 seconds, and "revive_interval"
280         #  is 300 seconds, the for 40 seconds out of every 340, or about
281         #  10% of the time, all authentications will fail.
282         #
283         #  If the "zombie_period" and "revive_interval" configurations
284         #  are set smaller, than it is possible for up to 50% of
285         #  authentications to fail.
286         #
287         #  As a result, we recommend enabling status checks, and
288         #  we do NOT recommend using "revive_interval".
289         #
290         #  The "revive_interval" is used ONLY if the "status_check"
291         #  entry below is not "none".  Otherwise, it will not be used,
292         #  and should be deleted.
293         #
294         #  Useful range of values: 60 to 3600
295         revive_interval = 120
296
297         #
298         #  The proxying server (i.e. this one) can do periodic status
299         #  checks to see if a dead home server has come back alive.
300         #
301         #  If set to "none", then the other configuration items listed
302         #  below are not used, and the "revive_interval" time is used
303         #  instead.
304         #
305         #  If set to "status-server", the Status-Server packets are
306         #  sent.  Many RADIUS servers support Status-Server.  If a
307         #  server does not support it, please contact the server
308         #  vendor and request that they add it.
309         #
310         #  If set to "request", then Access-Request, or Accounting-Request
311         #  packets are sent, depending on the "type" entry above (auth/acct).
312         #  
313         #  Allowed values: none, status-server, request
314         status_check = status-server
315
316         #
317         #  If the home server does not support Status-Server packets,
318         #  then the server can still send Access-Request or
319         #  Accounting-Request packets, with a pre-defined user name.
320         #
321         #  This practice is NOT recommended, as it may potentially let
322         #  users gain network access by using these "test" accounts!
323         #
324         #  If it is used, we recommend that the home server ALWAYS
325         #  respond to these Access-Request status checks with
326         #  Access-Reject.  The status check just needs an answer, it
327         #  does not need an Access-Accept.
328         #
329         #  For Accounting-Request status checks, only the username
330         #  needs to be set.  The rest of the accounting attribute are
331         #  set to default values.  The home server that receives these
332         #  accounting packets SHOULD NOT treat them like normal user
333         #  accounting packets.  i.e It should probably NOT log them to
334         #  a database.
335         #
336         # username = "test_user_please_reject_me"
337         # password = "this is really secret"
338
339         #
340         #  Configure the interval between sending status check packets.
341         #
342         #  Setting it too low increases the probability of spurious
343         #  fail-over and fallback attempts.
344         #
345         #  Useful range of values: 6 to 120
346         check_interval = 30
347
348         #
349         #  Configure the number of status checks in a row that the
350         #  home server needs to respond to before it is marked alive.
351         #
352         #  If you want to mark a home server as alive after a short
353         #  time period of being responsive, it is best to use a small
354         #  "check_interval", and a large value for
355         #  "num_answers_to_alive".  Using a long "check_interval" and
356         #  a small number for "num_answers_to_alive" increases the
357         #  probability of spurious fail-over and fallback attempts.
358         #
359         #  Useful range of values: 3 to 10
360         num_answers_to_alive = 3
361
362         #
363         #  The configuration items in the next sub-section are used ONLY
364         #  when "type = coa".  It is ignored for all other type of home
365         #  servers.
366         #
367         #  See RFC 5080 for the definitions of the following terms.
368         #  RAND is a function (internal to FreeRADIUS) returning
369         #  random numbers between -0.1 and +0.1
370         #
371         #  First Re-transmit occurs after:
372         #
373         #        RT = IRT + RAND*IRT
374         #
375         #  Subsequent Re-transmits occur after:
376         #
377         #       RT = 2 * RTprev + RAND * RTprev
378         #
379         #  Re-trasnmits are capped at:
380         #
381         #       if (MRT && (RT > MRT)) RT = MRT + RAND * MRT
382         #
383         #  For a maximum number of attempts: MRC
384         #
385         #  For a maximum (total) period of time: MRD.
386         #
387         coa {
388                 # Initial retransmit interval: 1..5
389                 irt = 2
390
391                 # Maximum Retransmit Timeout: 1..30 (0 == no maximum)
392                 mrt = 16
393
394                 # Maximum Retransmit Count: 1..20 (0 == retransmit forever)
395                 mrc = 5
396
397                 # Maximum Retransmit Duration: 5..60
398                 mrd = 30
399         }
400 }
401
402 # Sample virtual home server.
403 home_server virtual.example.com {
404             virtual_server = virtual.example.com
405 }
406
407 ######################################################################
408 #
409 #  This section defines a pool of home servers that is used
410 #  for fail-over and load-balancing.  In earlier versions of
411 #  FreeRADIUS, fail-over and load-balancing were defined per-realm.
412 #  As a result, if a server had 5 home servers, each of which served
413 #  the same 10 realms, you would need 50 "realm" entries.
414 #
415 #  In version 2.0, you would need 5 "home_server" sections,
416 #  10 'realm" sections, and one "home_server_pool" section to tie the
417 #  two together.
418 #
419 home_server_pool my_auth_failover {
420         #
421         #  The type of this pool controls how home servers are chosen.
422         #
423         #  fail-over - the request is sent to the first live
424         #       home server in the list.  i.e. If the first home server
425         #       is marked "dead", the second one is chosen, etc.
426         #
427         #  load-balance - the least busy home server is chosen,
428         #       where "least busy" is counted by taking the number of
429         #       requests sent to that home server, and subtracting the
430         #       number of responses received from that home server.
431         #
432         #       If there are two or more servers with the same low
433         #       load, then one of those servers is chosen at random.
434         #       This configuration is most similar to the old
435         #       "round-robin" method, though it is not exactly the same.
436         #
437         #       Note that load balancing does not work well with EAP,
438         #       as EAP requires packets for an EAP conversation to be
439         #       sent to the same home server.  The load balancing method
440         #       does not keep state in between packets, meaning that
441         #       EAP packets for the same conversation may be sent to
442         #       different home servers.  This will prevent EAP from
443         #       working.
444         #
445         #       For non-EAP authentication methods, and for accounting
446         #       packets, we recommend using "load-balance".  It will
447         #       ensure the highest availability for your network.
448         #
449         #  client-balance - the home server is chosen by hashing the
450         #       source IP address of the packet.  If that home server
451         #       is down, the next one in the list is used, just as
452         #       with "fail-over".
453         #
454         #       There is no way of predicting which source IP will map
455         #       to which home server.
456         #
457         #       This configuration is most useful to do simple load
458         #       balancing for EAP sessions, as the EAP session will
459         #       always be sent to the same home server.
460         #
461         #  client-port-balance - the home server is chosen by hashing
462         #       the source IP address and source port of the packet.
463         #       If that home server is down, the next one in the list
464         #       is used, just as with "fail-over".
465         #
466         #       This method provides slightly better load balancing
467         #       for EAP sessions than "client-balance".  However, it
468         #       also means that authentication and accounting packets
469         #       for the same session MAY go to different home servers.
470         #
471         #  keyed-balance - the home server is chosen by hashing (FNV)
472         #       the contents of the Load-Balance-Key attribute from the
473         #       control items.  The  request is then sent to home server
474         #       chosen by taking:
475         #
476         #               server = (hash % num_servers_in_pool).
477         #
478         #       If there is no Load-Balance-Key in the control items,
479         #       the load balancing method is identical to "load-balance".
480         #
481         #       For most non-EAP authentication methods, The User-Name
482         #       attribute provides a good key.  An "unlang" policy can
483         #       be used to copy the User-Name to the Load-Balance-Key
484         #       attribute.  This method may not work for EAP sessions,
485         #       as the User-Name outside of the TLS tunnel is often
486         #       static, e.g. "anonymous@realm".
487         #
488         #
489         #  The default type is fail-over.
490         type = fail-over
491
492         #
493         #  A virtual_server may be specified here.  If so, the
494         #  "pre-proxy" and "post-proxy" sections are called when
495         #  the request is proxied, and when a response is received.
496         #
497         #  This lets you have one policy for all requests that are proxied
498         #  to a home server.  This policy is completely independent of
499         #  any policies used to receive, or process the request.
500         #
501         #virtual_server = pre_post_proxy_for_pool
502
503         #
504         #  Next, a list of one or more home servers.  The names
505         #  of the home servers are NOT the hostnames, but the names
506         #  of the sections.  (e.g. home_server foo {...} has name "foo".
507         #
508         #  Note that ALL home servers listed here have to be of the same
509         #  type.  i.e. they all have to be "auth", or they all have to
510         #  be "acct", or the all have to be "auth+acct".
511         #
512         home_server = localhost
513
514         #  Additional home servers can be listed.
515         #  There is NO LIMIT to the number of home servers that can
516         #  be listed, though using more than 10 or so will become
517         #  difficult to manage.
518         #
519         # home_server = foo.example.com
520         # home_server = bar.example.com
521         # home_server = baz.example.com
522         # home_server = ...
523
524
525         #
526         #  If ALL home servers are dead, then this "fallback" home server
527         #  is used.  If set, it takes precedence over any realm-based
528         #  fallback, such as the DEFAULT realm.
529         #
530         #  For reasons of stability, this home server SHOULD be a virtual
531         #  server.  Otherwise, the fallback may itself be dead!
532         #
533         #fallback = virtual.example.com
534 }
535
536 ######################################################################
537 #
538 #
539 #  This section defines a new-style "realm".  Note the in version 2.0,
540 #  there are many fewer configuration items than in 1.x for a realm.
541 #
542 #  Automatic proxying is done via the "realms" module (see "man
543 #  rlm_realm").  To manually proxy the request put this entry in the
544 #  "users" file:
545
546 #
547 #
548 #DEFAULT        Proxy-To-Realm := "realm_name"
549 #
550 #
551 realm example.com {
552         #
553         #  Realms point to pools of home servers.
554 #
555         #  For authentication, the "auth_pool" configuration item
556         #  should point to a "home_server_pool" that was previously
557         #  defined.  All of the home servers in the "auth_pool" must
558         #  be of type "auth".
559         #
560         #  For accounting, the "acct_pool" configuration item
561         #  should point to a "home_server_pool" that was previously
562         #  defined.  All of the home servers in the "acct_pool" must
563         #  be of type "acct".
564         #
565         #  If you have a "home_server_pool" where all of the home servers
566         #  are of type "auth+acct", you can just use the "pool"
567         #  configuration item, instead of specifying both "auth_pool"
568         #  and "acct_pool".
569
570         auth_pool = my_auth_failover
571 #       acct_pool = acct
572
573         #
574         #  Normally, when an incoming User-Name is matched against the
575         #  realm, the realm name is "stripped" off, and the "stripped"
576         #  user name is used to perform matches.
577         #
578         #  e.g. User-Name = "bob@example.com" will result in two new
579         #  attributes being created by the "realms" module:
580         #
581         #       Stripped-User-Name = "bob"
582         #       Realm = "example.com"
583         #
584         #  The Stripped-User-Name is then used as a key in the "users"
585         #  file, for example.
586         #
587         #  If you do not want this to happen, uncomment "nostrip" below.
588         #
589         # nostrip
590
591         #  There are no more configuration entries for a realm.
592 }
593
594
595 #
596 #  This is a sample entry for iPass.
597 #  Note that you have to define "ipass_auth_pool" and
598 #  "ipass_acct_pool", along with home_servers for them, too.
599 #
600 #realm IPASS {
601 #       nostrip
602 #
603 #       auth_pool = ipass_auth_pool
604 #       acct_pool = ipass_acct_pool
605 #}
606
607 #
608 #  This realm is used mainly to cancel proxying.  You can have
609 #  the "realm suffix" module configured to proxy all requests for
610 #  a realm, and then later cancel the proxying, based on other
611 #  configuration.
612 #
613 #  For example, you want to terminate PEAP or EAP-TTLS locally,
614 #  you can add the following to the "users" file:
615 #
616 #  DEFAULT EAP-Type == PEAP, Proxy-To-Realm := LOCAL
617 #
618 realm LOCAL {
619         #  If we do not specify a server pool, the realm is LOCAL, and
620         #  requests are not proxied to it.
621 }
622
623 #
624 #  This realm is for requests which don't have an explicit realm
625 #  prefix or suffix.  User names like "bob" will match this one.
626 #
627 #realm NULL {
628 #       authhost        = radius.company.com:1600
629 #       accthost        = radius.company.com:1601
630 #       secret          = testing123
631 #}
632
633 #
634 #  This realm is for ALL OTHER requests.
635 #
636 #realm DEFAULT {
637 #       authhost        = radius.company.com:1600
638 #       accthost        = radius.company.com:1601
639 #       secret          = testing123
640 #}
641
642
643 #  This realm "proxies" requests internally to a virtual server.
644 #  The pre-proxy and post-proxy sections are run just as with any
645 #  other kind of home server.  The virtual server then receives
646 #  the request, and replies, just as with any other packet.
647 #
648 #  Once proxied internally like this, the request CANNOT be proxied
649 #  internally or externally.
650 #
651 #realm virtual.example.com {
652 #       virtual_server = virtual.example.com
653 #}
654 #
655
656 #
657 #  Regular expressions may also be used as realm names.  If these are used,
658 #  then the "find matching realm" process is as follows:
659 #
660 #    1) Look for a non-regex realm with an *exact* match for the name.
661 #       If found, it is used in preference to any regex matching realm.
662 #
663 #    2) Look for a regex realm, in the order that they are listed
664 #       in the configuration files.  Any regex match is performed in
665 #       a case-insensitive fashion.
666 #
667 #    3) If no realm is found, return the DEFAULT realm, if any.
668 #
669 #  The order of the realms matters in step (2).  For example, defining
670 #  two realms "*.example.com" and "*.test.example.com" will result in
671 #  the second realm NEVER matching.  This is because all of the realms
672 #  which match the second regex also match the first one.  Since the
673 #  first regex matches, it is returned.
674 #
675 #  The solution is to list the realms in the opposite order,. e.g.
676 #  "*.test.example.com", followed by "*.example.com".
677 #
678 #
679 #  Some helpful rules:
680 #
681 #   - always place a '~' character at the start of the realm name.
682 #     This signifies that it is a regex match, and not an exact match
683 #     for the realm.
684 #
685 #   - place the regex in double quotes.  This helps the configuration
686 #     file parser ignore any "special" characters in the regex.
687 #     Yes, this rule is different than the normal "unlang" rules for
688 #     regular expressions.  That may be fixed in a future release.
689 #
690 #   - use two back-slashes '\\' whenever you need one backslash in the
691 #     regex.  e.g. "~*\\.example\\.com", and not "~*\.example\.com".
692 #     This is because the regex is in a double-quoted string, and normal
693 #     rules apply for double-quoted strings.
694 #
695 #   - If you are matching domain names, use two backslashes in front of
696 #     every '.' (dot or period).  This is because '.' has special meaning
697 #     in a regular expression: match any character.  If you do not do this,
698 #     then "~*.example.com" will match "fooXexampleYcom", which is likely
699 #     not what you want
700 #
701 #   - If you are matching domain names, put a '$' at the end of the regex
702 #     that matches the domain name.  This tells the regex matching code
703 #     that the realm ENDS with the domain name, so it does not match
704 #     realms with the domain name in the middle.  e.g. "~*\\.example\\.com"
705 #     will match "test.example.comFOO", which is likely not what you want.
706 #     Using "~*\\.example\\.com$" is better.
707 #
708 #  The more regex realms that are defined, the more time it takes to
709 #  process them.  You should define as few regex realms as possible
710 #  in order to maximize server performance.
711 #
712 #realm "~*\\.example\\.com$" {
713 #      authhost = LOCAL      # not strictly necessary
714 #      accthost = LOCAL      # not strictly necessary
715 #}