New build path variable
[freeradius.git] / raddb / radrelay.conf.in
1 # -*- text -*-
2 ##
3 ## radrelay.conf  -- FreeRADIUS server configuration file.
4 ##
5 ##      Use with: radiusd -n radrelay
6 ##
7 ##      http://www.freeradius.org/
8 ##      $Id$
9 ##
10
11 ######################################################################
12 #
13 #       This file is a sample configuration that replaces the old
14 #       "radrelay" program.  It is a *minimal* configuration that
15 #       does little more than read the detail file, and proxy the
16 #       packets to a home server.  If you need it to do more than
17 #       just replace radrelay, you will need to add additional
18 #       configuration.
19 #
20 #       See raddb/sites-available/copy-acct-to-home-server for a
21 #       more complete example.  That example is intended to be run
22 #       as part of a larger radius configuration, where the server
23 #       also listens on ports 1812, etc.  The example given here
24 #       is a minimal example that has ONLY radrelay functionality.
25 #
26 #       See radiusd.conf for a complete description of the configuration
27 #       parameters used here.
28 #
29 ######################################################################
30
31 prefix = @prefix@
32 exec_prefix = @exec_prefix@
33 sysconfdir = @sysconfdir@
34 localstatedir = @localstatedir@
35 sbindir = @sbindir@
36 logdir = @logdir@
37 raddbdir = @raddbdir@
38 radacctdir = @radacctdir@
39
40 #
41 #  name of the running server.  See also the "-n" command-line option.
42 #
43 name = radrelay
44
45 #
46 #  Generic configuration
47 #
48 confdir = ${raddbdir}
49 run_dir = ${localstatedir}/run/${name}
50 libdir = @libdir@
51 pidfile = ${run_dir}/${name}.pid
52
53 #
54 #  Request handling configuration
55 #
56 max_request_time = 30
57 cleanup_delay = 5
58 max_requests = 65536
59
60 #
61 #  Logging section.
62 #
63 log {
64         destination = files
65         file = ${logdir}/${name}.log
66 }
67
68 #
69 #  Security configuration
70 #
71 security {
72         max_attributes = 200
73
74         # reject_delay && status_server don't apply when we are
75         # only reading accounting packets from the detail file
76 }
77
78 #
79 #  If you need more modules, add them here.
80 #
81 modules {
82         $INCLUDE ${confdir}/modules/always
83 }
84
85 #
86 #  If you need to instantiate modules, add them here.
87 #
88 instantiate {
89 }
90
91 #
92 #  Configuration of home servers, etc.
93 #
94 proxy_requests  = yes
95
96 #
97 #  See proxy.conf for additional home server configuration.
98 #
99 home_server home1 {
100         type = acct
101
102         #
103         #  This directive replaces the "-r" command-line option
104         #  in radrelay
105         #
106         ipaddr = 192.168.10.20
107
108         port = 1812
109
110         #
111         #  This directive replaces the "-i" command-line option
112         #  in radrelay
113         #
114 #       src_ipaddr = 192.168.1.1
115
116         #
117         #  This directive replaces the "-s", "-S", and "-n" command-line
118         #  options in radrelay
119         #
120         secret = testing123
121 }
122
123 #
124 #  List one or more home servers here for fail-over, load-balancing, etc.
125 #
126 home_server_pool radrelay {
127         type = fail-over
128         home_server = home1
129 }
130
131 #
132 #  A dummy realm.
133 #
134 realm radrelay {
135         acct_pool = radrelay
136 }
137
138 #
139 #  Read the detail file.
140 #
141 listen {
142         type = detail
143
144         #
145         #  The "radacctdir" parameter below replaces the "-a" command-
146         #  line option in radrelay.  The "detail" parameter replaces
147         #  the "detailfile" command-line option in radrelay
148         #
149         filename = ${radacctdir}/detail
150         load_factor = 90
151 }
152
153 #
154 #  See also raddb/sites-available/copy-acct-to-home-server
155 #  for additional description.
156 #
157 preacct {
158         #
159         #  Proxy the packet using the given realm.
160         #  Note that we do not use the realm for anything else such
161         #  as prefix/suffix stripping or comparisons.
162         #
163         update control {
164                 Proxy-To-Realm := "radrelay"
165         }
166 }