· 10 years ago · Jan 18, 2016, 10:51 PM
1mohammed@linuxserver:~$ sudo freeradius -X
2FreeRADIUS Version 2.1.12, for host i686-pc-linux-gnu, built on Feb 27 2015 at 12:38:42
3Copyright (C) 1999-2009 The FreeRADIUS server project and contributors.
4There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
5PARTICULAR PURPOSE.
6You may redistribute copies of FreeRADIUS under the terms of the
7GNU General Public License v2.
8Starting - reading configuration files ...
9including configuration file /etc/freeradius/radiusd.conf
10including configuration file /etc/freeradius/proxy.conf
11including configuration file /etc/freeradius/clients.conf
12including files in directory /etc/freeradius/modules/
13including configuration file /etc/freeradius/modules/detail
14including configuration file /etc/freeradius/modules/cui
15including configuration file /etc/freeradius/modules/smsotp
16including configuration file /etc/freeradius/modules/expiration
17including configuration file /etc/freeradius/modules/unix
18including configuration file /etc/freeradius/modules/replicate
19including configuration file /etc/freeradius/modules/detail.example.com
20including configuration file /etc/freeradius/modules/passwd
21including configuration file /etc/freeradius/modules/opendirectory
22including configuration file /etc/freeradius/modules/ippool
23including configuration file /etc/freeradius/modules/chap
24including configuration file /etc/freeradius/modules/mschap
25including configuration file /etc/freeradius/modules/soh
26including configuration file /etc/freeradius/modules/etc_group
27including configuration file /etc/freeradius/modules/logintime
28including configuration file /etc/freeradius/modules/radutmp
29including configuration file /etc/freeradius/modules/exec
30including configuration file /etc/freeradius/modules/counter
31including configuration file /etc/freeradius/modules/inner-eap
32including configuration file /etc/freeradius/modules/mac2vlan
33including configuration file /etc/freeradius/modules/files
34including configuration file /etc/freeradius/modules/perl
35including configuration file /etc/freeradius/modules/mac2ip
36including configuration file /etc/freeradius/modules/krb5
37including configuration file /etc/freeradius/modules/ntlm_auth
38including configuration file /etc/freeradius/modules/preprocess
39including configuration file /etc/freeradius/modules/ldap
40including configuration file /etc/freeradius/modules/sql_log
41including configuration file /etc/freeradius/modules/dynamic_clients
42including configuration file /etc/freeradius/modules/policy
43including configuration file /etc/freeradius/modules/smbpasswd
44including configuration file /etc/freeradius/modules/linelog
45including configuration file /etc/freeradius/modules/pap
46including configuration file /etc/freeradius/modules/sradutmp
47including configuration file /etc/freeradius/modules/always
48including configuration file /etc/freeradius/modules/pam
49including configuration file /etc/freeradius/modules/sqlcounter_expire_on_login
50including configuration file /etc/freeradius/modules/echo
51including configuration file /etc/freeradius/modules/rediswho
52including configuration file /etc/freeradius/modules/redis
53including configuration file /etc/freeradius/modules/attr_rewrite
54including configuration file /etc/freeradius/modules/realm
55including configuration file /etc/freeradius/modules/attr_filter
56including configuration file /etc/freeradius/modules/expr
57including configuration file /etc/freeradius/modules/otp
58including configuration file /etc/freeradius/modules/detail.log
59including configuration file /etc/freeradius/modules/digest
60including configuration file /etc/freeradius/modules/wimax
61including configuration file /etc/freeradius/modules/acct_unique
62including configuration file /etc/freeradius/modules/checkval
63including configuration file /etc/freeradius/policy.conf
64including files in directory /etc/freeradius/sites-enabled/
65including configuration file /etc/freeradius/sites-enabled/default
66including configuration file /etc/freeradius/sites-enabled/inner-tunnel
67main {
68 user = "freerad"
69 group = "freerad"
70 allow_core_dumps = no
71}
72including dictionary file /etc/freeradius/dictionary
73main {
74 name = "freeradius"
75 prefix = "/usr"
76 localstatedir = "/var"
77 sbindir = "/usr/sbin"
78 logdir = "/var/log/freeradius"
79 run_dir = "/var/run/freeradius"
80 libdir = "/usr/lib/freeradius"
81 radacctdir = "/var/log/freeradius/radacct"
82 hostname_lookups = no
83 max_request_time = 30
84 cleanup_delay = 5
85 max_requests = 1024
86 pidfile = "/var/run/freeradius/freeradius.pid"
87 checkrad = "/usr/sbin/checkrad"
88 debug_level = 0
89 proxy_requests = yes
90 log {
91 stripped_names = no
92 auth = no
93 auth_badpass = no
94 auth_goodpass = no
95 }
96 security {
97 max_attributes = 200
98 reject_delay = 1
99 status_server = yes
100 }
101}
102radiusd: #### Loading Realms and Home Servers ####
103 proxy server {
104 retry_delay = 5
105 retry_count = 3
106 default_fallback = no
107 dead_time = 120
108 wake_all_if_all_dead = no
109 }
110 home_server localhost {
111 ipaddr = 127.0.0.1
112 port = 1812
113 type = "auth"
114 secret = "testing123"
115 response_window = 20
116 max_outstanding = 65536
117 require_message_authenticator = yes
118 zombie_period = 40
119 status_check = "status-server"
120 ping_interval = 30
121 check_interval = 30
122 num_answers_to_alive = 3
123 num_pings_to_alive = 3
124 revive_interval = 120
125 status_check_timeout = 4
126 coa {
127 irt = 2
128 mrt = 16
129 mrc = 5
130 mrd = 30
131 }
132 }
133 home_server_pool my_auth_failover {
134 type = fail-over
135 home_server = localhost
136 }
137 realm example.com {
138 auth_pool = my_auth_failover
139 }
140 realm LOCAL {
141 }
142radiusd: #### Loading Clients ####
143 client localhost {
144 ipaddr = 127.0.0.1
145 require_message_authenticator = no
146 secret = "secretkey"
147 nastype = "other"
148 }
149 client 192.168.0.0/16 {
150 require_message_authenticator = no
151 secret = "secretkey"
152 nastype = "other"
153 }
154 client 10.0.0.0/8 {
155 require_message_authenticator = no
156 secret = "secretkey"
157 nastype = "other"
158 }
159radiusd: #### Instantiating modules ####
160 instantiate {
161 Module: Linked to module rlm_exec
162 Module: Instantiating module "exec" from file /etc/freeradius/modules/exec
163 exec {
164 wait = no
165 input_pairs = "request"
166 shell_escape = yes
167 }
168 Module: Linked to module rlm_expr
169 Module: Instantiating module "expr" from file /etc/freeradius/modules/expr
170 Module: Linked to module rlm_expiration
171 Module: Instantiating module "expiration" from file /etc/freeradius/modules/expiration
172 expiration {
173 reply-message = "Password Has Expired "
174 }
175 Module: Linked to module rlm_logintime
176 Module: Instantiating module "logintime" from file /etc/freeradius/modules/logintime
177 logintime {
178 reply-message = "You are calling outside your allowed timespan "
179 minimum-timeout = 60
180 }
181 }
182radiusd: #### Loading Virtual Servers ####
183server { # from file /etc/freeradius/radiusd.conf
184 modules {
185 Module: Creating Auth-Type = LDAP
186 Module: Creating Post-Auth-Type = REJECT
187 Module: Checking authenticate {...} for more modules to load
188 Module: Linked to module rlm_ldap
189 Module: Instantiating module "ldap" from file /etc/freeradius/modules/ldap
190 ldap {
191 server = "127.0.0.1"
192 port = 389
193 password = "M13n14e5"
194 identity = "cn=admin,dc=example,dc=com"
195 net_timeout = 1
196 timeout = 4
197 timelimit = 3
198 tls_mode = no
199 start_tls = no
200 tls_require_cert = "allow"
201 basedn = "ou=people,dc=example,dc=com"
202 filter = "(uniqueIdentifier=%{%{Stripped-User-Name}:-%{User-Name}})"
203 base_filter = "(objectclass=radiusprofile)"
204 auto_header = no
205 access_attr_used_for_allow = yes
206 groupname_attribute = "cn"
207 groupmembership_filter = "(|(&(objectClass=GroupOfNames)(member=%{Ldap-UserDn}))(&(objectClass=GroupOfUniqueNames)(uniquemember=%{Ldap-UserDn})))"
208 dictionary_mapping = "/etc/freeradius/ldap.attrmap"
209 ldap_debug = 0
210 ldap_connections_number = 5
211 compare_check_items = no
212 do_xlat = yes
213 edir_account_policy_check = no
214 set_auth_type = yes
215 }
216rlm_ldap: Registering ldap_groupcmp for Ldap-Group
217rlm_ldap: Registering ldap_xlat with xlat_name ldap
218rlm_ldap: reading ldap<->radius mappings from file /etc/freeradius/ldap.attrmap
219rlm_ldap: LDAP radiusCheckItem mapped to RADIUS $GENERIC$
220rlm_ldap: LDAP radiusReplyItem mapped to RADIUS $GENERIC$
221rlm_ldap: LDAP radiusAuthType mapped to RADIUS Auth-Type
222rlm_ldap: LDAP radiusSimultaneousUse mapped to RADIUS Simultaneous-Use
223rlm_ldap: LDAP radiusCalledStationId mapped to RADIUS Called-Station-Id
224rlm_ldap: LDAP radiusCallingStationId mapped to RADIUS Calling-Station-Id
225rlm_ldap: LDAP lmPassword mapped to RADIUS LM-Password
226rlm_ldap: LDAP ntPassword mapped to RADIUS NT-Password
227rlm_ldap: LDAP sambaLmPassword mapped to RADIUS LM-Password
228rlm_ldap: LDAP sambaNtPassword mapped to RADIUS NT-Password
229rlm_ldap: LDAP dBCSPwd mapped to RADIUS LM-Password
230rlm_ldap: LDAP userPassword mapped to RADIUS Password-With-Header
231rlm_ldap: LDAP acctFlags mapped to RADIUS SMB-Account-CTRL-TEXT
232rlm_ldap: LDAP radiusExpiration mapped to RADIUS Expiration
233rlm_ldap: LDAP radiusNASIpAddress mapped to RADIUS NAS-IP-Address
234rlm_ldap: LDAP radiusServiceType mapped to RADIUS Service-Type
235rlm_ldap: LDAP radiusFramedProtocol mapped to RADIUS Framed-Protocol
236rlm_ldap: LDAP radiusFramedIPAddress mapped to RADIUS Framed-IP-Address
237rlm_ldap: LDAP radiusFramedIPNetmask mapped to RADIUS Framed-IP-Netmask
238rlm_ldap: LDAP radiusFramedRoute mapped to RADIUS Framed-Route
239rlm_ldap: LDAP radiusFramedRouting mapped to RADIUS Framed-Routing
240rlm_ldap: LDAP radiusFilterId mapped to RADIUS Filter-Id
241rlm_ldap: LDAP radiusFramedMTU mapped to RADIUS Framed-MTU
242rlm_ldap: LDAP radiusFramedCompression mapped to RADIUS Framed-Compression
243rlm_ldap: LDAP radiusLoginIPHost mapped to RADIUS Login-IP-Host
244rlm_ldap: LDAP radiusLoginService mapped to RADIUS Login-Service
245rlm_ldap: LDAP radiusLoginTCPPort mapped to RADIUS Login-TCP-Port
246rlm_ldap: LDAP radiusCallbackNumber mapped to RADIUS Callback-Number
247rlm_ldap: LDAP radiusCallbackId mapped to RADIUS Callback-Id
248rlm_ldap: LDAP radiusFramedIPXNetwork mapped to RADIUS Framed-IPX-Network
249rlm_ldap: LDAP radiusClass mapped to RADIUS Class
250rlm_ldap: LDAP radiusSessionTimeout mapped to RADIUS Session-Timeout
251rlm_ldap: LDAP radiusIdleTimeout mapped to RADIUS Idle-Timeout
252rlm_ldap: LDAP radiusTerminationAction mapped to RADIUS Termination-Action
253rlm_ldap: LDAP radiusLoginLATService mapped to RADIUS Login-LAT-Service
254rlm_ldap: LDAP radiusLoginLATNode mapped to RADIUS Login-LAT-Node
255rlm_ldap: LDAP radiusLoginLATGroup mapped to RADIUS Login-LAT-Group
256rlm_ldap: LDAP radiusFramedAppleTalkLink mapped to RADIUS Framed-AppleTalk-Link
257rlm_ldap: LDAP radiusFramedAppleTalkNetwork mapped to RADIUS Framed-AppleTalk-Network
258rlm_ldap: LDAP radiusFramedAppleTalkZone mapped to RADIUS Framed-AppleTalk-Zone
259rlm_ldap: LDAP radiusPortLimit mapped to RADIUS Port-Limit
260rlm_ldap: LDAP radiusLoginLATPort mapped to RADIUS Login-LAT-Port
261rlm_ldap: LDAP radiusReplyMessage mapped to RADIUS Reply-Message
262rlm_ldap: LDAP radiusTunnelType mapped to RADIUS Tunnel-Type
263rlm_ldap: LDAP radiusTunnelMediumType mapped to RADIUS Tunnel-Medium-Type
264rlm_ldap: LDAP radiusTunnelPrivateGroupId mapped to RADIUS Tunnel-Private-Group-Id
265conns: 0x880c348
266 Module: Checking authorize {...} for more modules to load
267 Module: Checking session {...} for more modules to load
268 Module: Linked to module rlm_radutmp
269 Module: Instantiating module "radutmp" from file /etc/freeradius/modules/radutmp
270 radutmp {
271 filename = "/var/log/freeradius/radutmp"
272 username = "%{User-Name}"
273 case_sensitive = yes
274 check_with_nas = yes
275 perm = 384
276 callerid = yes
277 }
278 Module: Checking post-auth {...} for more modules to load
279 Module: Linked to module rlm_attr_filter
280 Module: Instantiating module "attr_filter.access_reject" from file /etc/freeradius/modules/attr_filter
281 attr_filter attr_filter.access_reject {
282 attrsfile = "/etc/freeradius/attrs.access_reject"
283 key = "%{User-Name}"
284 relaxed = no
285 }
286 } # modules
287} # server
288server inner-tunnel { # from file /etc/freeradius/sites-enabled/inner-tunnel
289 modules {
290 Module: Checking authenticate {...} for more modules to load
291 Module: Checking authorize {...} for more modules to load
292 Module: Checking session {...} for more modules to load
293 Module: Checking post-auth {...} for more modules to load
294 } # modules
295} # server
296radiusd: #### Opening IP addresses and Ports ####
297listen {
298 type = "auth"
299 ipaddr = *
300 port = 0
301}
302listen {
303 type = "acct"
304 ipaddr = *
305 port = 0
306}
307 ... adding new socket proxy address * port 37921
308Listening on authentication address * port 1812
309Listening on accounting address * port 1813
310Listening on proxy address * port 1814
311Ready to process requests.
312rad_recv: Access-Request packet from host 192.168.1.1 port 35011, id=4, length=154
313 User-Name = "alice"
314 NAS-IP-Address = 78.104.81.132
315 Called-Station-Id = "A2-F3-C1-67-EC-68:dd-wrt_vap"
316 NAS-Port-Type = Wireless-802.11
317 NAS-Port = 1
318 Calling-Station-Id = "48-D2-24-3F-55-D4"
319 Connect-Info = "CONNECT 54Mbps 802.11g"
320 Framed-MTU = 1400
321 EAP-Message = 0x0241000a01616c696365
322 Message-Authenticator = 0x1c7a60e003d973d3b792e6e77a8dd835
323# Executing section authorize from file /etc/freeradius/sites-enabled/default
324+- entering group authorize {...}
325[ldap] performing user authorization for alice
326[ldap] expand: %{Stripped-User-Name} ->
327[ldap] ... expanding second conditional
328[ldap] expand: %{User-Name} -> alice
329[ldap] expand: (uniqueIdentifier=%{%{Stripped-User-Name}:-%{User-Name}}) -> (uniqueIdentifier=alice)
330[ldap] expand: ou=people,dc=example,dc=com -> ou=people,dc=example,dc=com
331 [ldap] ldap_get_conn: Checking Id: 0
332 [ldap] ldap_get_conn: Got Id: 0
333 [ldap] attempting LDAP reconnection
334 [ldap] (re)connect to 127.0.0.1:389, authentication 0
335 [ldap] bind as cn=admin,dc=example,dc=com/M13n14e5 to 127.0.0.1:389
336 [ldap] waiting for bind result ...
337 [ldap] Bind was successful
338 [ldap] performing search in ou=people,dc=example,dc=com, with filter (uniqueIdentifier=alice)
339[ldap] No default NMAS login sequence
340[ldap] looking for check items in directory...
341 [ldap] userPassword -> Password-With-Header == "M13n14e5"
342[ldap] looking for reply items in directory...
343[ldap] user alice authorized to use remote access
344 [ldap] ldap_release_conn: Release Id: 0
345++[ldap] returns ok
346ERROR: No authenticate method (Auth-Type) found for the request: Rejecting the user
347Failed to authenticate the user.
348Using Post-Auth-Type Reject
349# Executing group from file /etc/freeradius/sites-enabled/default
350+- entering group REJECT {...}
351[attr_filter.access_reject] expand: %{User-Name} -> alice
352attr_filter: Matched entry DEFAULT at line 11
353++[attr_filter.access_reject] returns updated
354Delaying reject of request 0 for 1 seconds
355Going to the next request
356Waking up in 0.9 seconds.
357Sending delayed reject for request 0
358Sending Access-Reject of id 4 to 192.168.1.1 port 35011
359Waking up in 4.9 seconds.