added policyOID option in trunk docs, fixed typo in several docs
[libradsec.git] / radsecproxy.conf.5
1 '\" -*- coding: us-ascii -*-
2 .if \n(.g .ds T< \\FC
3 .if \n(.g .ds T> \\F[\n[.fam]]
4 .de URL
5 \\$2 \(la\\$1\(ra\\$3
6 ..
7 .if \n(.g .mso www.tmac
8 .TH "radsecproxy.conf " 5 2008-10-06 "radsecproxy 1.2" ""
9 .SH NAME
10 radsecproxy.conf
11 \- Radsec proxy configuration file 
12 .SH DESCRIPTION
13 When the proxy server starts, it will first check the command line arguments,
14 and then read the configuration file. Normally radsecproxy will read the
15 configuration file \*(T<\fI/etc/radsecproxy.conf\fR\*(T>. The command
16 line \*(T<\fB\-c\fR\*(T> option can be used to instead read an alternate
17 file (see
18 \fBradsecproxy\fR(1)
19 for details).
20 .PP
21 If the configuration file can not be found, the proxy will exit with an
22 error message. Note that there is also an include facility so that any
23 configuration file may include other configuration files. The proxy will
24 also exit on configuration errors.
25 .SH "CONFIGURATION SYNTAX"
26 When the configuration file is processed, whitespace (spaces and tabs) are
27 generally ignored. For each line, leading and trailing whitespace are ignored.
28 A line is ignored if it is empty, only consists of whitespace, or if the first 
29 non-whitespace character is a \*(T<#\*(T>. The configuration is
30 generally case insensitive, but in some cases the option values (see below)
31 are not.
32 .PP
33 There are two types of configuration structures than can be used. The first
34 and simplest are lines of the format \fIoption value\fR. That
35 is, an option name, see below for a list of valid options, followed by
36 whitespace (at least one space or tab character), followed by a value. Note
37 that if the value contains whitespace, then it must be quoted using
38 \*(T<""\*(T> or \*(T<''\*(T>. Any whitespace
39 in front of the option or after the value will be ignored.
40 .PP
41 The other type of structure is a block. A block spans at least two lines, and
42 has the format:
43 .RS 
44 .nf
45
46 blocktype name {
47     option value
48     option value
49     ...
50 }
51 .fi
52 .RE
53
54 That is, some blocktype, see below for a list of the different block types, and
55 then enclosed in braces you have zero or more lines that each have the
56 previously described \fIoption value\fR format. Different block
57 types have different rules for which options can be specified, they are listed
58 below. The rules regarding white space, comments and quotes are as above. Hence
59 you may do things like:
60 .RS 
61 .nf
62
63 blocktype name {
64 #    option value
65     option "value with space"
66     ...
67 }
68 .fi
69 .RE
70 .PP
71 Option value characters can also be written in hex. This is done by writing the
72 character \*(T<%\*(T> followed by two hexadecimal digits. If a
73 \*(T<%\*(T> is used without two following hexadecimal digits, the
74 \*(T<%\*(T> and the following characters are used as written. If you
75 want to write a \*(T<%\*(T> and not use this decoding, you may of
76 course write \*(T<%\*(T> in hex; i.e., \*(T<%25\*(T>.
77 .PP
78 There is one special option that can be used both as a basic option and inside
79 all blocks. That is the option \*(T<include\*(T> where the value
80 specifies files to be included. The value can be a single file, or it can use
81 normal shell globbing to specify multiple files, e.g.:
82 .RS 
83 include /etc/radsecproxy.conf.d/*.conf
84 .RE
85
86 The files are sorted alphabetically. Included files are read in the order they
87 are specified, when reaching the end of a file, the next file is read. When
88 reaching the end of the last included file, the proxy returns to read the next
89 line following the \*(T<include\*(T> option. Included files may again
90 include other files.
91 .SH "BASIC OPTIONS"
92 The following basic options may be specified in the configuration file. Note
93 that blocktypes and options inside blocks are discussed later. Note that none
94 of these options are required, and indeed in many cases they are not needed.
95 Note that you should specify each at most once. The behaviour with multiple
96 occurences is undefined.
97 .TP 
98 \*(T<logLevel\*(T>
99 This option specifies the debug level. It must be set to 1, 2, 3 or 4, where 1
100 logs only serious errors, and 4 logs everything. The default is 3 which logs
101 errors, warnings and some informational messages. Note that the command line
102 option \*(T<\fB\-d\fR\*(T> overrides this.
103 .TP 
104 \*(T<logDestination\*(T>
105 This specifies where the log messages should go. By default the messages go to
106 syslog with facility \*(T<LOG_DAEMON\*(T>. Using this option you can
107 specify another syslog facility, or you may specify that logging should be to
108 a particular file, not using syslog. The value must be either a file or
109 syslog URL. The file URL is the standard one, specifying a local file that
110 should be used. For syslog, you must use the syntax:
111 \*(T<x\-syslog:///FACILITY\*(T> where \*(T<FACILITY\*(T> must
112 be one of \*(T<LOG_DAEMON\*(T>, \*(T<LOG_MAIL\*(T>,
113 \*(T<LOG_USER\*(T>, \*(T<LOG_LOCAL0\*(T>,
114 \*(T<LOG_LOCAL1\*(T>, \*(T<LOG_LOCAL2\*(T>,
115 \*(T<LOG_LOCAL3\*(T>, \*(T<LOG_LOCAL4\*(T>,
116 \*(T<LOG_LOCAL5\*(T>, \*(T<LOG_LOCAL6\*(T> or
117 \*(T<LOG_LOCAL7\*(T>. You may omit the facility from the URL to
118 specify logging to the default facility, but this is not very useful since
119 this is the default log destination. Note that this option is ignored if
120 \*(T<\fB\-f\fR\*(T> is specified on the command line.
121 .TP 
122 \*(T<listenUDP\*(T>
123 Normally the proxy will listen to the standard RADIUS UDP port
124 \*(T<1812\*(T> if configured to handle UDP clients. On most systems it
125 will do this for all of the system's IP addresses (both IPv4 and IPv6). On some
126 systems however, it may respond to only IPv4 or only IPv6. To specify an
127 alternate port you may use a value of the form \*(T<*:port\*(T> where
128 port is any valid port number. If you also want to specify a specific address
129 you can do e.g. \*(T<192.168.1.1:1812\*(T> or
130 \*(T<[2001:db8::1]:1812\*(T>. The port may be omitted if you want the
131 default one (like in these examples). These examples are equivalent to
132 \*(T<192.168.1.1\*(T> and \*(T<2001:db8::1\*(T>. Note that
133 you must use brackets around the IPv6 address if you specify port number.
134 .TP 
135 \*(T<listenTLS\*(T>
136 This is similar to the \*(T<listenUDP\*(T> option, except that it is
137 used for receiving connections from TLS clients. The default port number is
138 \*(T<2083\*(T>. Note that this option was previously called
139 \*(T<listenTCP\*(T>.
140 .TP 
141 \*(T<listenTCP\*(T>
142 This option is deprecated. \*(T<listenTLS\*(T> should be used
143 instead. In future versions \*(T<listenTCP\*(T> will be used for
144 RADIUS over TCP (not TLS encrypted).
145 .TP 
146 \*(T<listenAccountingUDP\*(T>
147 This is similar to the \*(T<listenUDP\*(T> option, except that it is
148 used for specifying port and optionally the address to receive UDP Accounting
149 messages on. 
150 .TP 
151 \*(T<sourceUDP\*(T>
152 This can be used to specify source address and/or source port that the proxy
153 will use for sending UDP client messages (e.g. Access Request).
154 .TP 
155 \*(T<sourceTLS\*(T>
156 This can be used to specify source address and/or source port that the proxy
157 will use for TLS connections. Note that this option was previously called
158 \*(T<sourceTCP\*(T>.
159 .TP 
160 \*(T<sourceTCP\*(T>
161 This option is deprecated. \*(T<sourceTLS\*(T> should be used
162 instead. In future versions \*(T<sourceTCP\*(T> will be used for
163 RADIUS over TCP (not TLS encrypted).
164 .TP 
165 \*(T<loopPrevention\*(T>
166 This can be set to \*(T<on\*(T> or \*(T<off\*(T> with
167 \*(T<off\*(T> being the default. When this is enabled, a request
168 will never be sent to a server named the same as the client it was received
169 from. I.e., the names of the client block and the server block are compared.
170 Note that this only gives limited protection against loops.
171 .TP 
172 \*(T<include\*(T>
173 This is not a normal configuration option; it can be specified multiple times.
174 It can both be used as a basic option and inside blocks. For the full
175 description, see the configuration syntax section above.
176 .SH BLOCKS
177 There are five types of blocks, they are \*(T<client\*(T>,
178 \*(T<server\*(T>, \*(T<realm\*(T>, \*(T<tls\*(T>
179 and \*(T<rewrite\*(T>. At least one instance of each of
180 \*(T<client\*(T> and \*(T<realm\*(T> is required. This is
181 necessary for the proxy to do anything useful, and it will exit if not. The
182 \*(T<tls\*(T> block is required if at least one TLS client or server
183 is configured. Note that there can be multiple blocks for each type. For each
184 type, the block names should be unique. The behaviour with multiple
185 occurences of the same name for the same block type is undefined. Also note
186 that some block option values may reference a block by name, in which case
187 the block name must be previously defined. Hence the order of the blocks may
188 be significant.
189 .SH "CLIENT BLOCK"
190 The client block is used to configure a client. That is, tell the proxy about a
191 client, and what parameters should be used for that client. The name of the
192 client block must (with one exception, see below) be either the IP address
193 (IPv4 or IPv6) of the client, an IP prefix (IPv4 or IPv6) of the form
194 IpAddress/PrefixLength, or a domain name (FQDN).
195 .PP
196 If a domain name is specified, then this will be resolved immediately to all
197 the addresses associated with the name, and the proxy will not care about any
198 possible DNS changes that might occur later. Hence there is no dependency on
199 DNS after startup.
200 .PP
201 When some client later sends a request to the proxy, the proxy will look at the
202 IP address the request comes from, and then go through all the addresses of
203 each of the configured clients (in the order they are defined), to determine
204 which (if any) of the clients this is.
205 .PP
206 In the case of TLS, the name of the client must match the FQDN or IP address in
207 the client certificate. Note that this is not required when the client name is
208 an IP prefix.
209 .PP
210 Alternatively one may use the \*(T<host\*(T> option inside a client
211 block. In that case, the value of the \*(T<host\*(T> option is used as
212 above, while the name of the block is only used as a descriptive name for the
213 administrator.
214 .PP
215 The allowed options in a client block are \*(T<host\*(T>,
216 \*(T<type\*(T>, \*(T<secret\*(T>, \*(T<tls\*(T>,
217 \*(T<certificateNameCheck\*(T>,
218 \*(T<matchCertificateAttribute\*(T>, \*(T<rewrite\*(T>,
219 \*(T<rewriteIn\*(T>, \*(T<rewriteOut\*(T> and
220 \*(T<rewriteAttribute\*(T>. We already discussed the
221 \*(T<host\*(T> option. The value of \*(T<type\*(T> must be
222 either \*(T<udp\*(T> or \*(T<tls\*(T>. The value of
223 \*(T<secret\*(T> is the shared RADIUS key used with this client. If
224 the secret contains whitespace, the value must be quoted. This option is
225 optional for TLS.
226 .PP
227 For a TLS client you may also specify the \*(T<tls\*(T> option. The
228 option value must be the name of a previously defined TLS block. If this
229 option is not specified, the TLS block with the name
230 \*(T<defaultClient\*(T> will be used if defined. If not defined, it
231 will try to use the TLS block named \*(T<default\*(T>. If the
232 specified TLS block name does not exist, or the option is not specified and
233 none of the defaults exist, the proxy will exit with an error.
234 .PP
235 For a TLS client, the option \*(T<certificateNameCheck\*(T> can be set
236 to \*(T<off\*(T>, to disable the default behaviour of matching CN or
237 SubjectAltName against the specified hostname or IP address.
238 .PP
239 Additional validation of certificate attributes can be done by use of the
240 \*(T<matchCertificateAttribute\*(T> option. Currently one can only do
241 some matching of CN and SubjectAltName. For regexp matching on CN, one can use
242 the value \*(T<CN:/regexp/\*(T>. For SubjectAltName one can only do
243 regexp matching of the URI, this is specified as
244 \*(T<SubjectAltName:URI:/regexp/\*(T>. Note that currently this option
245 can only be specified once in a client block.
246 .PP
247 The \*(T<rewrite\*(T> option is deprecated. Use
248 \*(T<rewriteIn\*(T> instead.
249 .PP
250 The \*(T<rewriteIn\*(T> option can be used to refer to a rewrite block
251 that specifies certain rewrite operations that should be performed on incoming
252 messages from the client. The rewriting is done before other processing.
253 For details, see the rewrite block text below. Similarly to
254 \*(T<tls\*(T> discussed above, if this option is not used, there is a
255 fallback to using the \*(T<rewrite\*(T> block named
256 \*(T<defaultClient\*(T> if it exists; and if not, a fallback to a
257 block named \*(T<default\*(T>.
258 .PP
259 The \*(T<rewriteOut\*(T> option is used in the same way as
260 \*(T<rewriteIn\*(T>, except that it specifies rewrite operations that
261 should be performed on outgoing messages to the client. The rewriting is done
262 after other processing. Also, there is no rewrite fallback if this option is
263 not used.
264 .PP
265 The \*(T<rewriteAttribute\*(T> option currently makes it possible to
266 specify that the User-Name attribute in a client request shall be rewritten in
267 the request sent by the proxy. The User-Name attribute is written back to the
268 original value if a matching response is later sent back to the client. The
269 value must be of the form User-Name:/regexpmatch/replacement/. Example usage:
270 .RS 
271 rewriteAttribute User-Name:/^(.*)@local$/$1@example.com/
272 .RE
273 .SH "SERVER BLOCK"
274 The server block is used to configure a server. That is, tell the proxy about a
275 server, and what parameters should be used when communicating with that server.
276 The name of the server block must (with one exception, see below) be either the
277 IP address (IPv4 or IPv6) of the server, or a domain name (FQDN). If a domain
278 name is specified, then this will be resolved immediately to all the addresses
279 associated with the name, and the proxy will not care about any possible DNS
280 changes that might occur later. Hence there is no dependency on DNS after
281 startup. If the domain name resolves to multiple addresses, then for UDP the
282 first address is used. For TLS, the proxy will loop through the addresses until
283 it can connect to one of them. In the case of TLS, the name of the server must
284 match the FQDN or IP address in the server certificate.
285 .PP
286 Alternatively one may use the \*(T<host\*(T> option inside a server
287 block. In that case, the value of the \*(T<host\*(T> option is used as
288 above, while the name of the block is only used as a descriptive name for the
289 administrator.
290 .PP
291 The allowed options in a server block are \*(T<host\*(T>,
292 \*(T<port\*(T>, \*(T<type\*(T>, \*(T<secret\*(T>,
293 \*(T<tls\*(T>, \*(T<certificateNameCheck\*(T>,
294 \*(T<matchCertificateAttribute\*(T>, \*(T<rewrite\*(T>,
295 \*(T<rewriteIn\*(T>, \*(T<rewriteOut\*(T>,
296 \*(T<statusServer\*(T>, \*(T<retryCount\*(T> and
297 \*(T<retryInterval\*(T>.
298 .PP
299 We already discussed the \*(T<host\*(T> option. The
300 \*(T<port\*(T> option allows you to specify which port number the
301 server uses. The usage of \*(T<type\*(T>, \*(T<secret\*(T>,
302 \*(T<tls\*(T>, \*(T<certificateNameCheck\*(T>,
303 \*(T<matchCertificateAttribute\*(T>, \*(T<rewrite\*(T>,
304 \*(T<rewriteIn\*(T> and \*(T<rewriteOut\*(T> are just as
305 specified for the \*(T<client block\*(T> above, except that
306 \*(T<defaultServer\*(T> (and not \*(T<defaultClient\*(T>)
307 is the fallback for the \*(T<tls\*(T>, \*(T<rewrite\*(T>
308 and \*(T<rewriteIn\*(T> options.
309 .PP
310 \*(T<statusServer\*(T> can be specified to enable the use of
311 status-server messages for this server. The value must be either
312 \*(T<on\*(T> or \*(T<off\*(T>. The default when not
313 specified, is \*(T<off\*(T>. If statusserver is enabled, the proxy
314 will during idle periods send regular status-server messages to the server
315 to verify that it is alive. This should only be enabled if the server
316 supports it.
317 .PP
318 The options \*(T<retryCount\*(T> and
319 \*(T<retryInterval\*(T> can be used to specify how many times the
320 proxy should retry sending a request and how long it should wait between each
321 retry. The defaults are 2 retries and an interval of 5s.
322 .SH "REALM BLOCK"
323 When the proxy receives an Access-Request it needs to figure out to which
324 server it should be forwarded. This is done by looking at the Username attribute
325 in the request, and matching that against the names of the defined realm blocks.
326 The proxy will match against the blocks in the order they are specified, using
327 the first match if any. If no realm matches, the proxy will simply ignore the
328 request. Each realm block specifies what the server should do when a match is
329 found. A realm block may contain none, one or multiple \*(T<server\*(T>
330 options, and similarly \*(T<accountingServer\*(T> options. There are
331 also \*(T<replyMessage\*(T> and \*(T<accountingResponse\*(T>
332 options. We will discuss these later.
333 .SS "REALM BLOCK NAMES AND MATCHING"
334 In the general case the proxy will look for a \*(T<@\*(T> in the
335 username attribute, and try to do an exact case insensitive match between what
336 comes after the \*(T<@\*(T> and the name of the realm block. So if you
337 get a request with the attribute value \*(T<anonymous@example.com\*(T>,
338 the proxy will go through the realm names in the order they are specified,
339 looking for a realm block named \*(T<example.com\*(T>.
340 .PP
341 There are two exceptions to this, one is the realm name \*(T<*\*(T>
342 which means match everything. Hence if you have a realm block named
343 \*(T<*\*(T>, then it will always match. This should then be the last
344 realm block defined, since any blocks after this would never be checked. This
345 is useful for having a default.
346 .PP
347 The other exception is regular expression matching. If the realm name starts
348 with a \*(T</\*(T>, the name is treated as an regular expression. A
349 case insensitive regexp match will then be done using this regexp on the value
350 of the entire Username attribute. Optionally you may also have a trailing
351 \*(T</\*(T> after the regexp. So as an example, if you want to use
352 regexp matching the domain \*(T<example.com\*(T> you could have a
353 realm block named \*(T</@example\e\e.com$\*(T>. Optinally this can also
354 be written \*(T</@example\e\e.com$/\*(T>. If you want to match all
355 domains under the \*(T<.com\*(T> top domain, you could do
356 \*(T</@.*\e\e.com$\*(T>. Note that since the matching is done on the
357 entire attribute value, you can also use rules like
358 \*(T</^[a\-k].*@example\e\e.com$/\*(T> to get some of the users in this
359 domain to use one server, while other users could be matched by another realm
360 block and use another server.
361 .SS "REALM BLOCK OPTIONS"
362 A realm block may contain none, one or multiple \*(T<server\*(T>
363 options. If defined, the values of the \*(T<server\*(T> options must
364 be the names of previously defined server blocks. Normally requests will be
365 forwarded to the first server option defined. If there are multiple server
366 options, the proxy will do fail-over and use the second server if the first
367 is down. If the two first are down, it will try the third etc. If say the
368 first server comes back up, it will go back to using that one. Currently
369 detection of servers being up or down is based on the use of StatusServer (if
370 enabled), and that TLS connections are up.
371 .PP
372 A realm block may also contain none, one or multiple
373 \*(T<accountingServer\*(T> options. This is used exactly like the
374 \*(T<server\*(T> option, except that it is used for specifying where
375 to send matching accounting requests. The values must be the names of
376 previously defined server blocks. When multiple accounting servers are
377 defined, there is a failover mechanism similar to the one for the
378 \*(T<server\*(T> option.
379 .PP
380 If there is no \*(T<server\*(T> option, the proxy will if
381 \*(T<replyMessage\*(T> is specified, reply back to the client with
382 an Access Reject message. The message contains a replyMessage attribute with
383 the value as specified by the \*(T<replyMessage\*(T> option. Note
384 that this is different from having no match since then the request is simply
385 ignored. You may wonder why this is useful. One example is if you handle say
386 all domains under say \*(T<.bv\*(T>. Then you may have several realm
387 blocks matching the domains that exists, while for other domains under
388 \*(T<\&.bv\*(T> you want to send a reject. At the same time you might
389 want to send all other requests to some default server. After the realms for
390 the subdomains, you would then have two realm definitions. One with the name
391 \*(T</@.*\e\e.bv$\*(T> with no servers, followed by one with the name
392 \*(T<*\*(T> with the default server defined. This may also be useful
393 for blocking particular usernames.
394 .PP
395 If there is no \*(T<accountingServer\*(T> option, the proxy will
396 normally do nothing, ignoring accounting requests. There is however an option
397 called \*(T<accountingResponse\*(T>. If this is set to
398 \*(T<on\*(T>, the proxy will log some of the accounting information
399 and send an Accounting-Response back. This is useful if you do not care much
400 about accounting, but want to stop clients from retransmitting accounting
401 requests. By default this option is set to \*(T<off\*(T>.
402 .SH "TLS BLOCK"
403 The TLS block specifies TLS configuration options and you need at least one
404 of these if you have clients or servers using TLS. As discussed in the client
405 and server block descriptions, a client or server block may reference a
406 particular TLS block by name. There are also however the special TLS block
407 names \*(T<default\*(T>, \*(T<defaultClient\*(T> and
408 \*(T<defaultServer\*(T> which are used as defaults if the client or
409 server block does not reference a TLS block. Also note that a TLS block must
410 be defined before the client or server block that would use it. If you want
411 the same TLS configuration for all TLS clients and servers, you need just a
412 single tls block named \*(T<default\*(T>, and the client and servers
413 need not refer to it. If you want all TLS clients to use one config, and all
414 TLS servers to use another, then you would be fine only defining two TLS
415 blocks named \*(T<defaultClient\*(T> and
416 \*(T<defaultServer\*(T>. If you want different clients (or different
417 servers) to have different TLS parameters, then you may need to create other
418 TLS blocks with other names, and reference those from the client or server
419 definitions. Note that you could also have say a client block refer to a
420 default, even \*(T<defaultServer\*(T> if you really want to.
421 .PP
422 The available TLS block options are \*(T<CACertificateFile\*(T>,
423 \*(T<CACertificatePath\*(T>, \*(T<certificateFile\*(T>,
424 \*(T<certificateKeyFile\*(T>,
425 \*(T<certificateKeyPassword\*(T>, \*(T<cacheExpiry\*(T>
426 and \*(T<CRLCheck\*(T>. When doing RADIUS over TLS, both the client
427 and the server present certificates, and they are both verified by the peer.
428 Hence you must always specify \*(T<certificateFile\*(T> and
429 \*(T<certificateKeyFile\*(T> options, as well as
430 \*(T<certificateKeyPassword\*(T> if a password is needed to decrypt
431 the private key. Note that \*(T<CACertificateFile\*(T> may be a
432 certificate chain. In order to verify certificates, or send a chain of
433 certificates to a peer, you also always need to specify
434 \*(T<CACertificateFile\*(T> or \*(T<CACertificatePath\*(T>.
435 Note that you may specify both, in which case the certificates in
436 \*(T<CACertificateFile\*(T> are checked first. By default CRLs are
437 not checked. This can be changed by setting \*(T<CRLCheck\*(T> to
438 \*(T<on\*(T>.
439 .PP
440 CA certificates and CRLs are normally cached permanently. That is, once a CA
441 or CRL has been read, the proxy will never attempt to re-read it. CRLs may
442 change relatively often and the proxy should ideally always use the latest
443 CRLs. Rather than restarting the proxy, there is an option
444 \*(T<cacheExpiry\*(T> that specifies how many seconds the CA and
445 CRL information should be cached. Reasonable values might be say 3600
446 (1 hour) or 86400 (24 hours), depending on how frequently CRLs are updated
447 and how critical it is to be up to date. This option may be set to zero to
448 disable caching.
449 .SH "REWRITE BLOCK"
450 The rewrite block specifies rules that may rewrite RADIUS messages. It can be
451 used to add, remove and modify specific attributes from messages received
452 from and sent to clients and servers. As discussed in the client and server
453 block descriptions, a client or server block may reference a particular
454 rewrite block by name. There are however also the special rewrite block names
455 \*(T<default\*(T>, \*(T<defaultClient\*(T> and
456 \*(T<defaultServer\*(T> which are used as defaults if the client or
457 server block does not reference a block. Also note that a rewrite block must
458 be defined before the client or server block that would use it. If you want
459 the same rewrite rules for input from all clients and servers, you need just
460 a single rewrite block named \*(T<default\*(T>, and the client and
461 servers need not refer to it. If you want all clients to use one config, and
462 all servers to use another, then you would be fine only defining two rewrite
463 blocks named \*(T<defaultClient\*(T> and
464 \*(T<defaultServer\*(T>. Note that these defaults are only used for
465 rewrite on input. No rewriting is done on output unless explicitly specifed
466 using the \*(T<rewriteOut\*(T> option.
467 .PP
468 The available rewrite block options are \*(T<addAttribute\*(T>,
469 \*(T<removeAttribute\*(T>, \*(T<removeVendorAttribute\*(T>
470 and \*(T<modifyAttribute\*(T>. They can all be specified none, one
471 or multiple times.
472 .PP
473 \*(T<addAttribute\*(T> is used to add attributes to a message. The
474 option value must be of the form \*(T<attribute:value\*(T> where
475 attribute is a numerical value specifying the attribute.
476 .PP
477 The \*(T<removeAttribute\*(T> option is used to specify an
478 attribute that should be removed from received messages. The option value
479 must be a numerical value specifying which attribute is to be removed.
480 Similarly, \*(T<removeVendorAttribute\*(T> is used to specify a
481 vendor attribute that is to be removed. The value can be a numerical value
482 for removing all attributes from a given vendor, or of the form
483 \*(T<vendor:subattribute\*(T>, where vendor and subattribute are
484 numerical values, for removing a specific subattribute for a specific
485 vendor.
486 .PP
487 \*(T<modifyAttribute\*(T> is used to specify modification of
488 attributes. The value must be of the form
489 \*(T<attribute:/regexpmatch/replacement/\*(T> where attribute is
490 a numerical attribute type, regexpmatch is regexp matching rule and
491 replacement specifies how to replace the matching regexp. Example usage:
492 .RS 
493 modifyAttribute 1:/^(.*)@local$/$1@example.com/
494 .RE
495 .SH "SEE ALSO"
496 \fBradsecproxy\fR(1),
497 .URL http://tools.ietf.org/html/draft-ietf-radext-radsec "         RadSec internet draft       "