F-Ticks logging changes
[libradsec.git] / radsecproxy.conf-example
1 # Master config file, must be in /etc/radsecproxy or specified with -c option
2 #       All possible config options are listed below
3
4 # First you may define any global options, these are:
5 #
6 # You can optionally specify addresses and ports to listen on
7 # Multiple statements can be used for multiple ports/addresses
8 #ListenUDP              *:1814
9 #ListenUDP              localhost
10 #ListenTCP              [2001:700:1:7:215:f2ff:fe35:307d]:1812
11 #ListenTLS              10.10.10.10:2084
12 #ListenTLS              [2001:700:1:7:215:f2ff:fe35:307d]:2084
13 #ListenDTLS             [2001:700:1:7:215:f2ff:fe35:307d]:2084
14
15 # To specify a certain address/port for UDP/TLS requests you can use e.g.
16 #SourceUDP              127.0.0.1:33000
17 #SourceTCP              *:33000
18 #SourceTLS              *:33001
19 #SourceDTLS             *:33001
20
21 # Optional log level. 3 is default, 1 is less, 5 is more
22 #LogLevel               3
23 # Optional LogDestination, else stderr used for logging
24 # Logging to file
25 #LogDestination         file:///tmp/rp.log
26 # Or logging with Syslog. LOG_DAEMON used if facility not specified
27 # The supported facilities are LOG_DAEMON, LOG_MAIL, LOG_USER and
28 # LOG_LOCAL0, ..., LOG_LOCAL7
29 #LogDestination         x-syslog:///
30 #LogDestination         x-syslog:///log_local2
31
32 # For generating log entries conforming to the F-Ticks system, specify
33 # FTicksReporting with one of the following values.
34 #   None  -- Do not log in F-Ticks format.  This is the default.
35 #   Basic -- Do log in F-Ticks format but do not log VISINST.
36 #   Full  -- Do log in F-Ticks format and do log VISINST.
37 # Please note that in order to get F-Ticks logging for a given client,
38 # its matching client configuration block has to contain the
39 # fticksVISCOUNTRY option.
40
41 # You can optionally specify FTicksMAC in order to determine if and
42 # how Calling-Station-Id (users Ethernet MAC address) is being logged.
43 #   Static          -- Use a static string as a placeholder for
44 #                      Calling-Station-Id.
45 #   Original        -- Log Calling-Station-Id as-is.
46 #   VendorHashed    -- Keep first three segments as-is, hash the rest.
47 #   VendorKeyHashed -- Like VendorHashed but salt with F-Ticks-Key.    This
48 #                      is the default.
49 #   FullyHashed     -- Hash the entire string.
50 #   FullyKeyHashed  -- Like FullyHashed but salt with F-Ticks-Key.
51
52 # In order to use FTicksMAC with one of VendorKeyHashed or
53 # FullyKeyHashed, specify a key with FTicksKey.
54 # FTicksKey <key>
55
56 # Default F-Ticks configuration:
57 #FTicksReporting None
58 #FTicksMAC Static
59
60 # You can optionally specify FTicksSyslogFacility to use a dedicated 
61 # syslog facility for F-Ticks messages. This allows easy filtering 
62 # of F-Ticks messages.
63 # Please note that FTicksSyslogFacility cannot specify a file (file:///...)
64 #FTicksSyslogFacility   log_local1
65 #FTicksSyslogFacility   x-syslog:///log_local1 
66
67 # There is an option for doing some simple loop prevention.  Note that
68 # the LoopPrevention directive can be used in server blocks too,
69 # overriding what's set here in the basic settings.
70 #LoopPrevention         on
71 # Add TTL attribute with value 20 if not present (prevents endless loops)
72 #AddTTL 20
73
74 # If we have TLS clients or servers we must define at least one tls block.
75 # You can name them whatever you like and then reference them by name when
76 # specifying clients or servers later. There are however three special names
77 # "default", "defaultclient" and "defaultserver". If no name is defined for
78 # a client, the "defaultclient" block will be used if it exists, if not the
79 # "default" will be used. For a server, "defaultserver" followed by "default"
80 # will be checked.
81 #
82 # The simplest configuration you can do is:
83 tls default {
84     # You must specify at least one of CACertificateFile or CACertificatePath
85     # for TLS to work. We always verify peer certificate (client and server)
86     # CACertificateFile    /etc/cacerts/CA.pem
87     CACertificatePath   /etc/cacerts
88
89     # You must specify the below for TLS, we always present our certificate
90     CertificateFile     /etc/hostcertkey/host.example.com.pem
91     CertificateKeyFile  /etc/hostcertkey/host.example.com.key.pem
92     # Optionally specify password if key is encrypted (not very secure)
93     CertificateKeyPassword      "follow the white rabbit"
94     # Optionally enable CRL checking
95     # CRLCheck on
96     # Optionally specify how long CAs and CRLs are cached, default forever
97     # CacheExpiry 3600
98     # Optionally require that peer certs have one of the specified policyOIDs
99     # policyoid     1.2.3 # this option can be used multiple times
100     # policyoid     1.3.4
101 }
102
103 # If you want one cert for all clients and another for all servers, use
104 # defaultclient and defaultserver instead of default. If we wanted some
105 # particular server to use something else you could specify a block
106 # "tls myserver" and then reference that for that server. If you always
107 # name the tls block in the client/server config you don't need a default
108
109 # Now we configure clients, servers and realms. Note that these and
110 # also the lines above may be in any order, except that a realm
111 # can only be configured to use a server that is previously configured.
112
113 # A realm can be a literal domain name, * which matches all, or a
114 # regexp. A regexp is specified by the character prefix /
115 # For regexp we do case insensitive matching of the entire username string.
116 # The matching of realms is done in the order they are specified, using the
117 # first match found. Some examples are
118 # "@example\.com$", "\.com$", ".*" and "^[a-z].*@example\.com$".
119 # To treat local users separately you might try first specifying "@"
120 # and after that "*".
121
122 # Configure a rewrite block if you want to add/remove/modify attributes
123 # rewrite example {
124 #       # Remove NAS-Port.
125 #       removeAttribute 5
126 #       # Remove vendor attribute 100.
127 #       removeVendorAttribute 99:100
128 #       # Called-Station-Id = "123456"
129 #       addAttribute 30:123456
130 #       # Vendor-99-Attr-101 = 0x0f
131 #       addVendorAttribute 99:101:%0f
132 #       # Change users @local to @example.com.
133 #       modifyAttribute 1:/^(.*)@local$/\1@example.com/
134 # }
135
136 client 2001:db8::1 {
137         type    tls
138         secret  verysecret
139 # we could specify tls here, e.g.
140 #       tls myclient
141 # in order to use tls parameters named myclient. We don't, so we will
142 # use "tls defaultclient" if defined, or look for "tls default" as a
143 # last resort
144 }
145 client 127.0.0.1 {
146         type    udp
147         secret  secret
148 #       Might do rewriting of incoming messages using rewrite block example
149 #       rewriteIn example
150 #       Can also do rewriting of outgoing messages
151 #       rewriteOut example      
152 }
153 client 127.0.0.1 {
154         type    tcp
155         secret  secret
156 }
157 client radius.example.com {
158         type tls
159 # secret is optional for TLS
160 }
161 client radius.example.com {
162         type dtls
163 # secret is optional for DTLS
164 }
165
166 server 127.0.0.1 {
167         type    UDP
168         secret  secret
169 #       Might do rewriting of incoming messages using rewrite block example
170 #       rewriteIn example
171 #       Can also do rewriting of outgoing messages
172 #       rewriteOut example      
173 #       Might override loop prevention here too:
174 #       LoopPrevention off
175 }
176 realm   eduroam.cc {
177         server  127.0.0.1
178 # If also want to use this server for accounting, specify
179 #       accountingServer 127.0.0.1
180 }
181
182 server 2001:db8::1 {
183         type    TLS
184         port    2283
185 # secret is optional for TLS
186 # we could specify tls here, e.g.
187 #       tls myserver
188 # in order to use tls parameters named myserver. We don't, so we will
189 # use "tls defaultserver" if defined, or look for "tls default" as a
190 # last resort
191 }
192 server radius.example.com {
193         type    tls
194         secret  verysecret
195         StatusServer on
196 # statusserver is optional, can be on or off. Off is default
197 }
198 #server radius.example.com {
199 #       type    dtls
200 #       secret  verysecret
201 #       StatusServer on
202 ## statusserver is optional, can be on or off. Off is default
203 #}
204
205 # Equivalent to example.com
206 realm /@example\.com$ {
207         server 2001:db8::1
208 }
209 # One can define a realm without servers, the proxy will then reject
210 # and requests matching this. Optionally one can specify ReplyMessage
211 # attribute to be included in the reject message. One can also use
212 # AccountingResponse option to specify that the proxy should send such.
213 realm /\.com$ {
214 }
215 realm /^anonymous$ {
216         replymessage "No Access"
217 #       AccountingResponse On
218 }
219 # The realm below is equivalent to /.*
220 realm * {
221         server radius.example.com
222 }
223 # If you don't have a default server you probably want to
224 # reject all unknowns. Optionally you can also include a message
225 #realm * {
226 #        replymessage "User unknown"
227 #}