Browse code

Adding RADIUS

Veselin Kolev authored on 16/12/2019 07:33:16
Showing 9 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,51 @@
1
+# You can use this to rotate the /var/log/radius/* files, simply copy
2
+# it to /etc/logrotate.d/radiusd
3
+
4
+# There are different detail-rotating strategies you can use.  One is
5
+# to write to a single detail file per IP and use the rotate config
6
+# below.  Another is to write to a daily detail file per IP with:
7
+#     detailfile = ${radacctdir}/%{Client-IP-Address}/%Y%m%d-detail
8
+# (or similar) in radiusd.conf, without rotation.  If you go with the
9
+# second technique, you will need another cron job that removes old
10
+# detail files.  You do not need to comment out the below for method #2.
11
+/var/log/radius/radacct/*/detail {
12
+	monthly
13
+	rotate 4
14
+	nocreate
15
+	missingok
16
+	compress
17
+}
18
+
19
+/var/log/radius/checkrad.log {
20
+	monthly
21
+	rotate 4
22
+	create
23
+	missingok
24
+	compress
25
+}
26
+
27
+/var/log/radius/radius.log {
28
+	daily
29
+	rotate 31
30
+	create
31
+	missingok
32
+	compress
33
+	postrotate
34
+		/sbin/service radiusd reload
35
+	endscript
36
+}
37
+
38
+/var/log/radius/radwtmp {
39
+	monthly
40
+	rotate 4
41
+	create
42
+	compress
43
+	missingok
44
+}
45
+/var/log/radius/sqltrace.sql {
46
+        monthly
47
+        rotate 4
48
+        create
49
+        compress
50
+        missingok
51
+}
0 52
new file mode 100644
... ...
@@ -0,0 +1,54 @@
1
+[ ca ]
2
+default_ca		= CA_default
3
+
4
+[ CA_default ]
5
+dir			= ./
6
+certs			= $dir
7
+crl_dir			= $dir/crl
8
+database		= $dir/index.txt
9
+new_certs_dir		= $dir
10
+certificate		= $dir/ca.pem
11
+serial			= $dir/serial
12
+crl			= $dir/crl.pem
13
+private_key		= $dir/ca.key
14
+RANDFILE		= $dir/.rand
15
+name_opt		= ca_default
16
+cert_opt		= ca_default
17
+default_days		= 60
18
+default_crl_days	= 30
19
+default_md		= sha256
20
+preserve		= no
21
+policy			= policy_match
22
+
23
+[ policy_match ]
24
+countryName		= match
25
+stateOrProvinceName	= match
26
+organizationName	= match
27
+organizationalUnitName	= optional
28
+commonName		= supplied
29
+emailAddress		= optional
30
+
31
+[ policy_anything ]
32
+countryName		= optional
33
+stateOrProvinceName	= optional
34
+localityName		= optional
35
+organizationName	= optional
36
+organizationalUnitName	= optional
37
+commonName		= supplied
38
+emailAddress		= optional
39
+
40
+[ req ]
41
+prompt			= no
42
+distinguished_name	= server
43
+default_bits		= 2048
44
+input_password		= whatever
45
+output_password		= whatever
46
+
47
+[server]
48
+countryName		= BG
49
+stateOrProvinceName	= Sofia
50
+localityName		= Sofia
51
+organizationName	= Sofia University
52
+emailAddress		= 123@ucc.uni-sofia.bg
53
+commonName		= services-loz.uni-sofia.bg
54
+
0 55
new file mode 100644
... ...
@@ -0,0 +1,309 @@
1
+# -*- text -*-
2
+##
3
+## clients.conf -- client configuration directives
4
+##
5
+##	$Id: 729c15d3e84c6cdb54a5f3652d93a2d7f8725fd4 $
6
+
7
+#######################################################################
8
+#
9
+#  Define RADIUS clients (usually a NAS, Access Point, etc.).
10
+
11
+#
12
+#  Defines a RADIUS client.
13
+#
14
+#  '127.0.0.1' is another name for 'localhost'.  It is enabled by default,
15
+#  to allow testing of the server after an initial installation.  If you
16
+#  are not going to be permitting RADIUS queries from localhost, we suggest
17
+#  that you delete, or comment out, this entry.
18
+#
19
+#
20
+
21
+#
22
+#  Each client has a "short name" that is used to distinguish it from
23
+#  other clients.
24
+#
25
+#  In version 1.x, the string after the word "client" was the IP
26
+#  address of the client.  In 2.0, the IP address is configured via
27
+#  the "ipaddr" or "ipv6addr" fields.  For compatibility, the 1.x
28
+#  format is still accepted.
29
+#
30
+client localhost {
31
+	#  Allowed values are:
32
+	#	dotted quad (1.2.3.4)
33
+	#       hostname    (radius.example.com)
34
+	ipaddr = 127.0.0.1
35
+
36
+	#  OR, you can use an IPv6 address, but not both
37
+	#  at the same time.
38
+#	ipv6addr = ::	# any.  ::1 == localhost
39
+
40
+	#
41
+	#  A note on DNS:  We STRONGLY recommend using IP addresses
42
+	#  rather than host names.  Using host names means that the
43
+	#  server will do DNS lookups when it starts, making it
44
+	#  dependent on DNS.  i.e. If anything goes wrong with DNS,
45
+	#  the server won't start!
46
+	#
47
+	#  The server also looks up the IP address from DNS once, and
48
+	#  only once, when it starts.  If the DNS record is later
49
+	#  updated, the server WILL NOT see that update.
50
+	#
51
+
52
+	#  One client definition can be applied to an entire network.
53
+	#  e.g. 127/8 should be defined with "ipaddr = 127.0.0.0" and
54
+	#  "netmask = 8"
55
+	#
56
+	#  If not specified, the default netmask is 32 (i.e. /32)
57
+	#
58
+	#  We do NOT recommend using anything other than 32.  There
59
+	#  are usually other, better ways to achieve the same goal.
60
+	#  Using netmasks of other than 32 can cause security issues.
61
+	#
62
+	#  You can specify overlapping networks (127/8 and 127.0/16)
63
+	#  In that case, the smallest possible network will be used
64
+	#  as the "best match" for the client.
65
+	#
66
+	#  Clients can also be defined dynamically at run time, based
67
+	#  on any criteria.  e.g. SQL lookups, keying off of NAS-Identifier,
68
+	#  etc.
69
+	#  See raddb/sites-available/dynamic-clients for details.
70
+	#
71
+
72
+#	netmask = 32
73
+
74
+	#
75
+	#  The shared secret use to "encrypt" and "sign" packets between
76
+	#  the NAS and FreeRADIUS.  You MUST change this secret from the
77
+	#  default, otherwise it's not a secret any more!
78
+	#
79
+	#  The secret can be any string, up to 8k characters in length.
80
+	#
81
+	#  Control codes can be entered vi octal encoding,
82
+	#	e.g. "\101\102" == "AB"
83
+	#  Quotation marks can be entered by escaping them,
84
+	#	e.g. "foo\"bar"
85
+	#
86
+	#  A note on security:  The security of the RADIUS protocol
87
+	#  depends COMPLETELY on this secret!  We recommend using a
88
+	#  shared secret that is composed of:
89
+	#
90
+	#	upper case letters
91
+	#	lower case letters
92
+	#	numbers
93
+	#
94
+	#  And is at LEAST 8 characters long, preferably 16 characters in
95
+	#  length.  The secret MUST be random, and should not be words,
96
+	#  phrase, or anything else that is recognizable.
97
+	#
98
+	#  The default secret below is only for testing, and should
99
+	#  not be used in any real environment.
100
+	#
101
+	secret		= testing123
102
+
103
+	#
104
+	#  Old-style clients do not send a Message-Authenticator
105
+	#  in an Access-Request.  RFC 5080 suggests that all clients
106
+	#  SHOULD include it in an Access-Request.  The configuration
107
+	#  item below allows the server to require it.  If a client
108
+	#  is required to include a Message-Authenticator and it does
109
+	#  not, then the packet will be silently discarded.
110
+	#
111
+	#  allowed values: yes, no
112
+	require_message_authenticator = no
113
+
114
+	#
115
+	#  The short name is used as an alias for the fully qualified
116
+	#  domain name, or the IP address.
117
+	#
118
+	#  It is accepted for compatibility with 1.x, but it is no
119
+	#  longer necessary in 2.0
120
+	#
121
+#	shortname	= localhost
122
+
123
+	#
124
+	# the following three fields are optional, but may be used by
125
+	# checkrad.pl for simultaneous use checks
126
+	#
127
+
128
+	#
129
+	# The nastype tells 'checkrad.pl' which NAS-specific method to
130
+	#  use to query the NAS for simultaneous use.
131
+	#
132
+	#  Permitted NAS types are:
133
+	#
134
+	#	cisco
135
+	#	computone
136
+	#	livingston
137
+	#	juniper
138
+	#	max40xx
139
+	#	multitech
140
+	#	netserver
141
+	#	pathras
142
+	#	patton
143
+	#	portslave
144
+	#	tc
145
+	#	usrhiper
146
+	#	other		# for all other types
147
+
148
+	#
149
+	nastype     = other	# localhost isn't usually a NAS...
150
+
151
+	#
152
+	#  The following two configurations are for future use.
153
+	#  The 'naspasswd' file is currently used to store the NAS
154
+	#  login name and password, which is used by checkrad.pl
155
+	#  when querying the NAS for simultaneous use.
156
+	#
157
+#	login       = !root
158
+#	password    = someadminpas
159
+
160
+	#
161
+	#  As of 2.0, clients can also be tied to a virtual server.
162
+	#  This is done by setting the "virtual_server" configuration
163
+	#  item, as in the example below.
164
+	#
165
+#	virtual_server = home1
166
+
167
+	#
168
+	#  A pointer to the "home_server_pool" OR a "home_server"
169
+	#  section that contains the CoA configuration for this
170
+	#  client.  For an example of a coa home server or pool,
171
+	#  see raddb/sites-available/originate-coa
172
+#	coa_server = coa
173
+
174
+        #
175
+        #  Response window for proxied packets.  If non-zero,
176
+        #  then the lower of (home, client) response_window
177
+        #  will be used.
178
+        #
179
+        #  i.e. it can be used to lower the response_window
180
+        #  packets from one client to a home server.  It cannot
181
+        #  be used to raise the response_window.
182
+        #
183
+#       response_window = 10.0
184
+}
185
+
186
+# IPv6 Client
187
+#client ::1 {
188
+#	secret		= testing123
189
+#	shortname	= localhost
190
+#}
191
+#
192
+# All IPv6 Site-local clients
193
+#client fe80::/16 {
194
+#	secret		= testing123
195
+#	shortname	= localhost
196
+#}
197
+
198
+#client some.host.org {
199
+#	secret		= testing123
200
+#	shortname	= localhost
201
+#}
202
+
203
+#
204
+#  You can now specify one secret for a network of clients.
205
+#  When a client request comes in, the BEST match is chosen.
206
+#  i.e. The entry from the smallest possible network.
207
+#
208
+#client 192.168.0.0/24 {
209
+#	secret		= testing123-1
210
+#	shortname	= private-network-1
211
+#}
212
+#
213
+#client 192.168.0.0/16 {
214
+#	secret		= testing123-2
215
+#	shortname	= private-network-2
216
+#}
217
+
218
+
219
+#client 10.10.10.10 {
220
+#	# secret and password are mapped through the "secrets" file.
221
+#	secret      = testing123
222
+#	shortname   = liv1
223
+#       # the following three fields are optional, but may be used by
224
+#       # checkrad.pl for simultaneous usage checks
225
+#	nastype     = livingston
226
+#	login       = !root
227
+#	password    = someadminpas
228
+#}
229
+
230
+#######################################################################
231
+#
232
+#  Per-socket client lists.  The configuration entries are exactly
233
+#  the same as above, but they are nested inside of a section.
234
+#
235
+#  You can have as many per-socket client lists as you have "listen"
236
+#  sections, or you can re-use a list among multiple "listen" sections.
237
+#
238
+#  Un-comment this section, and edit a "listen" section to add:
239
+#  "clients = per_socket_clients".  That IP address/port combination
240
+#  will then accept ONLY the clients listed in this section.
241
+#
242
+#clients per_socket_clients {
243
+#	client 192.168.3.4 {
244
+#		secret = testing123
245
+#        }
246
+#}
247
+
248
+client 10.10.10.12 {
249
+   secret = MGwP0gITboFacWB47RQddTjdweFu3njREzflKwak9n3Kc+d4KFDPoYTRnT4OXFgeWgQHCNI65JhV
250
+   shortname = eduroam
251
+}
252
+
253
+client 10.10.10.13 {
254
+   secret = MGwP0gITboFacWB47RQddTjdweFu3njREzflKwak9n3Kc+d4KFDPoYTRnT4OXFgeWgQHCNI65JhV
255
+   shortname = eduroam
256
+}
257
+
258
+
259
+client 62.44.96.165 {
260
+   secret = e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
261
+   shortname = radius-rec.uni-sofia.bg
262
+}
263
+
264
+client 62.44.103.23 {
265
+   secret = kaBXH6xeTTxqF8EqAqkp1cgzJbe1lzhkSCMNyvJegxNcu6loApEHQjHgZdmjN07yz9JwRl1yugzB
266
+   shortname = directory.dce.uni-sofia.bg
267
+}
268
+
269
+client 62.44.96.202 {
270
+   secret = e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
271
+   shortname = local
272
+}
273
+
274
+client 194.141.99.99 {
275
+   secret = 2d6923487de9c3889db5a5fedf489726a19bc3a779477efcfe3f6b894d35
276
+   shortname = btlr.eduroam.bg
277
+}
278
+
279
+client 91.210.88.28 {
280
+   secret = 922d400dfaa72f2f2d040671a420b6aa4bc202788a192c130a7034f7a386
281
+   shortname = btlr2.eduroam.bg
282
+}
283
+
284
+client 68.181.32.85 {
285
+   secret = u64WMbhjkILT1c4iBOntTnihaah/TR7pmrHeaypPZnJzEJbgGCzB7ukwPDgKxhNJF4fodF0gm2Jf
286
+   shortname = vesso_at_usc_california_test_ap
287
+}
288
+
289
+client 68.181.84.60 {
290
+   secret = u64WMbhjkILT1c4iBOntTnihaah/TR7pmrHeaypPZnJzEJbgGCzB7ukwPDgKxhNJF4fodF0gm2Jf
291
+   shortname = vesso2_at_usc_california_test_ap
292
+}
293
+
294
+client radi_test {
295
+   ipaddr = 77.241.128.0
296
+   netmask = 21
297
+   secret = u64WMbhjkILT1c4iBOntTnihaah/TR7pmrHeaypPZnJzEJbgGCzB7ukwPDgKxhNJF4fodF0gm2Jf
298
+   shortname = radi_test
299
+}
300
+
301
+client 62.44.101.159 {
302
+   secret = JYjMfASA23WqUhy52QKucCzcf68rxBEHLXNoI7ME68LoHxmQYqGYawgeB1GEr+qlYTdMEh2uUAr8
303
+   shortname = unifi.fmi.uni-sofia.bg
304
+}
305
+
306
+client 62.44.102.7 {
307
+   secret = NmUxYWE4NWFkMTNmZDNjZDYzOThjODY2ZDMwZjliZDE0ZTNiMTg1ZGY3NmM0MzJhZTQ2ZDRjODY0
308
+   shortname = mbox.chem.uni-sofia.bg
309
+}
0 310
new file mode 100644
... ...
@@ -0,0 +1,702 @@
1
+# -*- text -*-
2
+##
3
+##  eap.conf -- Configuration for EAP types (PEAP, TTLS, etc.)
4
+##
5
+##	$Id: 95bebe4d25ef13871fb201ba540ed008078dab07 $
6
+
7
+#######################################################################
8
+#
9
+#  Whatever you do, do NOT set 'Auth-Type := EAP'.  The server
10
+#  is smart enough to figure this out on its own.  The most
11
+#  common side effect of setting 'Auth-Type := EAP' is that the
12
+#  users then cannot use ANY other authentication method.
13
+#
14
+#  EAP types NOT listed here may be supported via the "eap2" module.
15
+#  See experimental.conf for documentation.
16
+#
17
+	eap {
18
+		#  Invoke the default supported EAP type when
19
+		#  EAP-Identity response is received.
20
+		#
21
+		#  The incoming EAP messages DO NOT specify which EAP
22
+		#  type they will be using, so it MUST be set here.
23
+		#
24
+		#  For now, only one default EAP type may be used at a time.
25
+		#
26
+		#  If the EAP-Type attribute is set by another module,
27
+		#  then that EAP type takes precedence over the
28
+		#  default type configured here.
29
+		#
30
+		default_eap_type = md5
31
+		#default_eap_type = peap
32
+
33
+		#  A list is maintained to correlate EAP-Response
34
+		#  packets with EAP-Request packets.  After a
35
+		#  configurable length of time, entries in the list
36
+		#  expire, and are deleted.
37
+		#
38
+		timer_expire     = 60
39
+
40
+		#  There are many EAP types, but the server has support
41
+		#  for only a limited subset.  If the server receives
42
+		#  a request for an EAP type it does not support, then
43
+		#  it normally rejects the request.  By setting this
44
+		#  configuration to "yes", you can tell the server to
45
+		#  instead keep processing the request.  Another module
46
+		#  MUST then be configured to proxy the request to
47
+		#  another RADIUS server which supports that EAP type.
48
+		#
49
+		#  If another module is NOT configured to handle the
50
+		#  request, then the request will still end up being
51
+		#  rejected.
52
+		ignore_unknown_eap_types = no
53
+
54
+		# Cisco AP1230B firmware 12.2(13)JA1 has a bug.  When given
55
+		# a User-Name attribute in an Access-Accept, it copies one
56
+		# more byte than it should.
57
+		#
58
+		# We can work around it by configurably adding an extra
59
+		# zero byte.
60
+		cisco_accounting_username_bug = no
61
+
62
+		#
63
+		#  Help prevent DoS attacks by limiting the number of
64
+		#  sessions that the server is tracking.  For simplicity,
65
+		#  this is taken from the "max_requests" directive in
66
+		#  radiusd.conf.
67
+		max_sessions = ${max_requests}
68
+
69
+		# Supported EAP-types
70
+
71
+		#
72
+		#  We do NOT recommend using EAP-MD5 authentication
73
+		#  for wireless connections.  It is insecure, and does
74
+		#  not provide for dynamic WEP keys.
75
+		#
76
+		md5 {
77
+		}
78
+
79
+		# Cisco LEAP
80
+		#
81
+		#  We do not recommend using LEAP in new deployments.  See:
82
+		#  http://www.securiteam.com/tools/5TP012ACKE.html
83
+		#
84
+		#  Cisco LEAP uses the MS-CHAP algorithm (but not
85
+		#  the MS-CHAP attributes) to perform it's authentication.
86
+		#
87
+		#  As a result, LEAP *requires* access to the plain-text
88
+		#  User-Password, or the NT-Password attributes.
89
+		#  'System' authentication is impossible with LEAP.
90
+		#
91
+		leap {
92
+		}
93
+
94
+		#  Generic Token Card.
95
+		#
96
+		#  Currently, this is only permitted inside of EAP-TTLS,
97
+		#  or EAP-PEAP.  The module "challenges" the user with
98
+		#  text, and the response from the user is taken to be
99
+		#  the User-Password.
100
+		#
101
+		#  Proxying the tunneled EAP-GTC session is a bad idea,
102
+		#  the users password will go over the wire in plain-text,
103
+		#  for anyone to see.
104
+		#
105
+		gtc {
106
+			#  The default challenge, which many clients
107
+			#  ignore..
108
+			#challenge = "Password: "
109
+
110
+			#  The plain-text response which comes back
111
+			#  is put into a User-Password attribute,
112
+			#  and passed to another module for
113
+			#  authentication.  This allows the EAP-GTC
114
+			#  response to be checked against plain-text,
115
+			#  or crypt'd passwords.
116
+			#
117
+			#  If you say "Local" instead of "PAP", then
118
+			#  the module will look for a User-Password
119
+			#  configured for the request, and do the
120
+			#  authentication itself.
121
+			#
122
+			auth_type = PAP
123
+		}
124
+
125
+		## EAP-TLS
126
+		#
127
+		#  See raddb/certs/README for additional comments
128
+		#  on certificates.
129
+		#
130
+		#  If OpenSSL was not found at the time the server was
131
+		#  built, the "tls", "ttls", and "peap" sections will
132
+		#  be ignored.
133
+		#
134
+		#  Otherwise, when the server first starts in debugging
135
+		#  mode, test certificates will be created.  See the
136
+		#  "make_cert_command" below for details, and the README
137
+		#  file in raddb/certs
138
+		#
139
+		#  These test certificates SHOULD NOT be used in a normal
140
+		#  deployment.  They are created only to make it easier
141
+		#  to install the server, and to perform some simple
142
+		#  tests with EAP-TLS, TTLS, or PEAP.
143
+		#
144
+		#  See also:
145
+		#
146
+		#  http://www.dslreports.com/forum/remark,9286052~mode=flat
147
+		#
148
+		#  Note that you should NOT use a globally known CA here!
149
+		#  e.g. using a Verisign cert as a "known CA" means that
150
+		#  ANYONE who has a certificate signed by them can
151
+		#  authenticate via EAP-TLS!  This is likely not what you want.
152
+		tls {
153
+			#
154
+			#  These is used to simplify later configurations.
155
+			#
156
+			certdir = ${confdir}/certs
157
+			cadir = ${confdir}/certs
158
+
159
+			private_key_password = whatever
160
+			private_key_file = ${certdir}/server.key
161
+
162
+			#  If Private key & Certificate are located in
163
+			#  the same file, then private_key_file &
164
+			#  certificate_file must contain the same file
165
+			#  name.
166
+			#
167
+			#  If CA_file (below) is not used, then the
168
+			#  certificate_file below MUST include not
169
+			#  only the server certificate, but ALSO all
170
+			#  of the CA certificates used to sign the
171
+			#  server certificate.
172
+			certificate_file = ${certdir}/server.crt
173
+
174
+			#  Trusted Root CA list
175
+			#
176
+			#  ALL of the CA's in this list will be trusted
177
+			#  to issue client certificates for authentication.
178
+			#
179
+			#  In general, you should use self-signed
180
+			#  certificates for 802.1x (EAP) authentication.
181
+			#  In that case, this CA file should contain
182
+			#  *one* CA certificate.
183
+			#
184
+			#  This parameter is used only for EAP-TLS,
185
+			#  when you issue client certificates.  If you do
186
+			#  not use client certificates, and you do not want
187
+			#  to permit EAP-TLS authentication, then delete
188
+			#  this configuration item.
189
+			CA_file = ${cadir}/CA-wifi.crt
190
+
191
+			#
192
+			#  For DH cipher suites to work, you have to
193
+			#  run OpenSSL to create the DH file first:
194
+			#
195
+			#  	openssl dhparam -out certs/dh 1024
196
+			#
197
+			dh_file = ${certdir}/dh
198
+
199
+			#
200
+			#  If your system doesn't have /dev/urandom,
201
+			#  you will need to create this file, and
202
+			#  periodically change its contents.
203
+			#
204
+			#  For security reasons, FreeRADIUS doesn't
205
+			#  write to files in its configuration
206
+			#  directory.
207
+			#
208
+#			random_file = ${certdir}/random
209
+
210
+			#
211
+			#  This can never exceed the size of a RADIUS
212
+			#  packet (4096 bytes), and is preferably half
213
+			#  that, to accomodate other attributes in
214
+			#  RADIUS packet.  On most APs the MAX packet
215
+			#  length is configured between 1500 - 1600
216
+			#  In these cases, fragment size should be
217
+			#  1024 or less.
218
+			#
219
+		#	fragment_size = 1024
220
+
221
+			#  include_length is a flag which is
222
+			#  by default set to yes If set to
223
+			#  yes, Total Length of the message is
224
+			#  included in EVERY packet we send.
225
+			#  If set to no, Total Length of the
226
+			#  message is included ONLY in the
227
+			#  First packet of a fragment series.
228
+			#
229
+		#	include_length = yes
230
+
231
+			#  Check the Certificate Revocation List
232
+			#
233
+			#  1) Copy CA certificates and CRLs to same directory.
234
+			#  2) Execute 'c_rehash <CA certs&CRLs Directory>'.
235
+			#    'c_rehash' is OpenSSL's command.
236
+			#  3) uncomment the line below.
237
+			#  5) Restart radiusd
238
+		#	check_crl = yes
239
+			CA_path = ${cadir}
240
+
241
+		       #
242
+		       #  If check_cert_issuer is set, the value will
243
+		       #  be checked against the DN of the issuer in
244
+		       #  the client certificate.  If the values do not
245
+		       #  match, the cerficate verification will fail,
246
+		       #  rejecting the user.
247
+		       #
248
+		       #  In 2.1.10 and later, this check can be done
249
+		       #  more generally by checking the value of the
250
+		       #  TLS-Client-Cert-Issuer attribute.  This check
251
+		       #  can be done via any mechanism you choose.
252
+		       #
253
+		#       check_cert_issuer = "/C=GB/ST=Berkshire/L=Newbury/O=My Company Ltd"
254
+
255
+		       #
256
+		       #  If check_cert_cn is set, the value will
257
+		       #  be xlat'ed and checked against the CN
258
+		       #  in the client certificate.  If the values
259
+		       #  do not match, the certificate verification
260
+		       #  will fail rejecting the user.
261
+		       #
262
+		       #  This check is done only if the previous
263
+		       #  "check_cert_issuer" is not set, or if
264
+		       #  the check succeeds.
265
+		       #
266
+		       #  In 2.1.10 and later, this check can be done
267
+		       #  more generally by checking the value of the
268
+		       #  TLS-Client-Cert-CN attribute.  This check
269
+		       #  can be done via any mechanism you choose.
270
+		       #
271
+		#	check_cert_cn = %{User-Name}
272
+		#
273
+			# Set this option to specify the allowed
274
+			# TLS cipher suites.  The format is listed
275
+			# in "man 1 ciphers".
276
+			cipher_list = "DEFAULT"
277
+
278
+			#
279
+			# As part of checking a client certificate, the EAP-TLS
280
+			# sets some attributes such as TLS-Client-Cert-CN. This
281
+			# virtual server has access to these attributes, and can
282
+			# be used to accept or reject the request.
283
+			#
284
+		#	virtual_server = check-eap-tls
285
+
286
+			# This command creates the initial "snake oil"
287
+			# certificates when the server is run as root,
288
+			# and via "radiusd -X".
289
+			#
290
+			# As of 2.1.11, it *also* checks the server
291
+			# certificate for validity, including expiration.
292
+			# This means that radiusd will refuse to start
293
+			# when the certificate has expired.  The alternative
294
+			# is to have the 802.1X clients refuse to connect
295
+			# when they discover the certificate has expired.
296
+			#
297
+			# Debugging client issues is hard, so it's better
298
+			# for the server to print out an error message,
299
+			# and refuse to start.
300
+			#
301
+			# Redhat RPM's run the bootstrap certificate creation
302
+			# as part of the RPM install (not upgrade), therefore
303
+			# the make_cert_command is commented out.
304
+			#
305
+			#make_cert_command = "${certdir}/bootstrap"
306
+
307
+			#
308
+			#  Elliptical cryptography configuration
309
+			#
310
+			#  Only for OpenSSL >= 0.9.8.f
311
+			#
312
+			ecdh_curve = "prime256v1"
313
+
314
+			#
315
+			#  Session resumption / fast reauthentication
316
+			#  cache.
317
+			#
318
+			#  The cache contains the following information:
319
+			#
320
+			#  session Id - unique identifier, managed by SSL
321
+			#  User-Name  - from the Access-Accept
322
+			#  Stripped-User-Name - from the Access-Request
323
+			#  Cached-Session-Policy - from the Access-Accept
324
+			#
325
+			#  The "Cached-Session-Policy" is the name of a
326
+			#  policy which should be applied to the cached
327
+			#  session.  This policy can be used to assign
328
+			#  VLANs, IP addresses, etc.  It serves as a useful
329
+			#  way to re-apply the policy from the original
330
+			#  Access-Accept to the subsequent Access-Accept
331
+			#  for the cached session.
332
+			#
333
+			#  On session resumption, these attributes are
334
+			#  copied from the cache, and placed into the
335
+			#  reply list.
336
+			#
337
+			#  You probably also want "use_tunneled_reply = yes"
338
+			#  when using fast session resumption.
339
+			#
340
+			cache {
341
+			      #
342
+			      #  Enable it.  The default is "no".
343
+			      #  Deleting the entire "cache" subsection
344
+			      #  Also disables caching.
345
+			      #
346
+			      #  You can disallow resumption for a
347
+			      #  particular user by adding the following
348
+			      #  attribute to the control item list:
349
+			      #
350
+			      #		Allow-Session-Resumption = No
351
+			      #
352
+			      #  If "enable = no" below, you CANNOT
353
+			      #  enable resumption for just one user
354
+			      #  by setting the above attribute to "yes".
355
+			      #
356
+			      enable = no
357
+
358
+			      #
359
+			      #  Lifetime of the cached entries, in hours.
360
+			      #  The sessions will be deleted after this
361
+			      #  time.
362
+			      #
363
+			      lifetime = 24 # hours
364
+
365
+			      #
366
+			      #  The maximum number of entries in the
367
+			      #  cache.  Set to "0" for "infinite".
368
+			      #
369
+			      #  This could be set to the number of users
370
+			      #  who are logged in... which can be a LOT.
371
+			      #
372
+			      max_entries = 255
373
+			}
374
+
375
+			#
376
+			#  As of version 2.1.10, client certificates can be
377
+			#  validated via an external command.  This allows
378
+			#  dynamic CRLs or OCSP to be used.
379
+			#
380
+			#  This configuration is commented out in the
381
+			#  default configuration.  Uncomment it, and configure
382
+			#  the correct paths below to enable it.
383
+			#
384
+			verify {
385
+				#  A temporary directory where the client
386
+				#  certificates are stored.  This directory
387
+				#  MUST be owned by the UID of the server,
388
+				#  and MUST not be accessible by any other
389
+				#  users.  When the server starts, it will do
390
+				#  "chmod go-rwx" on the directory, for
391
+				#  security reasons.  The directory MUST
392
+				#  exist when the server starts.
393
+				#
394
+				#  You should also delete all of the files
395
+				#  in the directory when the server starts.
396
+		#     		tmpdir = /tmp/radiusd
397
+
398
+				#  The command used to verify the client cert.
399
+				#  We recommend using the OpenSSL command-line
400
+				#  tool.
401
+				#
402
+				#  The ${..CA_path} text is a reference to
403
+				#  the CA_path variable defined above.
404
+				#
405
+				#  The %{TLS-Client-Cert-Filename} is the name
406
+				#  of the temporary file containing the cert
407
+				#  in PEM format.  This file is automatically
408
+				#  deleted by the server when the command
409
+				#  returns.
410
+		#    		client = "/path/to/openssl verify -CApath ${..CA_path} %{TLS-Client-Cert-Filename}"
411
+			}
412
+
413
+			#
414
+			#  OCSP Configuration
415
+			#  Certificates can be verified against an OCSP
416
+			#  Responder. This makes it possible to immediately
417
+			#  revoke certificates without the distribution of
418
+			#  new Certificate Revokation Lists (CRLs).
419
+			#
420
+			ocsp {
421
+			      #
422
+			      #  Enable it.  The default is "no".
423
+			      #  Deleting the entire "ocsp" subsection
424
+			      #  Also disables ocsp checking
425
+			      #
426
+			      enable = no
427
+
428
+			      #
429
+			      #  The OCSP Responder URL can be automatically
430
+			      #  extracted from the certificate in question.
431
+			      #  To override the OCSP Responder URL set
432
+			      #  "override_cert_url = yes". 
433
+			      #
434
+			      override_cert_url = yes
435
+
436
+			      #
437
+			      #  If the OCSP Responder address is not
438
+			      #  extracted from the certificate, the
439
+			      #  URL can be defined here.
440
+
441
+			      #
442
+			      #  Limitation: Currently the HTTP
443
+			      #  Request is not sending the "Host: "
444
+			      #  information to the web-server.  This
445
+			      #  can be a problem if the OCSP
446
+			      #  Responder is running as a vhost.
447
+			      #
448
+			      url = "http://127.0.0.1/ocsp/"
449
+
450
+			      #
451
+			      # If the OCSP Responder can not cope with nonce
452
+			      # in the request, then it can be disabled here.
453
+			      #
454
+			      # For security reasons, disabling this option
455
+			      # is not recommended as nonce protects against
456
+			      # replay attacks.
457
+			      #
458
+			      # Note that Microsoft AD Certificate Services OCSP
459
+			      # Responder does not enable nonce by default. It is
460
+			      # more secure to enable nonce on the responder than
461
+			      # to disable it in the query here.
462
+			      # See http://technet.microsoft.com/en-us/library/cc770413%28WS.10%29.aspx
463
+			      #
464
+			      # use_nonce = yes
465
+
466
+			      #
467
+			      # Number of seconds before giving up waiting
468
+			      # for OCSP response. 0 uses system default.
469
+			      #
470
+			      # timeout = 0
471
+
472
+			      #
473
+			      # Normally an error in querying the OCSP
474
+			      # responder (no response from server, server did
475
+			      # not understand the request, etc) will result in
476
+			      # a validation failure.
477
+			      #
478
+			      # To treat these errors as 'soft' failures and
479
+			      # still accept the certificate, enable this
480
+			      # option.
481
+			      # 
482
+			      # Warning: this may enable clients with revoked
483
+			      # certificates to connect if the OCSP responder
484
+			      # is not available. Use with caution.
485
+			      #
486
+			      # softfail = no
487
+			}
488
+		}
489
+
490
+		#  The TTLS module implements the EAP-TTLS protocol,
491
+		#  which can be described as EAP inside of Diameter,
492
+		#  inside of TLS, inside of EAP, inside of RADIUS...
493
+		#
494
+		#  Surprisingly, it works quite well.
495
+		#
496
+		#  The TTLS module needs the TLS module to be installed
497
+		#  and configured, in order to use the TLS tunnel
498
+		#  inside of the EAP packet.  You will still need to
499
+		#  configure the TLS module, even if you do not want
500
+		#  to deploy EAP-TLS in your network.  Users will not
501
+		#  be able to request EAP-TLS, as it requires them to
502
+		#  have a client certificate.  EAP-TTLS does not
503
+		#  require a client certificate.
504
+		#
505
+		#  You can make TTLS require a client cert by setting
506
+		#
507
+		#	EAP-TLS-Require-Client-Cert = Yes
508
+		#
509
+		#  in the control items for a request.
510
+		#
511
+		ttls {
512
+			#  The tunneled EAP session needs a default
513
+			#  EAP type which is separate from the one for
514
+			#  the non-tunneled EAP module.  Inside of the
515
+			#  TTLS tunnel, we recommend using EAP-MD5.
516
+			#  If the request does not contain an EAP
517
+			#  conversation, then this configuration entry
518
+			#  is ignored.
519
+			default_eap_type = md5
520
+
521
+			#  The tunneled authentication request does
522
+			#  not usually contain useful attributes
523
+			#  like 'Calling-Station-Id', etc.  These
524
+			#  attributes are outside of the tunnel,
525
+			#  and normally unavailable to the tunneled
526
+			#  authentication request.
527
+			#
528
+			#  By setting this configuration entry to
529
+			#  'yes', any attribute which NOT in the
530
+			#  tunneled authentication request, but
531
+			#  which IS available outside of the tunnel,
532
+			#  is copied to the tunneled request.
533
+			#
534
+			# allowed values: {no, yes}
535
+			copy_request_to_tunnel = no
536
+
537
+			#  The reply attributes sent to the NAS are
538
+			#  usually based on the name of the user
539
+			#  'outside' of the tunnel (usually
540
+			#  'anonymous').  If you want to send the
541
+			#  reply attributes based on the user name
542
+			#  inside of the tunnel, then set this
543
+			#  configuration entry to 'yes', and the reply
544
+			#  to the NAS will be taken from the reply to
545
+			#  the tunneled request.
546
+			#
547
+			# allowed values: {no, yes}
548
+			use_tunneled_reply = no
549
+
550
+			#
551
+			#  The inner tunneled request can be sent
552
+			#  through a virtual server constructed
553
+			#  specifically for this purpose.
554
+			#
555
+			#  If this entry is commented out, the inner
556
+			#  tunneled request will be sent through
557
+			#  the virtual server that processed the
558
+			#  outer requests.
559
+			#
560
+			virtual_server = "inner-tunnel"
561
+
562
+			#  This has the same meaning as the
563
+			#  same field in the "tls" module, above.
564
+			#  The default value here is "yes".
565
+		#	include_length = yes
566
+		}
567
+
568
+		##################################################
569
+		#
570
+		#  !!!!! WARNINGS for Windows compatibility  !!!!!
571
+		#
572
+		##################################################
573
+		#
574
+		#  If you see the server send an Access-Challenge,
575
+		#  and the client never sends another Access-Request,
576
+		#  then
577
+		#
578
+		#		STOP!
579
+		#
580
+		#  The server certificate has to have special OID's
581
+		#  in it, or else the Microsoft clients will silently
582
+		#  fail.  See the "scripts/xpextensions" file for
583
+		#  details, and the following page:
584
+		#
585
+		#	http://support.microsoft.com/kb/814394/en-us
586
+		#
587
+		#  For additional Windows XP SP2 issues, see:
588
+		#
589
+		#	http://support.microsoft.com/kb/885453/en-us
590
+		#
591
+		#
592
+		#  If is still doesn't work, and you're using Samba,
593
+		#  you may be encountering a Samba bug.  See:
594
+		#
595
+		#	https://bugzilla.samba.org/show_bug.cgi?id=6563
596
+		#
597
+		#  Note that we do not necessarily agree with their
598
+		#  explanation... but the fix does appear to work.
599
+		#
600
+		##################################################
601
+
602
+		#
603
+		#  The tunneled EAP session needs a default EAP type
604
+		#  which is separate from the one for the non-tunneled
605
+		#  EAP module.  Inside of the TLS/PEAP tunnel, we
606
+		#  recommend using EAP-MS-CHAPv2.
607
+		#
608
+		#  The PEAP module needs the TLS module to be installed
609
+		#  and configured, in order to use the TLS tunnel
610
+		#  inside of the EAP packet.  You will still need to
611
+		#  configure the TLS module, even if you do not want
612
+		#  to deploy EAP-TLS in your network.  Users will not
613
+		#  be able to request EAP-TLS, as it requires them to
614
+		#  have a client certificate.  EAP-PEAP does not
615
+		#  require a client certificate.
616
+		#
617
+		#
618
+		#  You can make PEAP require a client cert by setting
619
+		#
620
+		#	EAP-TLS-Require-Client-Cert = Yes
621
+		#
622
+		#  in the control items for a request.
623
+		#
624
+		peap {
625
+			#  The tunneled EAP session needs a default
626
+			#  EAP type which is separate from the one for
627
+			#  the non-tunneled EAP module.  Inside of the
628
+			#  PEAP tunnel, we recommend using MS-CHAPv2,
629
+			#  as that is the default type supported by
630
+			#  Windows clients.
631
+			default_eap_type = mschapv2
632
+
633
+			#  the PEAP module also has these configuration
634
+			#  items, which are the same as for TTLS.
635
+			copy_request_to_tunnel = no
636
+			use_tunneled_reply = no
637
+
638
+			#  When the tunneled session is proxied, the
639
+			#  home server may not understand EAP-MSCHAP-V2.
640
+			#  Set this entry to "no" to proxy the tunneled
641
+			#  EAP-MSCHAP-V2 as normal MSCHAPv2.
642
+		#	proxy_tunneled_request_as_eap = yes
643
+
644
+			#
645
+			#  The inner tunneled request can be sent
646
+			#  through a virtual server constructed
647
+			#  specifically for this purpose.
648
+			#
649
+			#  If this entry is commented out, the inner
650
+			#  tunneled request will be sent through
651
+			#  the virtual server that processed the
652
+			#  outer requests.
653
+			#
654
+			virtual_server = "inner-tunnel"
655
+
656
+			# This option enables support for MS-SoH
657
+			# see doc/SoH.txt for more info.
658
+			# It is disabled by default.
659
+			#
660
+#			soh = yes
661
+
662
+			#
663
+			# The SoH reply will be turned into a request which
664
+			# can be sent to a specific virtual server:
665
+			#
666
+#			soh_virtual_server = "soh-server"
667
+		}
668
+
669
+		#
670
+		#  This takes no configuration.
671
+		#
672
+		#  Note that it is the EAP MS-CHAPv2 sub-module, not
673
+		#  the main 'mschap' module.
674
+		#
675
+		#  Note also that in order for this sub-module to work,
676
+		#  the main 'mschap' module MUST ALSO be configured.
677
+		#
678
+		#  This module is the *Microsoft* implementation of MS-CHAPv2
679
+		#  in EAP.  There is another (incompatible) implementation
680
+		#  of MS-CHAPv2 in EAP by Cisco, which FreeRADIUS does not
681
+		#  currently support.
682
+		#
683
+		mschapv2 {
684
+			#  Prior to version 2.1.11, the module never
685
+			#  sent the MS-CHAP-Error message to the
686
+			#  client.  This worked, but it had issues
687
+			#  when the cached password was wrong.  The
688
+			#  server *should* send "E=691 R=0" to the
689
+			#  client, which tells it to prompt the user
690
+			#  for a new password.
691
+			#
692
+			#  The default is to behave as in 2.1.10 and
693
+			#  earlier, which is known to work.  If you
694
+			#  set "send_error = yes", then the error
695
+			#  message will be sent back to the client.
696
+			#  This *may* help some clients work better,
697
+			#  but *may* also cause other clients to stop
698
+			#  working.
699
+			#
700
+#			send_error = no
701
+		}
702
+	}
0 703
new file mode 100644
... ...
@@ -0,0 +1,890 @@
1
+# -*- text -*-
2
+##
3
+## proxy.conf -- proxy radius and realm configuration directives
4
+##
5
+##	$Id: 413fc1438f266669a8e8913307f465da190c1ce8 $
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
+	#  However, it means that the server (i.e. proxy) NEVER
36
+	#  originates packets.  It proxies packets ONLY when it receives
37
+	#  a packet or a re-transmission from the NAS.  If the NAS never
38
+	#  re-transmits, the proxy never re-transmits, either.  This can
39
+	#  affect fail-over, where a packet does *not* fail over to a
40
+	#  second home server.. because the NAS never retransmits the
41
+	#  packet.
42
+	#
43
+	#  If you need to set "synchronous = no", please send a
44
+	#  message to the list <freeradius-users@lists.freeradius.org>
45
+	#  explaining why this feature is vital for your network.
46
+
47
+	#
48
+	#  If a realm exists, but there are no live home servers for
49
+	#  it, we can fall back to using the "DEFAULT" realm.  This is
50
+	#  most useful for accounting, where the server can proxy
51
+	#  accounting requests to home servers, but if they're down,
52
+	#  use a DEFAULT realm that is LOCAL (i.e. accthost = LOCAL),
53
+	#  and then store the packets in the "detail" file.  That data
54
+	#  can be later proxied to the home servers by radrelay, when
55
+	#  those home servers come back up again.	
56
+
57
+	#  Setting this to "yes" may have issues for authentication.
58
+	#  i.e. If you are proxying for two different ISP's, and then
59
+	#  act as a general dial-up for Gric.  If one of the first two
60
+	#  ISP's has their RADIUS server go down, you do NOT want to
61
+	#  proxy those requests to GRIC.  Instead, you probably want
62
+	#  to just drop the requests on the floor.  In that case, set
63
+	#  this value to 'no'.
64
+	#
65
+	#  allowed values: {yes, no}
66
+	#
67
+	default_fallback = no
68
+
69
+}
70
+
71
+#######################################################################
72
+#
73
+#  Configuration for the proxy realms.
74
+#
75
+#  As of 2.0. the old-style "realms" file is deprecated, and is not
76
+#  used by FreeRADIUS.
77
+#
78
+#  As of 2.0, the "realm" configuration has changed.  Instead of
79
+#  specifying "authhost" and "accthost" in a realm section, the home
80
+#  servers are specified seperately in a "home_server" section.  For
81
+#  backwards compatibility, you can still use the "authhost" and
82
+#  "accthost" directives.  If you only have one home server for a
83
+#  realm, it is easier to use the old-style configuration.
84
+#
85
+#  However, if you have multiple servers for a realm, we STRONGLY
86
+#  suggest moving to the new-style configuration.
87
+#
88
+#
89
+#  Load-balancing and failover between home servers is handled via
90
+#  a "home_server_pool" section.
91
+#
92
+#  Finally, The "realm" section defines the realm, some options, and
93
+#  indicates which server pool should be used for the realm.
94
+#
95
+#  This change means that simple configurations now require multiple
96
+#  sections to define a realm.  However, complex configurations
97
+#  are much simpler than before, as multiple realms can share the same
98
+#  server pool.
99
+#
100
+#  That is, realms point to server pools, and server pools point to
101
+#  home servers.  Multiple realms can point to one server pool.  One
102
+#  server pool can point to multiple home servers.  Each home server
103
+#  can appear in one or more pools.
104
+#
105
+
106
+######################################################################
107
+#
108
+#  This section defines a "Home Server" which is another RADIUS
109
+#  server that gets sent proxied requests.  In earlier versions
110
+#  of FreeRADIUS, home servers were defined in "realm" sections,
111
+#  which was awkward.  In 2.0, they have been made independent
112
+#  from realms, which is better for a number of reasons.
113
+#
114
+home_server localhost {
115
+	#
116
+	#  Home servers can be sent Access-Request packets
117
+	#  or Accounting-Request packets.
118
+	#
119
+	#  Allowed values are:
120
+	#	auth	  - Handles Access-Request packets
121
+	#	acct	  - Handles Accounting-Request packets
122
+	#	auth+acct - Handles Access-Request packets at "port",
123
+	#		    and Accounting-Request packets at "port + 1"
124
+	#	coa	  - Handles CoA-Request and Disconnect-Request packets.
125
+	#		    See also raddb/sites-available/originate-coa
126
+	type = auth
127
+
128
+	#
129
+	#  Configure ONE OF the following entries:
130
+	#
131
+	#	IPv4 address
132
+	#
133
+	ipaddr = 127.0.0.1
134
+
135
+	#	OR IPv6 address
136
+	# ipv6addr = ::1
137
+
138
+	#	OR virtual server	
139
+	# virtual_server = foo
140
+
141
+	#	Note that while both ipaddr and ipv6addr will accept
142
+	#	both addresses and host names, we do NOT recommend
143
+	#	using host names.  When you specify a host name, the
144
+	#	server has to do a DNS lookup to find the IP address
145
+	#	of the home server.  If the DNS server is slow or
146
+	#	unresponsive, it means that FreeRADIUS will NOT be
147
+	#	able to determine the address, and will therefore NOT
148
+	#	start.
149
+	#
150
+	#	Also, the mapping of host name to address is done ONCE
151
+	#	when the server starts.  If DNS is later updated to
152
+	#	change the address, FreeRADIUS will NOT discover that
153
+	#	until after a re-start, or a HUP.
154
+	#
155
+	#	If you specify a virtual_server here, then requests
156
+	#	will be proxied internally to that virtual server.
157
+	#	These requests CANNOT be proxied again, however.  The
158
+	#	intent is to have the local server handle packets
159
+	#	when all home servers are dead.
160
+	#
161
+	#	Requests proxied to a virtual server will be passed
162
+	#	through the pre-proxy and post-proxy sections, just
163
+	#	like any other request.  See also the sample "realm"
164
+	#	configuration, below.
165
+	#
166
+	#	None of the rest of the home_server configuration is used
167
+	#	for the "virtual_server" configuration.
168
+
169
+	#
170
+	#  The port to which packets are sent.
171
+	#
172
+	#  Usually 1812 for type "auth", and  1813 for type "acct".
173
+	#  Older servers may use 1645 and 1646.
174
+	#  Use 3799 for type "coa"
175
+	#
176
+	port = 1812
177
+
178
+	#
179
+	#  The shared secret use to "encrypt" and "sign" packets between
180
+	#  FreeRADIUS and the home server.
181
+	#
182
+	#  The secret can be any string, up to 8k characters in length.
183
+	#
184
+	#  Control codes can be entered vi octal encoding,
185
+	#	e.g. "\101\102" == "AB"
186
+	#  Quotation marks can be entered by escaping them,
187
+	#	e.g. "foo\"bar"
188
+	#  Spaces or other "special" characters can be entered
189
+	#  by putting quotes around the string.
190
+	#	e.g. "foo bar"
191
+	#	     "foo;bar"
192
+	#
193
+	secret = testing123
194
+
195
+	############################################################
196
+	#
197
+	#  The rest of the configuration items listed here are optional,
198
+	#  and do not have to appear in every home server definition.
199
+	#
200
+	############################################################
201
+
202
+	#
203
+	#  You can optionally specify the source IP address used when
204
+	#  proxying requests to this home server.  When the src_ipaddr
205
+	#  it set, the server will automatically create a proxy
206
+	#  listener for that IP address.
207
+	#
208
+	#  If you specify this field for one home server, you will
209
+	#  likely need to specify it for ALL home servers.
210
+	#
211
+	#  If you don't care about the source IP address, leave this
212
+	#  entry commented.
213
+	#
214
+#	src_ipaddr = 127.0.0.1
215
+
216
+	#  RFC 5080 suggests that all clients SHOULD include it in an
217
+	#  Access-Request.  The configuration item below tells the
218
+	#  proxying server (i.e. this one) whether or not the home
219
+	#  server requires a Message-Authenticator attribute.  If it
220
+	#  is required (value set to "yes"), then all Access-Request
221
+	#  packets sent to that home server will have a
222
+	#  Message-Authenticator attribute.
223
+	#
224
+	#  We STRONGLY recommend that this flag be set to "yes"
225
+	#  for ALL home servers.  Doing so will have no performance
226
+	#  impact on the proxy or on the home servers.  It will,
227
+	#  however, allow administrators to detect problems earlier.
228
+	#
229
+	#  allowed values: yes, no
230
+	require_message_authenticator = yes
231
+
232
+	#
233
+	#  If the home server does not respond to a request within
234
+	#  this time, the server marks the request as timed out.
235
+	#  After "response_timeouts", the home server is marked
236
+	#  as being "zombie", and "zombie_period" starts.
237
+	#
238
+	#  The response window can be a number between 0.001 and 60.000
239
+	#  Values on the low end are discouraged, as they will likely
240
+	#  not work due to limitations of operating system timers.
241
+	#
242
+	#  The response window is large because responses MAY be slow,
243
+	#  especially when proxying across the Internet.
244
+	#
245
+	#  Useful range of values: 5 to 60
246
+	response_window = 20
247
+
248
+	#
249
+	#  Start "zombie_period" after this many responses have
250
+	#  timed out.
251
+	#
252
+#	response_timeouts = 1
253
+
254
+	#
255
+	#  If you want the old behavior of the server rejecting
256
+	#  proxied requests after "response_window" timeout, set
257
+	#  the following configuration item to "yes".
258
+	#
259
+	#  This configuration WILL be removed in a future release
260
+	#  If you believe you need it, email the freeradius-users
261
+	#  list, and explain why it should stay in the server.
262
+	#
263
+#	no_response_fail = no
264
+
265
+	#
266
+	#  If the home server does not respond to ANY packets during
267
+	#  the "zombie period", it will be considered to be dead.
268
+	#
269
+	#  A home server that is marked "zombie" will be used for
270
+	#  proxying as a low priority.  If there are live servers,
271
+	#  they will always be preferred to a zombie.  Requests will
272
+	#  be proxied to a zombie server ONLY when there are no
273
+	#  live servers.
274
+	#
275
+	#  Any request that is proxied to a home server will continue
276
+	#  to be sent to that home server until the home server is
277
+	#  marked dead.  At that point, it will fail over to another
278
+	#  server, if a live server is available.  If none is available,
279
+	#  then the "post-proxy-type fail" handler will be called.
280
+	#
281
+	#  If "status_check" below is something other than "none", then
282
+	#  the server will start sending status checks at the start of
283
+	#  the zombie period.  It will continue sending status checks
284
+	#  until the home server is marked "alive".
285
+	#
286
+	#  Useful range of values: 20 to 120
287
+	zombie_period = 40
288
+
289
+	############################################################
290
+	#
291
+	#  As of 2.0, FreeRADIUS supports RADIUS layer "status
292
+	#  checks".  These are used by a proxy server to see if a home
293
+	#  server is alive.
294
+	#
295
+	#  These status packets are sent ONLY if the proxying server
296
+	#  believes that the home server is dead.  They are NOT sent
297
+	#  if the proxying server believes that the home server is
298
+	#  alive.  They are NOT sent if the proxying server is not
299
+	#  proxying packets.
300
+	#
301
+	#  If the home server responds to the status check packet,
302
+	#  then it is marked alive again, and is returned to use.
303
+	#
304
+	############################################################
305
+
306
+	#
307
+	#  Some home servers do not support status checks via the
308
+	#  Status-Server packet.  Others may not have a "test" user
309
+	#  configured that can be used to query the server, to see if
310
+	#  it is alive.  For those servers, we have NO WAY of knowing
311
+	#  when it becomes alive again.  Therefore, after the server
312
+	#  has been marked dead, we wait a period of time, and mark
313
+	#  it alive again, in the hope that it has come back to
314
+	#  life.
315
+	#
316
+	#  If it has NOT come back to life, then FreeRADIUS will wait
317
+	#  for "zombie_period" before marking it dead again.  During
318
+	#  the "zombie_period", ALL AUTHENTICATIONS WILL FAIL, because
319
+	#  the home server is still dead.  There is NOTHING that can
320
+	#  be done about this, other than to enable the status checks,
321
+	#  as documented below.
322
+	#
323
+	#  e.g. if "zombie_period" is 40 seconds, and "revive_interval"
324
+	#  is 300 seconds, the for 40 seconds out of every 340, or about
325
+	#  10% of the time, all authentications will fail.
326
+	#
327
+	#  If the "zombie_period" and "revive_interval" configurations
328
+	#  are set smaller, than it is possible for up to 50% of
329
+	#  authentications to fail.
330
+	#
331
+	#  As a result, we recommend enabling status checks, and
332
+	#  we do NOT recommend using "revive_interval".
333
+	#
334
+	#  The "revive_interval" is used ONLY if the "status_check"
335
+	#  entry below is "none".  Otherwise, it will not be used,
336
+	#  and should be deleted.
337
+	#
338
+	#  Useful range of values: 60 to 3600
339
+	revive_interval = 120
340
+
341
+	#
342
+	#  The proxying server (i.e. this one) can do periodic status
343
+	#  checks to see if a dead home server has come back alive.
344
+	#
345
+	#  If set to "none", then the other configuration items listed
346
+	#  below are not used, and the "revive_interval" time is used
347
+	#  instead.
348
+	#
349
+	#  If set to "status-server", the Status-Server packets are
350
+	#  sent.  Many RADIUS servers support Status-Server.  If a
351
+	#  server does not support it, please contact the server
352
+	#  vendor and request that they add it.
353
+	#
354
+	#  If set to "request", then Access-Request, or Accounting-Request
355
+	#  packets are sent, depending on the "type" entry above (auth/acct).
356
+	#  
357
+	#  Allowed values: none, status-server, request
358
+	status_check = status-server
359
+
360
+	#
361
+	#  If the home server does not support Status-Server packets,
362
+	#  then the server can still send Access-Request or
363
+	#  Accounting-Request packets, with a pre-defined user name.
364
+	#
365
+	#  This practice is NOT recommended, as it may potentially let
366
+	#  users gain network access by using these "test" accounts!
367
+	#
368
+	#  If it is used, we recommend that the home server ALWAYS
369
+	#  respond to these Access-Request status checks with
370
+	#  Access-Reject.  The status check just needs an answer, it
371
+	#  does not need an Access-Accept.
372
+	#
373
+	#  For Accounting-Request status checks, only the username
374
+	#  needs to be set.  The rest of the accounting attribute are
375
+	#  set to default values.  The home server that receives these
376
+	#  accounting packets SHOULD NOT treat them like normal user
377
+	#  accounting packets.  i.e It should probably NOT log them to
378
+	#  a database.
379
+	#
380
+	# username = "test_user_please_reject_me"
381
+	# password = "this is really secret"
382
+
383
+	#
384
+	#  Configure the interval between sending status check packets.
385
+	#
386
+	#  Setting it too low increases the probability of spurious
387
+	#  fail-over and fallback attempts.
388
+	#
389
+	#  Useful range of values: 6 to 120
390
+	check_interval = 30
391
+
392
+	#
393
+	#  Configure the number of status checks in a row that the
394
+	#  home server needs to respond to before it is marked alive.
395
+	#
396
+	#  If you want to mark a home server as alive after a short
397
+	#  time period of being responsive, it is best to use a small
398
+	#  "check_interval", and a large value for
399
+	#  "num_answers_to_alive".  Using a long "check_interval" and
400
+	#  a small number for "num_answers_to_alive" increases the
401
+	#  probability of spurious fail-over and fallback attempts.
402
+	#
403
+	#  Useful range of values: 3 to 10
404
+	num_answers_to_alive = 3
405
+
406
+	#
407
+	#  Limit the total number of outstanding packets to the home
408
+	#  server.
409
+	#
410
+	#  if ((#request sent) - (#requests received)) > max_outstanding
411
+	#	then stop sending more packets to the home server
412
+	#
413
+	#  This lets us gracefully fall over when the home server
414
+	#  is overloaded.
415
+	max_outstanding = 65536
416
+
417
+	#
418
+	#  The configuration items in the next sub-section are used ONLY
419
+	#  when "type = coa".  It is ignored for all other type of home
420
+	#  servers.
421
+	#
422
+	#  See RFC 5080 for the definitions of the following terms.
423
+	#  RAND is a function (internal to FreeRADIUS) returning
424
+	#  random numbers between -0.1 and +0.1
425
+	#
426
+	#  First Re-transmit occurs after:
427
+	#
428
+	#	 RT = IRT + RAND*IRT
429
+	#
430
+	#  Subsequent Re-transmits occur after:
431
+	#
432
+	#	RT = 2 * RTprev + RAND * RTprev
433
+	#
434
+	#  Re-trasnmits are capped at:
435
+	#
436
+	#	if (MRT && (RT > MRT)) RT = MRT + RAND * MRT
437
+	#
438
+	#  For a maximum number of attempts: MRC
439
+	#
440
+	#  For a maximum (total) period of time: MRD.
441
+	#
442
+	coa {
443
+		# Initial retransmit interval: 1..5
444
+		irt = 2
445
+
446
+		# Maximum Retransmit Timeout: 1..30 (0 == no maximum)
447
+		mrt = 16
448
+
449
+		# Maximum Retransmit Count: 1..20 (0 == retransmit forever)
450
+		mrc = 5
451
+
452
+		# Maximum Retransmit Duration: 5..60
453
+		mrd = 30
454
+	}
455
+}
456
+
457
+# Sample virtual home server.
458
+# 
459
+#
460
+#home_server virtual.example.com {
461
+#	    virtual_server = virtual.example.com
462
+#}
463
+
464
+######################################################################
465
+#
466
+#  This section defines a pool of home servers that is used
467
+#  for fail-over and load-balancing.  In earlier versions of
468
+#  FreeRADIUS, fail-over and load-balancing were defined per-realm.
469
+#  As a result, if a server had 5 home servers, each of which served
470
+#  the same 10 realms, you would need 50 "realm" entries.
471
+#
472
+#  In version 2.0, you would need 5 "home_server" sections,
473
+#  10 'realm" sections, and one "home_server_pool" section to tie the
474
+#  two together.
475
+#
476
+home_server_pool my_auth_failover {
477
+	#
478
+	#  The type of this pool controls how home servers are chosen.
479
+	#
480
+	#  fail-over - the request is sent to the first live
481
+	#  	home server in the list.  i.e. If the first home server
482
+	#	is marked "dead", the second one is chosen, etc.
483
+	#
484
+	#  load-balance - the least busy home server is chosen,
485
+	#	where "least busy" is counted by taking the number of
486
+	#	requests sent to that home server, and subtracting the
487
+	#	number of responses received from that home server.
488
+	#
489
+	#	If there are two or more servers with the same low
490
+	#	load, then one of those servers is chosen at random.
491
+	#	This configuration is most similar to the old
492
+	#	"round-robin" method, though it is not exactly the same.
493
+	#
494
+	#	Note that load balancing does not work well with EAP,
495
+	#	as EAP requires packets for an EAP conversation to be
496
+	#	sent to the same home server.  The load balancing method
497
+	#	does not keep state in between packets, meaning that
498
+	#	EAP packets for the same conversation may be sent to
499
+	#	different home servers.  This will prevent EAP from
500
+	#	working.
501
+	#
502
+	#	For non-EAP authentication methods, and for accounting
503
+	#	packets, we recommend using "load-balance".  It will
504
+	#	ensure the highest availability for your network.
505
+	#
506
+	#  client-balance - the home server is chosen by hashing the
507
+	#	source IP address of the packet.  If that home server
508
+	#	is down, the next one in the list is used, just as
509
+	#	with "fail-over".
510
+	#
511
+	#	There is no way of predicting which source IP will map
512
+	#	to which home server.
513
+	#
514
+	#	This configuration is most useful to do simple load
515
+	#	balancing for EAP sessions, as the EAP session will
516
+	#	always be sent to the same home server.
517
+	#
518
+	#  client-port-balance - the home server is chosen by hashing
519
+	#	the source IP address and source port of the packet.
520
+	#	If that home server is down, the next one in the list
521
+	#	is used, just as with "fail-over".
522
+	#
523
+	#	This method provides slightly better load balancing
524
+	#	for EAP sessions than "client-balance".  However, it
525
+	#	also means that authentication and accounting packets
526
+	#	for the same session MAY go to different home servers.
527
+	#
528
+	#  keyed-balance - the home server is chosen by hashing (FNV)
529
+	#	the contents of the Load-Balance-Key attribute from the
530
+	#	control items.  The  request is then sent to home server
531
+	#	chosen by taking:
532
+	#
533
+	#		server = (hash % num_servers_in_pool).
534
+	#
535
+	#	If there is no Load-Balance-Key in the control items,
536
+	#	the load balancing method is identical to "load-balance".
537
+	#
538
+	#	For most non-EAP authentication methods, The User-Name
539
+	#	attribute provides a good key.  An "unlang" policy can
540
+	#	be used to copy the User-Name to the Load-Balance-Key
541
+	#	attribute.  This method may not work for EAP sessions,
542
+	#	as the User-Name outside of the TLS tunnel is often
543
+	#	static, e.g. "anonymous@realm".
544
+	#
545
+	#
546
+	#  The default type is fail-over.
547
+	type = fail-over
548
+
549
+	#
550
+	#  A virtual_server may be specified here.  If so, the
551
+	#  "pre-proxy" and "post-proxy" sections are called when
552
+	#  the request is proxied, and when a response is received.
553
+	#
554
+	#  This lets you have one policy for all requests that are proxied
555
+	#  to a home server.  This policy is completely independent of
556
+	#  any policies used to receive, or process the request.
557
+	#
558
+	#virtual_server = pre_post_proxy_for_pool
559
+
560
+	#
561
+	#  Next, a list of one or more home servers.  The names
562
+	#  of the home servers are NOT the hostnames, but the names
563
+	#  of the sections.  (e.g. home_server foo {...} has name "foo".
564
+	#
565
+	#  Note that ALL home servers listed here have to be of the same
566
+	#  type.  i.e. they all have to be "auth", or they all have to
567
+	#  be "acct", or the all have to be "auth+acct".
568
+	#
569
+	home_server = localhost
570
+
571
+	#  Additional home servers can be listed.
572
+	#  There is NO LIMIT to the number of home servers that can
573
+	#  be listed, though using more than 10 or so will become
574
+	#  difficult to manage.
575
+	#
576
+	# home_server = foo.example.com
577
+	# home_server = bar.example.com
578
+	# home_server = baz.example.com
579
+	# home_server = ...
580
+
581
+
582
+	#
583
+	#  If ALL home servers are dead, then this "fallback" home server
584
+	#  is used.  If set, it takes precedence over any realm-based
585
+	#  fallback, such as the DEFAULT realm.
586
+	#
587
+	#  For reasons of stability, this home server SHOULD be a virtual
588
+	#  server.  Otherwise, the fallback may itself be dead!
589
+	#
590
+	#fallback = virtual.example.com
591
+}
592
+
593
+######################################################################
594
+#
595
+#
596
+#  This section defines a new-style "realm".  Note the in version 2.0,
597
+#  there are many fewer configuration items than in 1.x for a realm.
598
+#
599
+#  Automatic proxying is done via the "realms" module (see "man
600
+#  rlm_realm").  To manually proxy the request put this entry in the
601
+#  "users" file:
602
+
603
+#
604
+#
605
+#DEFAULT	Proxy-To-Realm := "realm_name"
606
+#
607
+#
608
+realm example.com {
609
+	#
610
+	#  Realms point to pools of home servers.
611
+#
612
+	#  For authentication, the "auth_pool" configuration item
613
+	#  should point to a "home_server_pool" that was previously
614
+	#  defined.  All of the home servers in the "auth_pool" must
615
+	#  be of type "auth".
616
+	#
617
+	#  For accounting, the "acct_pool" configuration item
618
+	#  should point to a "home_server_pool" that was previously
619
+	#  defined.  All of the home servers in the "acct_pool" must
620
+	#  be of type "acct".
621
+	#
622
+	#  If you have a "home_server_pool" where all of the home servers
623
+	#  are of type "auth+acct", you can just use the "pool"
624
+	#  configuration item, instead of specifying both "auth_pool"
625
+	#  and "acct_pool".
626
+
627
+	auth_pool = my_auth_failover
628
+#	acct_pool = acct
629
+
630
+	#
631
+	#  Normally, when an incoming User-Name is matched against the
632
+	#  realm, the realm name is "stripped" off, and the "stripped"
633
+	#  user name is used to perform matches.
634
+	#
635
+	#  e.g. User-Name = "bob@example.com" will result in two new
636
+	#  attributes being created by the "realms" module:
637
+	#
638
+	#	Stripped-User-Name = "bob"
639
+	#	Realm = "example.com"
640
+	#
641
+	#  The Stripped-User-Name is then used as a key in the "users"
642
+	#  file, for example.
643
+	#
644
+	#  If you do not want this to happen, uncomment "nostrip" below.
645
+	#
646
+	# nostrip
647
+
648
+	#  There are no more configuration entries for a realm.
649
+}
650
+
651
+
652
+#
653
+#  This is a sample entry for iPass.
654
+#  Note that you have to define "ipass_auth_pool" and
655
+#  "ipass_acct_pool", along with home_servers for them, too.
656
+#
657
+#realm IPASS {
658
+#	nostrip
659
+#
660
+#	auth_pool = ipass_auth_pool
661
+#	acct_pool = ipass_acct_pool
662
+#}
663
+
664
+#
665
+#  This realm is used mainly to cancel proxying.  You can have
666
+#  the "realm suffix" module configured to proxy all requests for
667
+#  a realm, and then later cancel the proxying, based on other
668
+#  configuration.
669
+#
670
+#  For example, you want to terminate PEAP or EAP-TTLS locally,
671
+#  you can add the following to the "users" file:
672
+#
673
+#  DEFAULT EAP-Type == PEAP, Proxy-To-Realm := LOCAL
674
+#
675
+realm LOCAL {
676
+	#  If we do not specify a server pool, the realm is LOCAL, and
677
+	#  requests are not proxied to it
678
+}
679
+
680
+#
681
+#  This realm is for requests which don't have an explicit realm
682
+#  prefix or suffix.  User names like "bob" will match this one.
683
+#
684
+realm NULL {
685
+   virtual_server = reject_null_realm
686
+}
687
+
688
+#
689
+#  This realm is for ALL OTHER requests.
690
+#
691
+#realm DEFAULT {
692
+#	authhost	= radius.company.com:1600
693
+#	accthost	= radius.company.com:1601
694
+#	secret		= testing123
695
+#}
696
+
697
+
698
+#  This realm "proxies" requests internally to a virtual server.
699
+#  The pre-proxy and post-proxy sections are run just as with any
700
+#  other kind of home server.  The virtual server then receives
701
+#  the request, and replies, just as with any other packet.
702
+#
703
+#  Once proxied internally like this, the request CANNOT be proxied
704
+#  internally or externally.
705
+#
706
+#realm virtual.example.com {
707
+#	virtual_server = virtual.example.com
708
+#}
709
+#
710
+
711
+#
712
+#  Regular expressions may also be used as realm names.  If these are used,
713
+#  then the "find matching realm" process is as follows:
714
+#
715
+#    1) Look for a non-regex realm with an *exact* match for the name.
716
+#       If found, it is used in preference to any regex matching realm.
717
+#
718
+#    2) Look for a regex realm, in the order that they are listed
719
+#       in the configuration files.  Any regex match is performed in
720
+#	a case-insensitive fashion.
721
+#
722
+#    3) If no realm is found, return the DEFAULT realm, if any.
723
+#
724
+#  The order of the realms matters in step (2).  For example, defining
725
+#  two realms ".*\.example.net$" and ".*\.test\.example\.net$" will result in
726
+#  the second realm NEVER matching.  This is because all of the realms
727
+#  which match the second regex also match the first one.  Since the
728
+#  first regex matches, it is returned.
729
+#
730
+#  The solution is to list the realms in the opposite order,. e.g.
731
+#  ".*\.test\.example.net$", followed by ".*\.example\.net$".
732
+#
733
+#
734
+#  Some helpful rules:
735
+#
736
+#   - always place a '~' character at the start of the realm name.
737
+#     This signifies that it is a regex match, and not an exact match
738
+#     for the realm.
739
+#
740
+#   - place the regex in double quotes.  This helps the configuration
741
+#     file parser ignore any "special" characters in the regex.
742
+#     Yes, this rule is different than the normal "unlang" rules for
743
+#     regular expressions.  That may be fixed in a future release.
744
+#
745
+#   - use two back-slashes '\\' whenever you need one backslash in the
746
+#     regex.  e.g. "~.*\\.example\\.net$", and not "~\.example\.net$".
747
+#     This is because the regex is in a double-quoted string, and normal
748
+#     rules apply for double-quoted strings.
749
+#
750
+#   - If you are matching domain names, use two backslashes in front of
751
+#     every '.' (dot or period).  This is because '.' has special meaning
752
+#     in a regular expression: match any character.  If you do not do this,
753
+#     then "~.*.example.net$" will match "fooXexampleYnet", which is likely
754
+#     not what you want
755
+#
756
+#   - If you are matching domain names, put a '$' at the end of the regex
757
+#     that matches the domain name.  This tells the regex matching code
758
+#     that the realm ENDS with the domain name, so it does not match
759
+#     realms with the domain name in the middle.  e.g. "~.*\\.example\\.net"
760
+#     will match "test.example.netFOO", which is likely not what you want.
761
+#     Using "~(.*\\.)example\\.net$" is better.
762
+#
763
+#  The more regex realms that are defined, the more time it takes to
764
+#  process them.  You should define as few regex realms as possible
765
+#  in order to maximize server performance.
766
+#
767
+#realm "~(.*\\.)*example\\.net$" {
768
+#      auth_pool = my_auth_failover
769
+#}
770
+
771
+home_server btlr.eduroam.bg {
772
+        type = auth+acct
773
+        ipaddr = 194.141.99.99
774
+        port = 1812
775
+        secret = 2d6923487de9c3889db5a5fedf489726a19bc3a779477efcfe3f6b894d35
776
+}
777
+
778
+home_server btlr2.eduroam.bg {
779
+        type = auth+acct
780
+        ipaddr = 91.210.88.28
781
+        port = 1812
782
+        secret = 922d400dfaa72f2f2d040671a420b6aa4bc202788a192c130a7034f7a386
783
+}
784
+
785
+home_server_pool eduroam {
786
+        type = fail-over
787
+        home_server = btlr.eduroam.bg
788
+        home_server = btlr2.eduroam.bg
789
+
790
+}
791
+
792
+realm DEFAULT {
793
+   pool = eduroam
794
+   nostrip
795
+
796
+#   authhost = 62.44.96.165:1812
797
+#   accthost = 62.44.96.165:1813
798
+#   secret = e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
799
+#   nostrip
800
+}
801
+
802
+realm "admin.uni-sofia.bg" {
803
+   type = radius
804
+   authhost = LOCAL
805
+   accthost = LOCAL
806
+   nostrip
807
+}
808
+
809
+realm "chem.uni-sofia.bg" {
810
+   authhost = 62.44.102.7:1812
811
+   accthost = 62.44.102.7:1813
812
+   secret = NmUxYWE4NWFkMTNmZDNjZDYzOThjODY2ZDMwZjliZDE0ZTNiMTg1ZGY3NmM0MzJhZTQ2ZDRjODY0
813
+   nostrip
814
+}
815
+
816
+realm "fmi.uni-sofia.bg" {
817
+   authhost = 62.44.96.49:1812
818
+   accthost = 62.44.96.49:1813
819
+   secret = lajnasbarutibozaskosmi
820
+   nostrip
821
+}
822
+
823
+realm "lcpe.uni-sofia.bg" {
824
+   authhost = 62.44.103.23:1812
825
+   accthost = 62.44.103.23:1813
826
+   secret = kaBXH6xeTTxqF8EqAqkp1cgzJbe1lzhkSCMNyvJegxNcu6loApEHQjHgZdmjN07yz9JwRl1yugzB
827
+   nostrip
828
+}
829
+
830
+realm "eap-tls.uni-sofia.bg" {
831
+   authhost = 62.44.127.19:1812
832
+   accthost = 62.44.127.19:1813
833
+   secret = kaBXH6xeTTxqF8EqAqkp1cgzJbe1lzhkSCMNyvJegxNcu6loApEHQjHgZdmjN07yz9JwRl1yugzB
834
+   nostrip
835
+}
836
+
837
+realm "libsu.uni-sofia.bg" {
838
+   type = radius
839
+   authhost = LOCAL
840
+   accthost = LOCAL
841
+   nostrip
842
+}
843
+
844
+realm "nis.uni-sofia.bg" {
845
+   type = radius
846
+   authhost = LOCAL
847
+   accthost = LOCAL
848
+   nostrip
849
+}
850
+
851
+realm "noc.uni-sofia.bg" {
852
+   type = radius
853
+   authhost = LOCAL
854
+   accthost = LOCAL
855
+   nostrip
856
+}
857
+
858
+realm "phys.uni-sofia.bg" {
859
+   authhost = 62.44.98.1:1812
860
+   accthost = 62.44.98.1:1813
861
+   secret = EHSJ4c3GSK0hm7EtQ7zgX/M+3iOvLiB7os16R0jwFFpaSzosA1Ix0mgJdr9BF1qw0d5n+uYC1mJ+
862
+   nostrip
863
+}
864
+
865
+realm "theo.uni-sofia.bg" {
866
+   type = radius
867
+   authhost = LOCAL
868
+   accthost = LOCAL
869
+   nostrip
870
+}
871
+
872
+realm "ucc.uni-sofia.bg" {
873
+   type = radius
874
+   authhost = LOCAL
875
+   accthost = LOCAL
876
+   nostrip
877
+}
878
+
879
+realm "uni-sofia.bg" {
880
+   authhost = 62.44.96.49:1812
881
+   accthost = 62.44.96.49:1813
882
+   secret = lajnasbarutibozaskosmi
883
+   nostrip
884
+}
885
+
886
+realm "~(.*\\.)*uni-sofia\\.bg$" {
887
+       authhost = LOCAL
888
+       accthost = LOCAL
889
+}
890
+
0 891
new file mode 100644
... ...
@@ -0,0 +1,859 @@
1
+# -*- text -*-
2
+##
3
+## radiusd.conf	-- FreeRADIUS server configuration file.
4
+##
5
+##	http://www.freeradius.org/
6
+##	$Id: 201b70b31b5bb4c2ef98c102690daa3462d5e1e3 $
7
+##
8
+
9
+######################################################################
10
+#
11
+#	Read "man radiusd" before editing this file.  See the section
12
+#	titled DEBUGGING.  It outlines a method where you can quickly
13
+#	obtain the configuration you want, without running into
14
+#	trouble.
15
+#
16
+#	Run the server in debugging mode, and READ the output.
17
+#
18
+#		$ radiusd -X
19
+#
20
+#	We cannot emphasize this point strongly enough.  The vast
21
+#	majority of problems can be solved by carefully reading the
22
+#	debugging output, which includes warnings about common issues,
23
+#	and suggestions for how they may be fixed.
24
+#
25
+#	There may be a lot of output, but look carefully for words like:
26
+#	"warning", "error", "reject", or "failure".  The messages there
27
+#	will usually be enough to guide you to a solution.
28
+#
29
+#	If you are going to ask a question on the mailing list, then
30
+#	explain what you are trying to do, and include the output from
31
+#	debugging mode (radiusd -X).  Failure to do so means that all
32
+#	of the responses to your question will be people telling you
33
+#	to "post the output of radiusd -X".
34
+
35
+######################################################################
36
+#
37
+#  	The location of other config files and logfiles are declared
38
+#  	in this file.
39
+#
40
+#  	Also general configuration for modules can be done in this
41
+#  	file, it is exported through the API to modules that ask for
42
+#  	it.
43
+#
44
+#	See "man radiusd.conf" for documentation on the format of this
45
+#	file.  Note that the individual configuration items are NOT
46
+#	documented in that "man" page.  They are only documented here,
47
+#	in the comments.
48
+#
49
+#	As of 2.0.0, FreeRADIUS supports a simple processing language
50
+#	in the "authorize", "authenticate", "accounting", etc. sections.
51
+#	See "man unlang" for details.
52
+#
53
+
54
+prefix = /usr
55
+exec_prefix = /usr
56
+sysconfdir = /etc
57
+localstatedir = /var
58
+sbindir = /usr/sbin
59
+logdir = ${localstatedir}/log/radius
60
+raddbdir = ${sysconfdir}/raddb
61
+radacctdir = ${logdir}/radacct
62
+
63
+#
64
+#  name of the running server.  See also the "-n" command-line option.
65
+name = radiusd
66
+
67
+#  Location of config and logfiles.
68
+confdir = ${raddbdir}
69
+run_dir = ${localstatedir}/run/${name}
70
+
71
+# Should likely be ${localstatedir}/lib/radiusd
72
+db_dir = ${raddbdir}
73
+
74
+#
75
+# libdir: Where to find the rlm_* modules.
76
+#
77
+#   This should be automatically set at configuration time.
78
+#
79
+#   If the server builds and installs, but fails at execution time
80
+#   with an 'undefined symbol' error, then you can use the libdir
81
+#   directive to work around the problem.
82
+#
83
+#   The cause is usually that a library has been installed on your
84
+#   system in a place where the dynamic linker CANNOT find it.  When
85
+#   executing as root (or another user), your personal environment MAY
86
+#   be set up to allow the dynamic linker to find the library.  When
87
+#   executing as a daemon, FreeRADIUS MAY NOT have the same
88
+#   personalized configuration.
89
+#
90
+#   To work around the problem, find out which library contains that symbol,
91
+#   and add the directory containing that library to the end of 'libdir',
92
+#   with a colon separating the directory names.  NO spaces are allowed.
93
+#
94
+#   e.g. libdir = /usr/local/lib:/opt/package/lib
95
+#
96
+#   You can also try setting the LD_LIBRARY_PATH environment variable
97
+#   in a script which starts the server.
98
+#
99
+#   If that does not work, then you can re-configure and re-build the
100
+#   server to NOT use shared libraries, via:
101
+#
102
+#	./configure --disable-shared
103
+#	make
104
+#	make install
105
+#
106
+libdir = /usr/lib64/freeradius
107
+
108
+#  pidfile: Where to place the PID of the RADIUS server.
109
+#
110
+#  The server may be signalled while it's running by using this
111
+#  file.
112
+#
113
+#  This file is written when ONLY running in daemon mode.
114
+#
115
+#  e.g.:  kill -HUP `cat /var/run/radiusd/radiusd.pid`
116
+#
117
+pidfile = ${run_dir}/${name}.pid
118
+
119
+#  chroot: directory where the server does "chroot".
120
+#
121
+#  The chroot is done very early in the process of starting the server.
122
+#  After the chroot has been performed it switches to the "user" listed
123
+#  below (which MUST be specified).  If "group" is specified, it switchs
124
+#  to that group, too.  Any other groups listed for the specified "user"
125
+#  in "/etc/group" are also added as part of this process.
126
+#
127
+#  The current working directory (chdir / cd) is left *outside* of the
128
+#  chroot until all of the modules have been initialized.  This allows
129
+#  the "raddb" directory to be left outside of the chroot.  Once the
130
+#  modules have been initialized, it does a "chdir" to ${logdir}.  This
131
+#  means that it should be impossible to break out of the chroot.
132
+#
133
+#  If you are worried about security issues related to this use of chdir,
134
+#  then simply ensure that the "raddb" directory is inside of the chroot,
135
+#  end be sure to do "cd raddb" BEFORE starting the server.
136
+#
137
+#  If the server is statically linked, then the only files that have
138
+#  to exist in the chroot are ${run_dir} and ${logdir}.  If you do the
139
+#  "cd raddb" as discussed above, then the "raddb" directory has to be
140
+#  inside of the chroot directory, too.
141
+#
142
+#chroot = /path/to/chroot/directory
143
+
144
+# user/group: The name (or #number) of the user/group to run radiusd as.
145
+#
146
+#   If these are commented out, the server will run as the user/group
147
+#   that started it.  In order to change to a different user/group, you
148
+#   MUST be root ( or have root privleges ) to start the server.
149
+#
150
+#   We STRONGLY recommend that you run the server with as few permissions
151
+#   as possible.  That is, if you're not using shadow passwords, the
152
+#   user and group items below should be set to radius'.
153
+#
154
+#  NOTE that some kernels refuse to setgid(group) when the value of
155
+#  (unsigned)group is above 60000; don't use group nobody on these systems!
156
+#
157
+#  On systems with shadow passwords, you might have to set 'group = shadow'
158
+#  for the server to be able to read the shadow password file.  If you can
159
+#  authenticate users while in debug mode, but not in daemon mode, it may be
160
+#  that the debugging mode server is running as a user that can read the
161
+#  shadow info, and the user listed below can not.
162
+#
163
+#  The server will also try to use "initgroups" to read /etc/groups.
164
+#  It will join all groups where "user" is a member.  This can allow
165
+#  for some finer-grained access controls.
166
+#
167
+user = radiusd
168
+group = radiusd
169
+
170
+#  panic_action: Command to execute if the server dies unexpectedly.
171
+#
172
+#  FOR PRODUCTION SYSTEMS, ACTIONS SHOULD ALWAYS EXIT.
173
+#  AN INTERACTIVE ACTION MEANS THE SERVER IS NOT RESPONDING TO REQUESTS.
174
+#  AN INTERACTICE ACTION MEANS THE SERVER WILL NOT RESTART.
175
+#
176
+#  The panic action is a command which will be executed if the server
177
+#  receives a fatal, non user generated signal, i.e. SIGSEGV, SIGBUS,
178
+#  SIGABRT or SIGFPE.
179
+#
180
+#  This can be used to start an interactive debugging session so
181
+#  that information regarding the current state of the server can
182
+#  be acquired.
183
+#
184
+#  The following string substitutions are available:
185
+#  - %e   The currently executing program e.g. /sbin/radiusd
186
+#  - %p   The PID of the currently executing program e.g. 12345
187
+#
188
+#  Standard ${} substitutions are also allowed.
189
+#
190
+#  An example panic action for opening an interactive session in GDB would be:
191
+#
192
+#panic_action = "gdb %e %p"
193
+#
194
+#  Again, don't use that on a production system.
195
+#
196
+#  An example panic action for opening an automated session in GDB would be:
197
+#
198
+#panic_action = "gdb -silent -x ${raddbdir}/panic.gdb %e %p > ${logdir}/gdb-%e-%p.log 2>&1"
199
+#
200
+#  That command can be used on a production system.
201
+#
202
+
203
+#  max_request_time: The maximum time (in seconds) to handle a request.
204
+#
205
+#  Requests which take more time than this to process may be killed, and
206
+#  a REJECT message is returned.
207
+#
208
+#  WARNING: If you notice that requests take a long time to be handled,
209
+#  then this MAY INDICATE a bug in the server, in one of the modules
210
+#  used to handle a request, OR in your local configuration.
211
+#
212
+#  This problem is most often seen when using an SQL database.  If it takes
213
+#  more than a second or two to receive an answer from the SQL database,
214
+#  then it probably means that you haven't indexed the database.  See your
215
+#  SQL server documentation for more information.
216
+#
217
+#  Useful range of values: 5 to 120
218
+#
219
+max_request_time = 30
220
+
221
+#  cleanup_delay: The time to wait (in seconds) before cleaning up
222
+#  a reply which was sent to the NAS.
223
+#
224
+#  The RADIUS request is normally cached internally for a short period
225
+#  of time, after the reply is sent to the NAS.  The reply packet may be
226
+#  lost in the network, and the NAS will not see it.  The NAS will then
227
+#  re-send the request, and the server will respond quickly with the
228
+#  cached reply.
229
+#
230
+#  If this value is set too low, then duplicate requests from the NAS
231
+#  MAY NOT be detected, and will instead be handled as seperate requests.
232
+#
233
+#  If this value is set too high, then the server will cache too many
234
+#  requests, and some new requests may get blocked.  (See 'max_requests'.)
235
+#
236
+#  Useful range of values: 2 to 10
237
+#
238
+cleanup_delay = 30
239
+
240
+#  max_requests: The maximum number of requests which the server keeps
241
+#  track of.  This should be 256 multiplied by the number of clients.
242
+#  e.g. With 4 clients, this number should be 1024.
243
+#
244
+#  If this number is too low, then when the server becomes busy,
245
+#  it will not respond to any new requests, until the 'cleanup_delay'
246
+#  time has passed, and it has removed the old requests.
247
+#
248
+#  If this number is set too high, then the server will use a bit more
249
+#  memory for no real benefit.
250
+#
251
+#  If you aren't sure what it should be set to, it's better to set it
252
+#  too high than too low.  Setting it to 1000 per client is probably
253
+#  the highest it should be.
254
+#
255
+#  Useful range of values: 256 to infinity
256
+#
257
+max_requests = 1024
258
+
259
+#  listen: Make the server listen on a particular IP address, and send
260
+#  replies out from that address. This directive is most useful for
261
+#  hosts with multiple IP addresses on one interface.
262
+#
263
+#  If you want the server to listen on additional addresses, or on
264
+#  additionnal ports, you can use multiple "listen" sections.
265
+#
266
+#  Each section make the server listen for only one type of packet,
267
+#  therefore authentication and accounting have to be configured in
268
+#  different sections.
269
+#
270
+#  The server ignore all "listen" section if you are using '-i' and '-p'
271
+#  on the command line.
272
+#
273
+listen {
274
+	#  Type of packets to listen for.
275
+	#  Allowed values are:
276
+	#	auth	listen for authentication packets
277
+	#	acct	listen for accounting packets
278
+	#	proxy   IP to use for sending proxied packets
279
+	#	detail  Read from the detail file.  For examples, see
280
+	#               raddb/sites-available/copy-acct-to-home-server
281
+	#	status  listen for Status-Server packets.  For examples,
282
+	#		see raddb/sites-available/status
283
+	#	coa     listen for CoA-Request and Disconnect-Request
284
+	#		packets.  For examples, see the file
285
+	#		raddb/sites-available/coa
286
+	#
287
+	type = auth
288
+
289
+	#  Note: "type = proxy" lets you control the source IP used for
290
+	#        proxying packets, with some limitations:
291
+	#
292
+	#    * A proxy listener CANNOT be used in a virtual server section.
293
+	#    * You should probably set "port = 0".
294
+	#    * Any "clients" configuration will be ignored.
295
+	#
296
+	#  See also proxy.conf, and the "src_ipaddr" configuration entry
297
+	#  in the sample "home_server" section.  When you specify the
298
+	#  source IP address for packets sent to a home server, the
299
+	#  proxy listeners are automatically created.
300
+
301
+	#  IP address on which to listen.
302
+	#  Allowed values are:
303
+	#	dotted quad (1.2.3.4)
304
+	#       hostname    (radius.example.com)
305
+	#       wildcard    (*)
306
+	ipaddr = *
307
+
308
+	#  OR, you can use an IPv6 address, but not both
309
+	#  at the same time.
310
+#	ipv6addr = ::	# any.  ::1 == localhost
311
+
312
+	#  Port on which to listen.
313
+	#  Allowed values are:
314
+	#	integer port number (1812)
315
+	#	0 means "use /etc/services for the proper port"
316
+	port = 0
317
+
318
+	#  Some systems support binding to an interface, in addition
319
+	#  to the IP address.  This feature isn't strictly necessary,
320
+	#  but for sites with many IP addresses on one interface,
321
+	#  it's useful to say "listen on all addresses for eth0".
322
+	#
323
+	#  If your system does not support this feature, you will
324
+	#  get an error if you try to use it.
325
+	#
326
+#	interface = eth0
327
+
328
+	#  Per-socket lists of clients.  This is a very useful feature.
329
+	#
330
+	#  The name here is a reference to a section elsewhere in
331
+	#  radiusd.conf, or clients.conf.  Having the name as
332
+	#  a reference allows multiple sockets to use the same
333
+	#  set of clients.
334
+	#
335
+	#  If this configuration is used, then the global list of clients
336
+	#  is IGNORED for this "listen" section.  Take care configuring
337
+	#  this feature, to ensure you don't accidentally disable a
338
+	#  client you need.
339
+	#
340
+	#  See clients.conf for the configuration of "per_socket_clients".
341
+	#
342
+#	clients = per_socket_clients
343
+}
344
+
345
+#  This second "listen" section is for listening on the accounting
346
+#  port, too.
347
+#
348
+listen {
349
+	ipaddr = *
350
+#	ipv6addr = ::
351
+	port = 0
352
+	type = acct
353
+#	interface = eth0
354
+#	clients = per_socket_clients
355
+}
356
+
357
+#  hostname_lookups: Log the names of clients or just their IP addresses
358
+#  e.g., www.freeradius.org (on) or 206.47.27.232 (off).
359
+#
360
+#  The default is 'off' because it would be overall better for the net
361
+#  if people had to knowingly turn this feature on, since enabling it
362
+#  means that each client request will result in AT LEAST one lookup
363
+#  request to the nameserver.   Enabling hostname_lookups will also
364
+#  mean that your server may stop randomly for 30 seconds from time
365
+#  to time, if the DNS requests take too long.
366
+#
367
+#  Turning hostname lookups off also means that the server won't block
368
+#  for 30 seconds, if it sees an IP address which has no name associated
369
+#  with it.
370
+#
371
+#  allowed values: {no, yes}
372
+#
373
+hostname_lookups = no
374
+
375
+#  Core dumps are a bad thing.  This should only be set to 'yes'
376
+#  if you're debugging a problem with the server.
377
+#
378
+#  allowed values: {no, yes}
379
+#
380
+allow_core_dumps = no
381
+
382
+#  Regular expressions
383
+#
384
+#  These items are set at configure time.  If they're set to "yes",
385
+#  then setting them to "no" turns off regular expression support.
386
+#
387
+#  If they're set to "no" at configure time, then setting them to "yes"
388
+#  WILL NOT WORK.  It will give you an error.
389
+#
390
+regular_expressions	= yes
391
+extended_expressions	= yes
392
+
393
+#
394
+#  Logging section.  The various "log_*" configuration items
395
+#  will eventually be moved here.
396
+#
397
+log {
398
+	#
399
+	#  Destination for log messages.  This can be one of:
400
+	#
401
+	#	files - log to "file", as defined below.
402
+	#	syslog - to syslog (see also the "syslog_facility", below.
403
+	#	stdout - standard output
404
+	#	stderr - standard error.
405
+	#
406
+	#  The command-line option "-X" over-rides this option, and forces
407
+	#  logging to go to stdout.
408
+	#
409
+	destination = files
410
+
411
+	#
412
+	#  The logging messages for the server are appended to the
413
+	#  tail of this file if destination == "files"
414
+	#
415
+	#  If the server is running in debugging mode, this file is
416
+	#  NOT used.
417
+	#
418
+	file = ${logdir}/radius.log
419
+
420
+	#
421
+	#  If this configuration parameter is set, then log messages for
422
+	#  a *request* go to this file, rather than to radius.log.
423
+	#
424
+	#  i.e. This is a log file per request, once the server has accepted
425
+	#  the request as being from a valid client.  Messages that are
426
+	#  not associated with a request still go to radius.log.
427
+	#
428
+	#  Not all log messages in the server core have been updated to use
429
+	#  this new internal API.  As a result, some messages will still
430
+	#  go to radius.log.  Please submit patches to fix this behavior.
431
+	#
432
+	#  The file name is expanded dynamically.  You should ONLY user
433
+	#  server-side attributes for the filename (e.g. things you control).
434
+	#  Using this feature MAY also slow down the server substantially,
435
+	#  especially if you do thinks like SQL calls as part of the
436
+	#  expansion of the filename.
437
+	#
438
+	#  The name of the log file should use attributes that don't change
439
+	#  over the lifetime of a request, such as User-Name,
440
+	#  Virtual-Server or Packet-Src-IP-Address.  Otherwise, the log
441
+	#  messages will be distributed over multiple files.
442
+	#
443
+	#  Logging can be enabled for an individual request by a special
444
+	#  dynamic expansion macro:  %{debug: 1}, where the debug level
445
+	#  for this request is set to '1' (or 2, 3, etc.).  e.g.
446
+	#
447
+	#	...
448
+	#	update control {
449
+	#	       Tmp-String-0 = "%{debug:1}"
450
+	#	}
451
+	#	...
452
+	#
453
+	#  The attribute that the value is assigned to is unimportant,
454
+	#  and should be a "throw-away" attribute with no side effects.
455
+	#
456
+	#requests = ${logdir}/radiusd-%{%{Virtual-Server}:-DEFAULT}-%Y%m%d.log
457
+
458
+	#
459
+	#  Which syslog facility to use, if ${destination} == "syslog"
460
+	#
461
+	#  The exact values permitted here are OS-dependent.  You probably
462
+	#  don't want to change this.
463
+	#
464
+	syslog_facility = daemon
465
+
466
+	#  Log the full User-Name attribute, as it was found in the request.
467
+	#
468
+	# allowed values: {no, yes}
469
+	#
470
+	stripped_names = no
471
+
472
+	#  Log authentication requests to the log file.
473
+	#
474
+	#  allowed values: {no, yes}
475
+	#
476
+	auth = yes
477
+
478
+	#  Log passwords with the authentication requests.
479
+	#  auth_badpass  - logs password if it's rejected
480
+	#  auth_goodpass - logs password if it's correct
481
+	#
482
+	#  allowed values: {no, yes}
483
+	#
484
+	auth_badpass = no
485
+	auth_goodpass = no
486
+
487
+	#  Log additional text at the end of the "Login OK" messages.
488
+	#  for these to work, the "auth" and "auth_goopass" or "auth_badpass"
489
+	#  configurations above have to be set to "yes".
490
+	#
491
+	#  The strings below are dynamically expanded, which means that
492
+	#  you can put anything you want in them.  However, note that
493
+	#  this expansion can be slow, and can negatively impact server
494
+	#  performance.
495
+	#
496
+#	msg_goodpass = ""
497
+#	msg_badpass = ""
498
+}
499
+
500
+#  The program to execute to do concurrency checks.
501
+checkrad = ${sbindir}/checkrad
502
+
503
+# SECURITY CONFIGURATION
504
+#
505
+#  There may be multiple methods of attacking on the server.  This
506
+#  section holds the configuration items which minimize the impact
507
+#  of those attacks
508
+#
509
+security {
510
+	#
511
+	#  max_attributes: The maximum number of attributes
512
+	#  permitted in a RADIUS packet.  Packets which have MORE
513
+	#  than this number of attributes in them will be dropped.
514
+	#
515
+	#  If this number is set too low, then no RADIUS packets
516
+	#  will be accepted.
517
+	#
518
+	#  If this number is set too high, then an attacker may be
519
+	#  able to send a small number of packets which will cause
520
+	#  the server to use all available memory on the machine.
521
+	#
522
+	#  Setting this number to 0 means "allow any number of attributes"
523
+	max_attributes = 200
524
+
525
+	#
526
+	#  reject_delay: When sending an Access-Reject, it can be
527
+	#  delayed for a few seconds.  This may help slow down a DoS
528
+	#  attack.  It also helps to slow down people trying to brute-force
529
+	#  crack a users password.
530
+	#
531
+	#  Setting this number to 0 means "send rejects immediately"
532
+	#
533
+	#  If this number is set higher than 'cleanup_delay', then the
534
+	#  rejects will be sent at 'cleanup_delay' time, when the request
535
+	#  is deleted from the internal cache of requests.
536
+	#
537
+	#  Useful ranges: 1 to 5
538
+	reject_delay = 1
539
+
540
+	#
541
+	#  status_server: Whether or not the server will respond
542
+	#  to Status-Server requests.
543
+	#
544
+	#  When sent a Status-Server message, the server responds with
545
+	#  an Access-Accept or Accounting-Response packet.
546
+	#
547
+	#  This is mainly useful for administrators who want to "ping"
548
+	#  the server, without adding test users, or creating fake
549
+	#  accounting packets.
550
+	#
551
+	#  It's also useful when a NAS marks a RADIUS server "dead".
552
+	#  The NAS can periodically "ping" the server with a Status-Server
553
+	#  packet.  If the server responds, it must be alive, and the
554
+	#  NAS can start using it for real requests.
555
+	#
556
+	#  See also raddb/sites-available/status
557
+	#
558
+	status_server = yes
559
+
560
+
561
+}
562
+
563
+# PROXY CONFIGURATION
564
+#
565
+#  proxy_requests: Turns proxying of RADIUS requests on or off.
566
+#
567
+#  The server has proxying turned on by default.  If your system is NOT
568
+#  set up to proxy requests to another server, then you can turn proxying
569
+#  off here.  This will save a small amount of resources on the server.
570
+#
571
+#  If you have proxying turned off, and your configuration files say
572
+#  to proxy a request, then an error message will be logged.
573
+#
574
+#  To disable proxying, change the "yes" to "no", and comment the
575
+#  $INCLUDE line.
576
+#
577
+#  allowed values: {no, yes}
578
+#
579
+proxy_requests  = yes
580
+$INCLUDE proxy.conf
581
+
582
+
583
+# CLIENTS CONFIGURATION
584
+#
585
+#  Client configuration is defined in "clients.conf".
586
+#
587
+
588
+#  The 'clients.conf' file contains all of the information from the old
589
+#  'clients' and 'naslist' configuration files.  We recommend that you
590
+#  do NOT use 'client's or 'naslist', although they are still
591
+#  supported.
592
+#
593
+#  Anything listed in 'clients.conf' will take precedence over the
594
+#  information from the old-style configuration files.
595
+#
596
+$INCLUDE clients.conf
597
+
598
+
599
+# THREAD POOL CONFIGURATION
600
+#
601
+#  The thread pool is a long-lived group of threads which
602
+#  take turns (round-robin) handling any incoming requests.
603
+#
604
+#  You probably want to have a few spare threads around,
605
+#  so that high-load situations can be handled immediately.  If you
606
+#  don't have any spare threads, then the request handling will
607
+#  be delayed while a new thread is created, and added to the pool.
608
+#
609
+#  You probably don't want too many spare threads around,
610
+#  otherwise they'll be sitting there taking up resources, and
611
+#  not doing anything productive.
612
+#
613
+#  The numbers given below should be adequate for most situations.
614
+#
615
+thread pool {
616
+	#  Number of servers to start initially --- should be a reasonable
617
+	#  ballpark figure.
618
+	start_servers = 5
619
+
620
+	#  Limit on the total number of servers running.
621
+	#
622
+	#  If this limit is ever reached, clients will be LOCKED OUT, so it
623
+	#  should NOT BE SET TOO LOW.  It is intended mainly as a brake to
624
+	#  keep a runaway server from taking the system with it as it spirals
625
+	#  down...
626
+	#
627
+	#  You may find that the server is regularly reaching the
628
+	#  'max_servers' number of threads, and that increasing
629
+	#  'max_servers' doesn't seem to make much difference.
630
+	#
631
+	#  If this is the case, then the problem is MOST LIKELY that
632
+	#  your back-end databases are taking too long to respond, and
633
+	#  are preventing the server from responding in a timely manner.
634
+	#
635
+	#  The solution is NOT do keep increasing the 'max_servers'
636
+	#  value, but instead to fix the underlying cause of the
637
+	#  problem: slow database, or 'hostname_lookups=yes'.
638
+	#
639
+	#  For more information, see 'max_request_time', above.
640
+	#
641
+	max_servers = 32
642
+
643
+	#  Server-pool size regulation.  Rather than making you guess
644
+	#  how many servers you need, FreeRADIUS dynamically adapts to
645
+	#  the load it sees, that is, it tries to maintain enough
646
+	#  servers to handle the current load, plus a few spare
647
+	#  servers to handle transient load spikes.
648
+	#
649
+	#  It does this by periodically checking how many servers are
650
+	#  waiting for a request.  If there are fewer than
651
+	#  min_spare_servers, it creates a new spare.  If there are
652
+	#  more than max_spare_servers, some of the spares die off.
653
+	#  The default values are probably OK for most sites.
654
+	#
655
+	min_spare_servers = 3
656
+	max_spare_servers = 10
657
+
658
+	#  When the server receives a packet, it places it onto an
659
+	#  internal queue, where the worker threads (configured above)
660
+	#  pick it up for processing.  The maximum size of that queue
661
+	#  is given here.
662
+	#
663
+	#  When the queue is full, any new packets will be silently
664
+	#  discarded.
665
+	#
666
+	#  The most common cause of the queue being full is that the
667
+	#  server is dependent on a slow database, and it has received
668
+	#  a large "spike" of traffic.  When that happens, there is
669
+	#  very little you can do other than make sure the server
670
+	#  receives less traffic, or make sure that the database can
671
+	#  handle the load.
672
+	#
673
+#	max_queue_size = 65536
674
+
675
+	#  There may be memory leaks or resource allocation problems with
676
+	#  the server.  If so, set this value to 300 or so, so that the
677
+	#  resources will be cleaned up periodically.
678
+	#
679
+	#  This should only be necessary if there are serious bugs in the
680
+	#  server which have not yet been fixed.
681
+	#
682
+	#  '0' is a special value meaning 'infinity', or 'the servers never
683
+	#  exit'
684
+	max_requests_per_server = 0
685
+}
686
+
687
+# MODULE CONFIGURATION
688
+#
689
+#  The names and configuration of each module is located in this section.
690
+#
691
+#  After the modules are defined here, they may be referred to by name,
692
+#  in other sections of this configuration file.
693
+#
694
+modules {
695
+	#
696
+	#  Each module has a configuration as follows:
697
+	#
698
+	#	name [ instance ] {
699
+	#		config_item = value
700
+	#		...
701
+	#	}
702
+	#
703
+	#  The 'name' is used to load the 'rlm_name' library
704
+	#  which implements the functionality of the module.
705
+	#
706
+	#  The 'instance' is optional.  To have two different instances
707
+	#  of a module, it first must be referred to by 'name'.
708
+	#  The different copies of the module are then created by
709
+	#  inventing two 'instance' names, e.g. 'instance1' and 'instance2'
710
+	#
711
+	#  The instance names can then be used in later configuration
712
+	#  INSTEAD of the original 'name'.  See the 'radutmp' configuration
713
+	#  for an example.
714
+	#
715
+
716
+	#
717
+	#  As of 2.0.5, most of the module configurations are in a
718
+	#  sub-directory.  Files matching the regex /[a-zA-Z0-9_.]+/
719
+	#  are loaded.  The modules are initialized ONLY if they are
720
+	#  referenced in a processing section, such as authorize,
721
+	#  authenticate, accounting, pre/post-proxy, etc.
722
+	#
723
+	$INCLUDE ${confdir}/modules/
724
+
725
+	#  Extensible Authentication Protocol
726
+	#
727
+	#  For all EAP related authentications.
728
+	#  Now in another file, because it is very large.
729
+	#
730
+	$INCLUDE eap.conf
731
+
732
+	#  Include another file that has the SQL-related configuration.
733
+	#  This is another file only because it tends to be big.
734
+	#
735
+#	$INCLUDE sql.conf
736
+
737
+	#
738
+	#  This module is an SQL enabled version of the counter module.
739
+	#
740
+	#  Rather than maintaining seperate (GDBM) databases of
741
+	#  accounting info for each counter, this module uses the data
742
+	#  stored in the raddacct table by the sql modules. This
743
+	#  module NEVER does any database INSERTs or UPDATEs.  It is
744
+	#  totally dependent on the SQL module to process Accounting
745
+	#  packets.
746
+	#
747
+#	$INCLUDE sql/mysql/counter.conf
748
+
749
+	#
750
+	#  IP addresses managed in an SQL table.
751
+	#
752
+#	$INCLUDE sqlippool.conf
753
+}
754
+
755
+# Instantiation
756
+#
757
+#  This section orders the loading of the modules.  Modules
758
+#  listed here will get loaded BEFORE the later sections like
759
+#  authorize, authenticate, etc. get examined.
760
+#
761
+#  This section is not strictly needed.  When a section like
762
+#  authorize refers to a module, it's automatically loaded and
763
+#  initialized.  However, some modules may not be listed in any
764
+#  of the following sections, so they can be listed here.
765
+#
766
+#  Also, listing modules here ensures that you have control over
767
+#  the order in which they are initalized.  If one module needs
768
+#  something defined by another module, you can list them in order
769
+#  here, and ensure that the configuration will be OK.
770
+#
771
+instantiate {
772
+	#
773
+	#  Allows the execution of external scripts.
774
+	#  The entire command line (and output) must fit into 253 bytes.
775
+	#
776
+	#  e.g. Framed-Pool = `%{exec:/bin/echo foo}`
777
+	exec
778
+
779
+	#
780
+	#  The expression module doesn't do authorization,
781
+	#  authentication, or accounting.  It only does dynamic
782
+	#  translation, of the form:
783
+	#
784
+	#	Session-Timeout = `%{expr:2 + 3}`
785
+	#
786
+	#  This module needs to be instantiated, but CANNOT be
787
+	#  listed in any other section.  See 'doc/rlm_expr' for
788
+	#  more information.
789
+	#
790
+	#  rlm_expr is also responsible for registering many
791
+	#  other xlat functions such as md5, sha1 and lc.
792
+	#
793
+	#  We do not recommend removing it's listing here.
794
+	expr
795
+
796
+	#
797
+	# We add the counter module here so that it registers
798
+	# the check-name attribute before any module which sets
799
+	# it
800
+#	daily
801
+	expiration
802
+	logintime
803
+
804
+	# subsections here can be thought of as "virtual" modules.
805
+	#
806
+	# e.g. If you have two redundant SQL servers, and you want to
807
+	# use them in the authorize and accounting sections, you could
808
+	# place a "redundant" block in each section, containing the
809
+	# exact same text.  Or, you could uncomment the following
810
+	# lines, and list "redundant_sql" in the authorize and
811
+	# accounting sections.
812
+	#
813
+	#redundant redundant_sql {
814
+	#	sql1
815
+	#	sql2
816
+	#}
817
+}
818
+
819
+######################################################################
820
+#
821
+#	Policies that can be applied in multiple places are listed
822
+#	globally.  That way, they can be defined once, and referred
823
+#	to multiple times.
824
+#
825
+######################################################################
826
+$INCLUDE policy.conf
827
+
828
+######################################################################
829
+#
830
+#	Load virtual servers.
831
+#
832
+#	This next $INCLUDE line loads files in the directory that
833
+#	match the regular expression: /[a-zA-Z0-9_.]+/
834
+#
835
+#	It allows you to define new virtual servers simply by placing
836
+#	a file into the raddb/sites-enabled/ directory.
837
+#
838
+$INCLUDE sites-enabled/
839
+
840
+######################################################################
841
+#
842
+#	All of the other configuration sections like "authorize {}",
843
+#	"authenticate {}", "accounting {}", have been moved to the
844
+#	the file:
845
+#
846
+#		raddb/sites-available/default
847
+#
848
+#	This is the "default" virtual server that has the same
849
+#	configuration as in version 1.0.x and 1.1.x.  The default
850
+#	installation enables this virtual server.  You should
851
+#	edit it to create policies for your local site.
852
+#
853
+#	For more documentation on virtual servers, see:
854
+#
855
+#		raddb/sites-available/README
856
+#
857
+######################################################################
858
+
859
+$INCLUDE virtual-servers/
0 860
new file mode 100644
... ...
@@ -0,0 +1,663 @@
1
+######################################################################
2
+#
3
+#	As of 2.0.0, FreeRADIUS supports virtual hosts using the
4
+#	"server" section, and configuration directives.
5
+#
6
+#	Virtual hosts should be put into the "sites-available"
7
+#	directory.  Soft links should be created in the "sites-enabled"
8
+#	directory to these files.  This is done in a normal installation.
9
+#
10
+#	If you are using 802.1X (EAP) authentication, please see also
11
+#	the "inner-tunnel" virtual server.  You wll likely have to edit
12
+#	that, too, for authentication to work.
13
+#
14
+#	$Id: 520ccbc90f3a09cd6a80e1e3b16000b7ba94d884 $
15
+#
16
+######################################################################
17
+#
18
+#	Read "man radiusd" before editing this file.  See the section
19
+#	titled DEBUGGING.  It outlines a method where you can quickly
20
+#	obtain the configuration you want, without running into
21
+#	trouble.  See also "man unlang", which documents the format
22
+#	of this file.
23
+#
24
+#	This configuration is designed to work in the widest possible
25
+#	set of circumstances, with the widest possible number of
26
+#	authentication methods.  This means that in general, you should
27
+#	need to make very few changes to this file.
28
+#
29
+#	The best way to configure the server for your local system
30
+#	is to CAREFULLY edit this file.  Most attempts to make large
31
+#	edits to this file will BREAK THE SERVER.  Any edits should
32
+#	be small, and tested by running the server with "radiusd -X".
33
+#	Once the edits have been verified to work, save a copy of these
34
+#	configuration files somewhere.  (e.g. as a "tar" file).  Then,
35
+#	make more edits, and test, as above.
36
+#
37
+#	There are many "commented out" references to modules such
38
+#	as ldap, sql, etc.  These references serve as place-holders.
39
+#	If you need the functionality of that module, then configure
40
+#	it in radiusd.conf, and un-comment the references to it in
41
+#	this file.  In most cases, those small changes will result
42
+#	in the server being able to connect to the DB, and to
43
+#	authenticate users.
44
+#
45
+######################################################################
46
+
47
+#
48
+#	In 1.x, the "authorize", etc. sections were global in
49
+#	radiusd.conf.  As of 2.0, they SHOULD be in a server section.
50
+#
51
+#	The server section with no virtual server name is the "default"
52
+#	section.  It is used when no server name is specified.
53
+#
54
+#	We don't indent the rest of this file, because doing so
55
+#	would make it harder to read.
56
+#
57
+
58
+#  Authorization. First preprocess (hints and huntgroups files),
59
+#  then realms, and finally look in the "users" file.
60
+#
61
+#  Any changes made here should also be made to the "inner-tunnel"
62
+#  virtual server.
63
+#
64
+#  The order of the realm modules will determine the order that
65
+#  we try to find a matching realm.
66
+#
67
+#  Make *sure* that 'preprocess' comes before any realm if you 
68
+#  need to setup hints for the remote radius server
69
+authorize {
70
+	#
71
+	#  Security settings.  Take a User-Name, and do some simple
72
+	#  checks on it, for spaces and other invalid characters.  If
73
+	#  it looks like the user is trying to play games, reject it.
74
+	#
75
+	#  This should probably be enabled by default.
76
+	#
77
+	#  See policy.conf for the definition of the filter_username policy.
78
+	#
79
+#	filter_username
80
+
81
+	#
82
+	#  The preprocess module takes care of sanitizing some bizarre
83
+	#  attributes in the request, and turning them into attributes
84
+	#  which are more standard.
85
+	#
86
+	#  It takes care of processing the 'raddb/hints' and the
87
+	#  'raddb/huntgroups' files.
88
+	preprocess
89
+
90
+	#
91
+	#  If you want to have a log of authentication requests,
92
+	#  un-comment the following line, and the 'detail auth_log'
93
+	#  section, above.
94
+#	auth_log
95
+
96
+	#
97
+	#  The chap module will set 'Auth-Type := CHAP' if we are
98
+	#  handling a CHAP request and Auth-Type has not already been set
99
+	chap
100
+
101
+	#
102
+	#  If the users are logging in with an MS-CHAP-Challenge
103
+	#  attribute for authentication, the mschap module will find
104
+	#  the MS-CHAP-Challenge attribute, and add 'Auth-Type := MS-CHAP'
105
+	#  to the request, which will cause the server to then use
106
+	#  the mschap module for authentication.
107
+	mschap
108
+
109
+	#
110
+	#  If you have a Cisco SIP server authenticating against
111
+	#  FreeRADIUS, uncomment the following line, and the 'digest'
112
+	#  line in the 'authenticate' section.
113
+	digest
114
+
115
+	#
116
+	#  The WiMAX specification says that the Calling-Station-Id
117
+	#  is 6 octets of the MAC.  This definition conflicts with
118
+	#  RFC 3580, and all common RADIUS practices.  Un-commenting
119
+	#  the "wimax" module here means that it will fix the
120
+	#  Calling-Station-Id attribute to the normal format as
121
+	#  specified in RFC 3580 Section 3.21
122
+#	wimax
123
+
124
+	#
125
+	#  Look for IPASS style 'realm/', and if not found, look for
126
+	#  '@realm', and decide whether or not to proxy, based on
127
+	#  that.
128
+#	IPASS
129
+
130
+	#
131
+	#  If you are using multiple kinds of realms, you probably
132
+	#  want to set "ignore_null = yes" for all of them.
133
+	#  Otherwise, when the first style of realm doesn't match,
134
+	#  the other styles won't be checked.
135
+	#
136
+	suffix
137
+#	ntdomain
138
+
139
+	#
140
+	#  This module takes care of EAP-MD5, EAP-TLS, and EAP-LEAP
141
+	#  authentication.
142
+	#
143
+	#  It also sets the EAP-Type attribute in the request
144
+	#  attribute list to the EAP type from the packet.
145
+	#
146
+	#  As of 2.0, the EAP module returns "ok" in the authorize stage
147
+	#  for TTLS and PEAP.  In 1.x, it never returned "ok" here, so
148
+	#  this change is compatible with older configurations.
149
+	#
150
+	#  The example below uses module failover to avoid querying all
151
+	#  of the following modules if the EAP module returns "ok".
152
+	#  Therefore, your LDAP and/or SQL servers will not be queried
153
+	#  for the many packets that go back and forth to set up TTLS
154
+	#  or PEAP.  The load on those servers will therefore be reduced.
155
+	#
156
+	eap {
157
+		ok = return
158
+	}
159
+
160
+	#
161
+	#  Pull crypt'd passwords from /etc/passwd or /etc/shadow,
162
+	#  using the system API's to get the password.  If you want
163
+	#  to read /etc/passwd or /etc/shadow directly, see the
164
+	#  passwd module in radiusd.conf.
165
+	#
166
+#	unix
167
+
168
+	#
169
+	#  Read the 'users' file
170
+	files
171
+
172
+	#
173
+	#  Look in an SQL database.  The schema of the database
174
+	#  is meant to mirror the "users" file.
175
+	#
176
+	#  See "Authorization Queries" in sql.conf
177
+#	sql
178
+
179
+	#
180
+	#  If you are using /etc/smbpasswd, and are also doing
181
+	#  mschap authentication, the un-comment this line, and
182
+	#  configure the 'smbpasswd' module.
183
+#	smbpasswd
184
+
185
+	#
186
+	#  The ldap module will set Auth-Type to LDAP if it has not
187
+	#  already been set
188
+	ldap
189
+
190
+	#
191
+	#  Enforce daily limits on time spent logged in.
192
+#	daily
193
+
194
+	#
195
+	# Use the checkval module
196
+#	checkval
197
+
198
+	expiration
199
+	logintime
200
+
201
+	#
202
+	#  If no other module has claimed responsibility for
203
+	#  authentication, then try to use PAP.  This allows the
204
+	#  other modules listed above to add a "known good" password
205
+	#  to the request, and to do nothing else.  The PAP module
206
+	#  will then see that password, and use it to do PAP
207
+	#  authentication.
208
+	#
209
+	#  This module should be listed last, so that the other modules
210
+	#  get a chance to set Auth-Type for themselves.
211
+	#
212
+	pap
213
+
214
+	#
215
+	#  If "status_server = yes", then Status-Server messages are passed
216
+	#  through the following section, and ONLY the following section.
217
+	#  This permits you to do DB queries, for example.  If the modules
218
+	#  listed here return "fail", then NO response is sent.
219
+	#
220
+        update control {
221
+                Tmp-String-0 = "%{debug:3}"
222
+        }
223
+#	Autz-Type Status-Server {
224
+#
225
+#	}
226
+}
227
+
228
+
229
+#  Authentication.
230
+#
231
+#
232
+#  This section lists which modules are available for authentication.
233
+#  Note that it does NOT mean 'try each module in order'.  It means
234
+#  that a module from the 'authorize' section adds a configuration
235
+#  attribute 'Auth-Type := FOO'.  That authentication type is then
236
+#  used to pick the apropriate module from the list below.
237
+#
238
+
239
+#  In general, you SHOULD NOT set the Auth-Type attribute.  The server
240
+#  will figure it out on its own, and will do the right thing.  The
241
+#  most common side effect of erroneously setting the Auth-Type
242
+#  attribute is that one authentication method will work, but the
243
+#  others will not.
244
+#
245
+#  The common reasons to set the Auth-Type attribute by hand
246
+#  is to either forcibly reject the user (Auth-Type := Reject),
247
+#  or to or forcibly accept the user (Auth-Type := Accept).
248
+#
249
+#  Note that Auth-Type := Accept will NOT work with EAP.
250
+#
251
+#  Please do not put "unlang" configurations into the "authenticate"
252
+#  section.  Put them in the "post-auth" section instead.  That's what
253
+#  the post-auth section is for.
254
+#
255
+authenticate {
256
+	#
257
+	#  PAP authentication, when a back-end database listed
258
+	#  in the 'authorize' section supplies a password.  The
259
+	#  password can be clear-text, or encrypted.
260
+	Auth-Type PAP {
261
+		pap
262
+	}
263
+
264
+	#
265
+	#  Most people want CHAP authentication
266
+	#  A back-end database listed in the 'authorize' section
267
+	#  MUST supply a CLEAR TEXT password.  Encrypted passwords
268
+	#  won't work.
269
+	#Auth-Type CHAP {
270
+	#	chap
271
+	#}
272
+
273
+	#
274
+	#  MSCHAP authentication.
275
+	#Auth-Type MS-CHAP {
276
+	#	mschap
277
+	#}
278
+
279
+	#
280
+	#  If you have a Cisco SIP server authenticating against
281
+	#  FreeRADIUS, uncomment the following line, and the 'digest'
282
+	#  line in the 'authorize' section.
283
+	#digest
284
+
285
+	#
286
+	#  Pluggable Authentication Modules.
287
+	pam
288
+
289
+	#
290
+	#  See 'man getpwent' for information on how the 'unix'
291
+	#  module checks the users password.  Note that packets
292
+	#  containing CHAP-Password attributes CANNOT be authenticated
293
+	#  against /etc/passwd!  See the FAQ for details.
294
+	#
295
+	#  For normal "crypt" authentication, the "pap" module should
296
+	#  be used instead of the "unix" module.  The "unix" module should
297
+	#  be used for authentication ONLY for compatibility with legacy
298
+	#  FreeRADIUS configurations.
299
+	#
300
+	#unix
301
+
302
+	# Uncomment it if you want to use ldap for authentication
303
+	#
304
+	# Note that this means "check plain-text password against
305
+	# the ldap database", which means that EAP won't work,
306
+	# as it does not supply a plain-text password.
307
+	Auth-Type LDAP {
308
+		ldap
309
+	}
310
+
311
+	#
312
+	#  Allow EAP authentication.
313
+	eap
314
+
315
+	#
316
+	#  The older configurations sent a number of attributes in
317
+	#  Access-Challenge packets, which wasn't strictly correct.
318
+	#  If you want to filter out these attributes, uncomment
319
+	#  the following lines.
320
+	#
321
+#	Auth-Type eap {
322
+#		eap {
323
+#			handled = 1  
324
+#		}
325
+#		if (handled && (Response-Packet-Type == Access-Challenge)) {
326
+#			attr_filter.access_challenge.post-auth
327
+#			handled  # override the "updated" code from attr_filter
328
+#		}
329
+#	}
330
+}
331
+
332
+
333
+#
334
+#  Pre-accounting.  Decide which accounting type to use.
335
+#
336
+preacct {
337
+	preprocess
338
+
339
+	#
340
+	#  Session start times are *implied* in RADIUS.
341
+	#  The NAS never sends a "start time".  Instead, it sends
342
+	#  a start packet, *possibly* with an Acct-Delay-Time.
343
+	#  The server is supposed to conclude that the start time
344
+	#  was "Acct-Delay-Time" seconds in the past.
345
+	#
346
+	#  The code below creates an explicit start time, which can
347
+	#  then be used in other modules.
348
+	#
349
+	#  The start time is: NOW - delay - session_length
350
+	#
351
+
352
+#	  update request {
353
+#	  	FreeRADIUS-Acct-Session-Start-Time = "%{expr: %l - %{%{Acct-Session-Time}:-0} - %{%{Acct-Delay-Time}:-0}}"
354
+#	}
355
+
356
+
357
+	#
358
+	#  Ensure that we have a semi-unique identifier for every
359
+	#  request, and many NAS boxes are broken.
360
+	acct_unique
361
+
362
+	#
363
+	#  Look for IPASS-style 'realm/', and if not found, look for
364
+	#  '@realm', and decide whether or not to proxy, based on
365
+	#  that.
366
+	#
367
+	#  Accounting requests are generally proxied to the same
368
+	#  home server as authentication requests.
369
+#	IPASS
370
+	suffix
371
+#	ntdomain
372
+
373
+	#
374
+	#  Read the 'acct_users' file
375
+	files
376
+}
377
+
378
+#
379
+#  Accounting.  Log the accounting data.
380
+#
381
+accounting {
382
+	#
383
+	#  Create a 'detail'ed log of the packets.
384
+	#  Note that accounting requests which are proxied
385
+	#  are also logged in the detail file.
386
+	detail
387
+#	daily
388
+
389
+	#  Update the wtmp file
390
+	#
391
+	#  If you don't use "radlast", you can delete this line.
392
+#	unix
393
+
394
+	#
395
+	#  For Simultaneous-Use tracking.
396
+	#
397
+	#  Due to packet losses in the network, the data here
398
+	#  may be incorrect.  There is little we can do about it.
399
+#	radutmp
400
+#	sradutmp
401
+
402
+	#  Return an address to the IP Pool when we see a stop record.
403
+#	main_pool
404
+
405
+	#
406
+	#  Log traffic to an SQL database.
407
+	#
408
+	#  See "Accounting queries" in sql.conf
409
+#	sql
410
+
411
+	#
412
+	#  If you receive stop packets with zero session length,
413
+	#  they will NOT be logged in the database.  The SQL module
414
+	#  will print a message (only in debugging mode), and will
415
+	#  return "noop".
416
+	#
417
+	#  You can ignore these packets by uncommenting the following
418
+	#  three lines.  Otherwise, the server will not respond to the
419
+	#  accounting request, and the NAS will retransmit.
420
+	#
421
+#	if (noop) {
422
+#		ok
423
+#	}
424
+
425
+	#
426
+	#  Instead of sending the query to the SQL server,
427
+	#  write it into a log file.
428
+	#
429
+#	sql_log
430
+
431
+	#  Cisco VoIP specific bulk accounting
432
+#	pgsql-voip
433
+
434
+	# For Exec-Program and Exec-Program-Wait
435
+	exec
436
+
437
+	#  Filter attributes from the accounting response.
438
+	attr_filter.accounting_response
439
+
440
+	#
441
+	#  See "Autz-Type Status-Server" for how this works.
442
+	#
443
+#	Acct-Type Status-Server {
444
+#
445
+#	}
446
+}
447
+
448
+
449
+#  Session database, used for checking Simultaneous-Use. Either the radutmp 
450
+#  or rlm_sql module can handle this.
451
+#  The rlm_sql module is *much* faster
452
+session {
453
+	radutmp
454
+
455
+	#
456
+	#  See "Simultaneous Use Checking Queries" in sql.conf
457
+#	sql
458
+}
459
+
460
+
461
+#  Post-Authentication
462
+#  Once we KNOW that the user has been authenticated, there are
463
+#  additional steps we can take.
464
+post-auth {
465
+	#  Get an address from the IP Pool.
466
+#	main_pool
467
+
468
+	#
469
+	#  If you want to have a log of authentication replies,
470
+	#  un-comment the following line, and the 'detail reply_log'
471
+	#  section, above.
472
+#	reply_log
473
+
474
+	#
475
+	#  After authenticating the user, do another SQL query.
476
+	#
477
+	#  See "Authentication Logging Queries" in sql.conf
478
+#	sql
479
+
480
+	#
481
+	#  Instead of sending the query to the SQL server,
482
+	#  write it into a log file.
483
+	#
484
+#	sql_log
485
+
486
+	#
487
+	#  Un-comment the following if you have set
488
+	#  'edir_account_policy_check = yes' in the ldap module sub-section of
489
+	#  the 'modules' section.
490
+	#
491
+#	ldap
492
+
493
+	# For Exec-Program and Exec-Program-Wait
494
+	exec
495
+
496
+	#
497
+	#  Calculate the various WiMAX keys.  In order for this to work,
498
+	#  you will need to define the WiMAX NAI, usually via
499
+	#
500
+	#	update request {
501
+	#	       WiMAX-MN-NAI = "%{User-Name}"
502
+	#	}
503
+	#
504
+	#  If you want various keys to be calculated, you will need to
505
+	#  update the reply with "template" values.  The module will see
506
+	#  this, and replace the template values with the correct ones
507
+	#  taken from the cryptographic calculations.  e.g.
508
+	#
509
+	# 	update reply {
510
+	#		WiMAX-FA-RK-Key = 0x00
511
+	#		WiMAX-MSK = "%{EAP-MSK}"
512
+	#	}
513
+	#
514
+	#  You may want to delete the MS-MPPE-*-Keys from the reply,
515
+	#  as some WiMAX clients behave badly when those attributes
516
+	#  are included.  See "raddb/modules/wimax", configuration
517
+	#  entry "delete_mppe_keys" for more information.
518
+	#
519
+#	wimax
520
+
521
+	#  If there is a client certificate (EAP-TLS, sometimes PEAP
522
+	#  and TTLS), then some attributes are filled out after the
523
+	#  certificate verification has been performed.  These fields
524
+	#  MAY be available during the authentication, or they may be
525
+	#  available only in the "post-auth" section.
526
+	#
527
+	#  The first set of attributes contains information about the
528
+	#  issuing certificate which is being used.  The second
529
+	#  contains information about the client certificate (if
530
+	#  available).
531
+#
532
+#	update reply {
533
+#	       Reply-Message += "%{TLS-Cert-Serial}"
534
+#	       Reply-Message += "%{TLS-Cert-Expiration}"
535
+#	       Reply-Message += "%{TLS-Cert-Subject}"
536
+#	       Reply-Message += "%{TLS-Cert-Issuer}"
537
+#	       Reply-Message += "%{TLS-Cert-Common-Name}"
538
+#	       Reply-Message += "%{TLS-Cert-Subject-Alt-Name-Email}"
539
+#
540
+#	       Reply-Message += "%{TLS-Client-Cert-Serial}"
541
+#	       Reply-Message += "%{TLS-Client-Cert-Expiration}"
542
+#	       Reply-Message += "%{TLS-Client-Cert-Subject}"
543
+#	       Reply-Message += "%{TLS-Client-Cert-Issuer}"
544
+#	       Reply-Message += "%{TLS-Client-Cert-Common-Name}"
545
+#	       Reply-Message += "%{TLS-Client-Cert-Subject-Alt-Name-Email}"
546
+#	}
547
+
548
+	#  MacSEC requires the use of EAP-Key-Name.  However, we don't
549
+	#  want to send it for all EAP sessions.  Therefore, the EAP
550
+	#  modules put required data into the EAP-Session-Id attribute.
551
+	#  This attribute is never put into a request or reply packet.
552
+	#
553
+	#  Uncomment the next few lines to copy the required data into
554
+	#  the EAP-Key-Name attribute
555
+#	if (reply:EAP-Session-Id) {
556
+#		update reply {
557
+#			EAP-Key-Name := "%{reply:EAP-Session-Id}"
558
+#		}
559
+#	}
560
+
561
+	#  If the WiMAX module did it's work, you may want to do more
562
+	#  things here, like delete the MS-MPPE-*-Key attributes.
563
+	#
564
+	#	if (updated) {
565
+	#		update reply {
566
+	#			MS-MPPE-Recv-Key !* 0x00
567
+	#			MS-MPPE-Send-Key !* 0x00
568
+	#		}
569
+	#	}
570
+
571
+	#
572
+	#  Access-Reject packets are sent through the REJECT sub-section of the
573
+	#  post-auth section.
574
+	#
575
+	#  Add the ldap module name (or instance) if you have set 
576
+	#  'edir_account_policy_check = yes' in the ldap module configuration
577
+	#
578
+	Post-Auth-Type REJECT {
579
+		# log failed authentications in SQL, too.
580
+#		sql
581
+		attr_filter.access_reject
582
+	}
583
+}
584
+
585
+#
586
+#  When the server decides to proxy a request to a home server,
587
+#  the proxied request is first passed through the pre-proxy
588
+#  stage.  This stage can re-write the request, or decide to
589
+#  cancel the proxy.
590
+#
591
+#  Only a few modules currently have this method.
592
+#
593
+pre-proxy {
594
+#	attr_rewrite
595
+
596
+	#  Uncomment the following line if you want to change attributes
597
+	#  as defined in the preproxy_users file.
598
+#	files
599
+
600
+	#  Uncomment the following line if you want to filter requests
601
+	#  sent to remote servers based on the rules defined in the
602
+	#  'attrs.pre-proxy' file.
603
+#	attr_filter.pre-proxy
604
+
605
+	#  If you want to have a log of packets proxied to a home
606
+	#  server, un-comment the following line, and the
607
+	#  'detail pre_proxy_log' section, above.
608
+#	pre_proxy_log
609
+}
610
+
611
+#
612
+#  When the server receives a reply to a request it proxied
613
+#  to a home server, the request may be massaged here, in the
614
+#  post-proxy stage.
615
+#
616
+post-proxy {
617
+
618
+	#  If you want to have a log of replies from a home server,
619
+	#  un-comment the following line, and the 'detail post_proxy_log'
620
+	#  section, above.
621
+#	post_proxy_log
622
+
623
+#	attr_rewrite
624
+
625
+	#  Uncomment the following line if you want to filter replies from
626
+	#  remote proxies based on the rules defined in the 'attrs' file.
627
+#	attr_filter.post-proxy
628
+
629
+	#
630
+	#  If you are proxying LEAP, you MUST configure the EAP
631
+	#  module, and you MUST list it here, in the post-proxy
632
+	#  stage.
633
+	#
634
+	#  You MUST also use the 'nostrip' option in the 'realm'
635
+	#  configuration.  Otherwise, the User-Name attribute
636
+	#  in the proxied request will not match the user name
637
+	#  hidden inside of the EAP packet, and the end server will
638
+	#  reject the EAP request.
639
+	#
640
+	eap
641
+
642
+	#
643
+	#  If the server tries to proxy a request and fails, then the
644
+	#  request is processed through the modules in this section.
645
+	#
646
+	#  The main use of this section is to permit robust proxying
647
+	#  of accounting packets.  The server can be configured to
648
+	#  proxy accounting packets as part of normal processing.
649
+	#  Then, if the home server goes down, accounting packets can
650
+	#  be logged to a local "detail" file, for processing with
651
+	#  radrelay.  When the home server comes back up, radrelay
652
+	#  will read the detail file, and send the packets to the
653
+	#  home server.
654
+	#
655
+	#  With this configuration, the server always responds to
656
+	#  Accounting-Requests from the NAS, but only writes
657
+	#  accounting packets to disk if the home server is down.
658
+	#
659
+#	Post-Proxy-Type Fail {
660
+#			detail
661
+#	}
662
+}
663
+
0 664
new file mode 100644
... ...
@@ -0,0 +1,421 @@
1
+# -*- text -*-
2
+######################################################################
3
+#
4
+#	This is a virtual server that handles *only* inner tunnel
5
+#	requests for EAP-TTLS and PEAP types.
6
+#
7
+#	$Id: bb0b93bc9cc9ade4e78725ea113d6f228937fef7 $
8
+#
9
+######################################################################
10
+
11
+server inner-tunnel {
12
+
13
+#
14
+#  This next section is here to allow testing of the "inner-tunnel"
15
+#  authentication methods, independently from the "default" server.
16
+#  It is listening on "localhost", so that it can only be used from
17
+#  the same machine.
18
+#
19
+#	$ radtest USER PASSWORD 127.0.0.1:18120 0 testing123
20
+#
21
+#  If it works, you have configured the inner tunnel correctly.  To check
22
+#  if PEAP will work, use:
23
+#
24
+#	$ radtest -t mschap USER PASSWORD 127.0.0.1:18120 0 testing123
25
+#
26
+#  If that works, PEAP should work.  If that command doesn't work, then
27
+#
28
+#	FIX THE INNER TUNNEL CONFIGURATION SO THAT IT WORKS.
29
+#
30
+#  Do NOT do any PEAP tests.  It won't help.  Instead, concentrate
31
+#  on fixing the inner tunnel configuration.  DO NOTHING ELSE.
32
+#
33
+listen {
34
+       ipaddr = 127.0.0.1
35
+       port = 18120
36
+       type = auth
37
+}
38
+
39
+
40
+#  Authorization. First preprocess (hints and huntgroups files),
41
+#  then realms, and finally look in the "users" file.
42
+#
43
+#  The order of the realm modules will determine the order that
44
+#  we try to find a matching realm.
45
+#
46
+#  Make *sure* that 'preprocess' comes before any realm if you 
47
+#  need to setup hints for the remote radius server
48
+authorize {
49
+	#
50
+	#  The chap module will set 'Auth-Type := CHAP' if we are
51
+	#  handling a CHAP request and Auth-Type has not already been set
52
+	chap
53
+
54
+	#
55
+	#  If the users are logging in with an MS-CHAP-Challenge
56
+	#  attribute for authentication, the mschap module will find
57
+	#  the MS-CHAP-Challenge attribute, and add 'Auth-Type := MS-CHAP'
58
+	#  to the request, which will cause the server to then use
59
+	#  the mschap module for authentication.
60
+	mschap
61
+
62
+	#
63
+	#  Pull crypt'd passwords from /etc/passwd or /etc/shadow,
64
+	#  using the system API's to get the password.  If you want
65
+	#  to read /etc/passwd or /etc/shadow directly, see the
66
+	#  passwd module, above.
67
+	#
68
+#	unix
69
+
70
+	#
71
+	#  Look for IPASS style 'realm/', and if not found, look for
72
+	#  '@realm', and decide whether or not to proxy, based on
73
+	#  that.
74
+#	IPASS
75
+
76
+	#
77
+	#  If you are using multiple kinds of realms, you probably
78
+	#  want to set "ignore_null = yes" for all of them.
79
+	#  Otherwise, when the first style of realm doesn't match,
80
+	#  the other styles won't be checked.
81
+	#
82
+	#  Note that proxying the inner tunnel authentication means
83
+	#  that the user MAY use one identity in the outer session
84
+	#  (e.g. "anonymous", and a different one here
85
+	#  (e.g. "user@example.com").  The inner session will then be
86
+	#  proxied elsewhere for authentication.  If you are not
87
+	#  careful, this means that the user can cause you to forward
88
+	#  the authentication to another RADIUS server, and have the
89
+	#  accounting logs *not* sent to the other server.  This makes
90
+	#  it difficult to bill people for their network activity.
91
+	#
92
+	suffix
93
+#	ntdomain
94
+
95
+	#
96
+	#  The "suffix" module takes care of stripping the domain
97
+	#  (e.g. "@example.com") from the User-Name attribute, and the
98
+	#  next few lines ensure that the request is not proxied.
99
+	#
100
+	#  If you want the inner tunnel request to be proxied, delete
101
+	#  the next few lines.
102
+	#
103
+	update control {
104
+	       Proxy-To-Realm := LOCAL
105
+	}
106
+
107
+	#
108
+	#  This module takes care of EAP-MSCHAPv2 authentication.
109
+	#
110
+	#  It also sets the EAP-Type attribute in the request
111
+	#  attribute list to the EAP type from the packet.
112
+	#
113
+	#  The example below uses module failover to avoid querying all
114
+	#  of the following modules if the EAP module returns "ok".
115
+	#  Therefore, your LDAP and/or SQL servers will not be queried
116
+	#  for the many packets that go back and forth to set up TTLS
117
+	#  or PEAP.  The load on those servers will therefore be reduced.
118
+	#
119
+	eap {
120
+		ok = return
121
+	}
122
+
123
+	#
124
+	#  Read the 'users' file
125
+	files
126
+
127
+	#
128
+	#  Look in an SQL database.  The schema of the database
129
+	#  is meant to mirror the "users" file.
130
+	#
131
+	#  See "Authorization Queries" in sql.conf
132
+#	sql
133
+
134
+	#
135
+	#  If you are using /etc/smbpasswd, and are also doing
136
+	#  mschap authentication, the un-comment this line, and
137
+	#  configure the 'etc_smbpasswd' module, above.
138
+#	etc_smbpasswd
139
+
140
+	#
141
+	#  The ldap module will set Auth-Type to LDAP if it has not
142
+	#  already been set
143
+	ldap
144
+
145
+	#
146
+	#  Enforce daily limits on time spent logged in.
147
+#	daily
148
+
149
+	#
150
+	# Use the checkval module
151
+#	checkval
152
+
153
+	expiration
154
+	logintime
155
+
156
+	#
157
+	#  If no other module has claimed responsibility for
158
+	#  authentication, then try to use PAP.  This allows the
159
+	#  other modules listed above to add a "known good" password
160
+	#  to the request, and to do nothing else.  The PAP module
161
+	#  will then see that password, and use it to do PAP
162
+	#  authentication.
163
+	#
164
+	#  This module should be listed last, so that the other modules
165
+	#  get a chance to set Auth-Type for themselves.
166
+	#
167
+	pap
168
+}
169
+
170
+
171
+#  Authentication.
172
+#
173
+#
174
+#  This section lists which modules are available for authentication.
175
+#  Note that it does NOT mean 'try each module in order'.  It means
176
+#  that a module from the 'authorize' section adds a configuration
177
+#  attribute 'Auth-Type := FOO'.  That authentication type is then
178
+#  used to pick the apropriate module from the list below.
179
+#
180
+
181
+#  In general, you SHOULD NOT set the Auth-Type attribute.  The server
182
+#  will figure it out on its own, and will do the right thing.  The
183
+#  most common side effect of erroneously setting the Auth-Type
184
+#  attribute is that one authentication method will work, but the
185
+#  others will not.
186
+#
187
+#  The common reasons to set the Auth-Type attribute by hand
188
+#  is to either forcibly reject the user, or forcibly accept him.
189
+#
190
+authenticate {
191
+	#
192
+	#  PAP authentication, when a back-end database listed
193
+	#  in the 'authorize' section supplies a password.  The
194
+	#  password can be clear-text, or encrypted.
195
+	Auth-Type PAP {
196
+		pap
197
+	}
198
+
199
+	#
200
+	#  Most people want CHAP authentication
201
+	#  A back-end database listed in the 'authorize' section
202
+	#  MUST supply a CLEAR TEXT password.  Encrypted passwords
203
+	#  won't work.
204
+	Auth-Type CHAP {
205
+		chap
206
+	}
207
+
208
+	#
209
+	#  MSCHAP authentication.
210
+	Auth-Type MS-CHAP {
211
+		mschap
212
+	}
213
+
214
+	#
215
+	#  Pluggable Authentication Modules.
216
+#	pam
217
+
218
+	#
219
+	#  See 'man getpwent' for information on how the 'unix'
220
+	#  module checks the users password.  Note that packets
221
+	#  containing CHAP-Password attributes CANNOT be authenticated
222
+	#  against /etc/passwd!  See the FAQ for details.
223
+	#  
224
+	unix
225
+
226
+	# Uncomment it if you want to use ldap for authentication
227
+	#
228
+	# Note that this means "check plain-text password against
229
+	# the ldap database", which means that EAP won't work,
230
+	# as it does not supply a plain-text password.
231
+	Auth-Type LDAP {
232
+		ldap
233
+	}
234
+
235
+	#
236
+	#  Allow EAP authentication.
237
+	eap
238
+}
239
+
240
+######################################################################
241
+#
242
+#	There are no accounting requests inside of EAP-TTLS or PEAP
243
+#	tunnels.
244
+#
245
+######################################################################
246
+
247
+
248
+#  Session database, used for checking Simultaneous-Use. Either the radutmp 
249
+#  or rlm_sql module can handle this.
250
+#  The rlm_sql module is *much* faster
251
+session {
252
+	radutmp
253
+
254
+	#
255
+	#  See "Simultaneous Use Checking Queries" in sql.conf
256
+#	sql
257
+}
258
+
259
+
260
+#  Post-Authentication
261
+#  Once we KNOW that the user has been authenticated, there are
262
+#  additional steps we can take.
263
+post-auth {
264
+	# Note that we do NOT assign IP addresses here.
265
+	# If you try to assign IP addresses for EAP authentication types,
266
+	# it WILL NOT WORK.  You MUST use DHCP.
267
+
268
+	#
269
+	#  If you want to have a log of authentication replies,
270
+	#  un-comment the following line, and the 'detail reply_log'
271
+	#  section, above.
272
+#	reply_log
273
+
274
+	#
275
+	#  After authenticating the user, do another SQL query.
276
+	#
277
+	#  See "Authentication Logging Queries" in sql.conf
278
+#	sql
279
+
280
+	#
281
+	#  Instead of sending the query to the SQL server,
282
+	#  write it into a log file.
283
+	#
284
+#	sql_log
285
+
286
+	#
287
+	#  Un-comment the following if you have set
288
+	#  'edir_account_policy_check = yes' in the ldap module sub-section of
289
+	#  the 'modules' section.
290
+	#
291
+#	ldap
292
+
293
+	#
294
+	#  Access-Reject packets are sent through the REJECT sub-section of the
295
+	#  post-auth section.
296
+	#
297
+	#  Add the ldap module name (or instance) if you have set 
298
+	#  'edir_account_policy_check = yes' in the ldap module configuration
299
+	#
300
+	Post-Auth-Type REJECT {
301
+		# log failed authentications in SQL, too.
302
+#		sql
303
+		attr_filter.access_reject
304
+	}
305
+
306
+	#
307
+	#  The example policy below updates the outer tunnel reply
308
+	#  (usually Access-Accept) with the User-Name from the inner
309
+	#  tunnel User-Name.  Since this section is processed in the
310
+	#  context of the inner tunnel, "request" here means "inner
311
+	#  tunnel request", and "outer.reply" means "outer tunnel
312
+	#  reply attributes".
313
+	#
314
+	#  This example is most useful when the outer session contains
315
+	#  a User-Name of "anonymous@....", or a MAC address.  If it
316
+	#  is enabled, the NAS SHOULD use the inner tunnel User-Name
317
+	#  in subsequent accounting packets.  This makes it easier to
318
+	#  track user sessions, as they will all be based on the real
319
+	#  name, and not on "anonymous".
320
+	#
321
+	#  The problem with doing this is that it ALSO exposes the
322
+	#  real user name to any intermediate proxies.  People use
323
+	#  "anonymous" identifiers outside of the tunnel for a very
324
+	#  good reason: it gives them more privacy.  Setting the reply
325
+	#  to contain the real user name removes ALL privacy from
326
+	#  their session.
327
+	#
328
+	#  If you want privacy to remain, see the
329
+	#  Chargeable-User-Identity attribute from RFC 4372.  In order
330
+	#  to use that attribute, you will have to allocate a
331
+	#  per-session identifier for the user, and store it in a
332
+	#  long-term database (e.g. SQL).  You should also use that
333
+	#  attribute INSTEAD of the configuration below.
334
+	#
335
+	#update outer.reply {
336
+	#	User-Name = "%{request:User-Name}"
337
+	#}
338
+
339
+}
340
+
341
+#
342
+#  When the server decides to proxy a request to a home server,
343
+#  the proxied request is first passed through the pre-proxy
344
+#  stage.  This stage can re-write the request, or decide to
345
+#  cancel the proxy.
346
+#
347
+#  Only a few modules currently have this method.
348
+#
349
+pre-proxy {
350
+#	attr_rewrite
351
+
352
+	#  Uncomment the following line if you want to change attributes
353
+	#  as defined in the preproxy_users file.
354
+#	files
355
+
356
+	#  Uncomment the following line if you want to filter requests
357
+	#  sent to remote servers based on the rules defined in the
358
+	#  'attrs.pre-proxy' file.
359
+#	attr_filter.pre-proxy
360
+
361
+	#  If you want to have a log of packets proxied to a home
362
+	#  server, un-comment the following line, and the
363
+	#  'detail pre_proxy_log' section, above.
364
+#	pre_proxy_log
365
+}
366
+
367
+#
368
+#  When the server receives a reply to a request it proxied
369
+#  to a home server, the request may be massaged here, in the
370
+#  post-proxy stage.
371
+#
372
+post-proxy {
373
+
374
+	#  If you want to have a log of replies from a home server,
375
+	#  un-comment the following line, and the 'detail post_proxy_log'
376
+	#  section, above.
377
+#	post_proxy_log
378
+
379
+#	attr_rewrite
380
+
381
+	#  Uncomment the following line if you want to filter replies from
382
+	#  remote proxies based on the rules defined in the 'attrs' file.
383
+#	attr_filter.post-proxy
384
+
385
+	#
386
+	#  If you are proxying LEAP, you MUST configure the EAP
387
+	#  module, and you MUST list it here, in the post-proxy
388
+	#  stage.
389
+	#
390
+	#  You MUST also use the 'nostrip' option in the 'realm'
391
+	#  configuration.  Otherwise, the User-Name attribute
392
+	#  in the proxied request will not match the user name
393
+	#  hidden inside of the EAP packet, and the end server will
394
+	#  reject the EAP request.
395
+	#
396
+	eap
397
+
398
+	#
399
+	#  If the server tries to proxy a request and fails, then the
400
+	#  request is processed through the modules in this section.
401
+	#
402
+	#  The main use of this section is to permit robust proxying
403
+	#  of accounting packets.  The server can be configured to
404
+	#  proxy accounting packets as part of normal processing.
405
+	#  Then, if the home server goes down, accounting packets can
406
+	#  be logged to a local "detail" file, for processing with
407
+	#  radrelay.  When the home server comes back up, radrelay
408
+	#  will read the detail file, and send the packets to the
409
+	#  home server.
410
+	#
411
+	#  With this configuration, the server always responds to
412
+	#  Accounting-Requests from the NAS, but only writes
413
+	#  accounting packets to disk if the home server is down.
414
+	#
415
+#	Post-Proxy-Type Fail {
416
+#			detail
417
+#	}
418
+
419
+}
420
+
421
+} # inner-tunnel server block
0 422
new file mode 100644
... ...
@@ -0,0 +1,205 @@
1
+#
2
+#	Please read the documentation file ../doc/processing_users_file,
3
+#	or 'man 5 users' (after installing the server) for more information.
4
+#
5
+#	This file contains authentication security and configuration
6
+#	information for each user.  Accounting requests are NOT processed
7
+#	through this file.  Instead, see 'acct_users', in this directory.
8
+#
9
+#	The first field is the user's name and can be up to
10
+#	253 characters in length.  This is followed (on the same line) with
11
+#	the list of authentication requirements for that user.  This can
12
+#	include password, comm server name, comm server port number, protocol
13
+#	type (perhaps set by the "hints" file), and huntgroup name (set by
14
+#	the "huntgroups" file).
15
+#
16
+#	If you are not sure why a particular reply is being sent by the
17
+#	server, then run the server in debugging mode (radiusd -X), and
18
+#	you will see which entries in this file are matched.
19
+#
20
+#	When an authentication request is received from the comm server,
21
+#	these values are tested. Only the first match is used unless the
22
+#	"Fall-Through" variable is set to "Yes".
23
+#
24
+#	A special user named "DEFAULT" matches on all usernames.
25
+#	You can have several DEFAULT entries. All entries are processed
26
+#	in the order they appear in this file. The first entry that
27
+#	matches the login-request will stop processing unless you use
28
+#	the Fall-Through variable.
29
+#
30
+#	If you use the database support to turn this file into a .db or .dbm
31
+#	file, the DEFAULT entries _have_ to be at the end of this file and
32
+#	you can't have multiple entries for one username.
33
+#
34
+#	Indented (with the tab character) lines following the first
35
+#	line indicate the configuration values to be passed back to
36
+#	the comm server to allow the initiation of a user session.
37
+#	This can include things like the PPP configuration values
38
+#	or the host to log the user onto.
39
+#
40
+#	You can include another `users' file with `$INCLUDE users.other'
41
+#
42
+
43
+#
44
+#	For a list of RADIUS attributes, and links to their definitions,
45
+#	see:
46
+#
47
+#	http://www.freeradius.org/rfc/attributes.html
48
+#
49
+
50
+#
51
+# Deny access for a specific user.  Note that this entry MUST
52
+# be before any other 'Auth-Type' attribute which results in the user
53
+# being authenticated.
54
+#
55
+# Note that there is NO 'Fall-Through' attribute, so the user will not
56
+# be given any additional resources.
57
+#
58
+#lameuser	Auth-Type := Reject
59
+#		Reply-Message = "Your account has been disabled."
60
+
61
+#
62
+# Deny access for a group of users.
63
+#
64
+# Note that there is NO 'Fall-Through' attribute, so the user will not
65
+# be given any additional resources.
66
+#
67
+#DEFAULT	Group == "disabled", Auth-Type := Reject
68
+#		Reply-Message = "Your account has been disabled."
69
+#
70
+
71
+DEFAULT Auth-Type = "LDAP"
72
+
73
+#
74
+# This is a complete entry for "steve". Note that there is no Fall-Through
75
+# entry so that no DEFAULT entry will be used, and the user will NOT
76
+# get any attributes in addition to the ones listed here.
77
+#
78
+#steve	Cleartext-Password := "testing"
79
+#	Service-Type = Framed-User,
80
+#	Framed-Protocol = PPP,
81
+#	Framed-IP-Address = 172.16.3.33,
82
+#	Framed-IP-Netmask = 255.255.255.0,
83
+#	Framed-Routing = Broadcast-Listen,
84
+#	Framed-Filter-Id = "std.ppp",
85
+#	Framed-MTU = 1500,
86
+#	Framed-Compression = Van-Jacobsen-TCP-IP
87
+
88
+#
89
+# This is an entry for a user with a space in their name.
90
+# Note the double quotes surrounding the name.
91
+#
92
+#"John Doe"	Cleartext-Password := "hello"
93
+#		Reply-Message = "Hello, %{User-Name}"
94
+
95
+#
96
+# Dial user back and telnet to the default host for that port
97
+#
98
+#Deg	Cleartext-Password := "ge55ged"
99
+#	Service-Type = Callback-Login-User,
100
+#	Login-IP-Host = 0.0.0.0,
101
+#	Callback-Number = "9,5551212",
102
+#	Login-Service = Telnet,
103
+#	Login-TCP-Port = Telnet
104
+
105
+#
106
+# Another complete entry. After the user "dialbk" has logged in, the
107
+# connection will be broken and the user will be dialed back after which
108
+# he will get a connection to the host "timeshare1".
109
+#
110
+#dialbk	Cleartext-Password := "callme"
111
+#	Service-Type = Callback-Login-User,
112
+#	Login-IP-Host = timeshare1,
113
+#	Login-Service = PortMaster,
114
+#	Callback-Number = "9,1-800-555-1212"
115
+
116
+#
117
+# user "swilson" will only get a static IP number if he logs in with
118
+# a framed protocol on a terminal server in Alphen (see the huntgroups file).
119
+#
120
+# Note that by setting "Fall-Through", other attributes will be added from
121
+# the following DEFAULT entries
122
+#
123
+#swilson	Service-Type == Framed-User, Huntgroup-Name == "alphen"
124
+#		Framed-IP-Address = 192.168.1.65,
125
+#		Fall-Through = Yes
126
+
127
+#
128
+# If the user logs in as 'username.shell', then authenticate them
129
+# using the default method, give them shell access, and stop processing
130
+# the rest of the file.
131
+#
132
+#DEFAULT	Suffix == ".shell"
133
+#		Service-Type = Login-User,
134
+#		Login-Service = Telnet,
135
+#		Login-IP-Host = your.shell.machine
136
+
137
+
138
+#
139
+# The rest of this file contains the several DEFAULT entries.
140
+# DEFAULT entries match with all login names.
141
+# Note that DEFAULT entries can also Fall-Through (see first entry).
142
+# A name-value pair from a DEFAULT entry will _NEVER_ override
143
+# an already existing name-value pair.
144
+#
145
+
146
+#
147
+# Set up different IP address pools for the terminal servers.
148
+# Note that the "+" behind the IP address means that this is the "base"
149
+# IP address. The Port-Id (S0, S1 etc) will be added to it.
150
+#
151
+#DEFAULT	Service-Type == Framed-User, Huntgroup-Name == "alphen"
152
+#		Framed-IP-Address = 192.168.1.32+,
153
+#		Fall-Through = Yes
154
+
155
+#DEFAULT	Service-Type == Framed-User, Huntgroup-Name == "delft"
156
+#		Framed-IP-Address = 192.168.2.32+,
157
+#		Fall-Through = Yes
158
+
159
+#
160
+# Sample defaults for all framed connections.
161
+#
162
+#DEFAULT	Service-Type == Framed-User
163
+#	Framed-IP-Address = 255.255.255.254,
164
+#	Framed-MTU = 576,
165
+#	Service-Type = Framed-User,
166
+#	Fall-Through = Yes
167
+
168
+#
169
+# Default for PPP: dynamic IP address, PPP mode, VJ-compression.
170
+# NOTE: we do not use Hint = "PPP", since PPP might also be auto-detected
171
+#	by the terminal server in which case there may not be a "P" suffix.
172
+#	The terminal server sends "Framed-Protocol = PPP" for auto PPP.
173
+#
174
+DEFAULT	Framed-Protocol == PPP
175
+	Framed-Protocol = PPP,
176
+	Framed-Compression = Van-Jacobson-TCP-IP
177
+
178
+#
179
+# Default for CSLIP: dynamic IP address, SLIP mode, VJ-compression.
180
+#
181
+DEFAULT	Hint == "CSLIP"
182
+	Framed-Protocol = SLIP,
183
+	Framed-Compression = Van-Jacobson-TCP-IP
184
+
185
+#
186
+# Default for SLIP: dynamic IP address, SLIP mode.
187
+#
188
+DEFAULT	Hint == "SLIP"
189
+	Framed-Protocol = SLIP
190
+
191
+#
192
+# Last default: rlogin to our main server.
193
+#
194
+#DEFAULT
195
+#	Service-Type = Login-User,
196
+#	Login-Service = Rlogin,
197
+#	Login-IP-Host = shellbox.ispdomain.com
198
+
199
+# #
200
+# # Last default: shell on the local terminal server.
201
+# #
202
+# DEFAULT
203
+# 	Service-Type = Administrative-User
204
+
205
+# On no match, the user is denied access.