Hello

I am very new to freeradius and I'm trying to set up a freeradius server. I want it to use MAC addresses for client authentication. I would like to know if it is possible to test the setup on an Ethernet network instead of a wireless network. I have not read anywhere if it is possible to do this but this is what I have available at the moment. The FreeRADIUS is running on FreeBSD 4.10 using a Cisco C3550 switch as its authenticator. The client is running Windows XP Professional. Initially, I tried to test it with a username/password method with MD5 authentication type with:

users:
testuser Auth-Type := EAP, User-Password == “password”

clients.conf:
clients 10.250.0.3 { //Switch IP address
secret = secretpass
shortname = switch
nastype = cisco

on WinXP client:
EAP-Type = MD5-Challenge

This worked without any problems.
---------------
I moved on to test with MAC authentication method.
users:
0007e9-e9a6e4 Auth-Type:=Local, User-Password == “password” //client MAC
000e84-8e9700 Auth-Type:=Local, User-Password == “ password” //switch MAC

I’ve also tried:

0007e9-e9a6e4 Auth-Type:=Local, User-Password == “0007e9-e9a6e4”
000e84-8e9700 Auth-Type:=Local, User-Password == “0007e9-e9a6e4”

Other combinations I’ve tried with the MAC are: w/o dashes, all caps, using colons.
For Auth-Types, I have also tried using EAP and LEAP


clients.conf file remained the same

I added under ‘modules’ section:

----
peap {
default_eap_type = mschapv2
}

mschapv2 {
}
----
under ‘eap’ I added:
default_eap_type = PEAP

On the client side, I changed:
EAP-Type = Protected EAP(PEAP)

Results from debug mode ‘radiusd –Xy’:

Starting - reading configuration files ...
reread_config: reading radiusd.conf
Config: including file: /usr/local/etc/raddb/clients.conf
Config: including file: /usr/local/etc/raddb/snmp.conf
Config: including file: /usr/local/etc/raddb/sql.conf
main: prefix = "/usr/local"
main: localstatedir = "/var"
main: logdir = "/var/log"
main: libdir = "/usr/local/lib"
main: radacctdir = "/var/log/radacct"
main: hostname_lookups = no
main: max_request_time = 30
main: cleanup_delay = 5
main: max_requests = 1024
main: delete_blocked_requests = 0
main: port = 0
main: allow_core_dumps = no
main: log_stripped_names = no
main: log_file = "/var/log/radius.log"
main: log_auth = no
main: log_auth_badpass = no
main: log_auth_goodpass = no
main: pidfile = "/var/run/radiusd/radiusd.pid"
main: user = "(null)"
main: group = "(null)"
main: usercollide = no
main: lower_user = "no"
main: lower_pass = "no"
main: nospace_user = "no"
main: nospace_pass = "no"
main: checkrad = "/usr/local/sbin/checkrad"
main: proxy_requests = yes
security: max_attributes = 200
security: reject_delay = 1
security: status_server = no
main: debug_level = 0
read_config_files: reading dictionary
read_config_files: reading naslist
read_config_files: reading clients
read_config_files: reading realms
radiusd: entering modules setup
Module: Library search path is /usr/local/lib
Module: Loaded expr
Module: Instantiated expr (expr)
Module: Loaded PAP
pap: encryption_scheme = "crypt"
Module: Instantiated pap (pap)
Module: Loaded CHAP
Module: Instantiated chap (chap)
Module: Loaded MS-CHAP
mschap: use_mppe = yes
mschap: require_encryption = yes
mschap: require_strong = yes
mschap: passwd = "(null)"
mschap: authtype = "MS-CHAP"
Module: Instantiated mschap (mschap)
Module: Loaded System
unix: cache = no
unix: passwd = "(null)"
unix: shadow = "(null)"
unix: group = "(null)"
unix: radwtmp = "/var/log/radwtmp"
unix: usegroup = no
unix: cache_reload = 600
Module: Instantiated unix (unix)
Module: Loaded eap
eap: default_eap_type = "peap"
eap: timer_expire = 60
rlm_eap: Loaded and initialized the type md5
rlm_eap: Loaded and initialized the type leap
Module: Instantiated eap (eap)
Module: Loaded preprocess
preprocess: huntgroups = "/usr/local/etc/raddb/huntgroups"
preprocess: hints = "/usr/local/etc/raddb/hints"
preprocess: with_ascend_hack = no
preprocess: ascend_channels_per_line = 23
preprocess: with_ntdomain_hack = no
preprocess: with_specialix_jetstream_hack = no
preprocess: with_cisco_vsa_hack = no
Module: Instantiated preprocess (preprocess)
Module: Loaded realm
realm: format = "suffix"
realm: delimiter = "@"
Module: Instantiated realm (suffix)
Module: Loaded files
files: usersfile = "/usr/local/etc/raddb/users"
files: acctusersfile = "/usr/local/etc/raddb/acct_users"
files: preproxy_usersfile = "/usr/local/etc/raddb/preproxy_users"
files: compat = "no"
Module: Instantiated files (files)
Module: Loaded Acct-Unique-Session-Id
acct_unique: key = "User-Name, Acct-Session-Id, NAS-IP-Address, Client-IP-Address, NAS-Port-Id"
Module: Instantiated acct_unique (acct_unique)
Module: Loaded detail
detail: detailfile = "/var/log/radacct/%{Client-IP-Address}/detail-%Y%m%d"
detail: detailperm = 384
detail: dirperm = 493
detail: locking = no
Module: Instantiated detail (detail)
Module: Loaded radutmp
radutmp: filename = "/var/log/radutmp"
radutmp: username = "%{User-Name}"
radutmp: case_sensitive = yes
radutmp: check_with_nas = yes
radutmp: perm = 384
radutmp: callerid = yes
Module: Instantiated radutmp (radutmp)
Listening on IP address *, ports 1812/udp and 1813/udp, with proxy on 1814/udp.
Ready to process requests.
rad_recv: Access-Request packet from host 10.250.0.3:1812, id=213, length=148
NAS-IP-Address = 10.250.0.3
NAS-Port-Type = Async
User-Name = "RIVERSID-W2IT0P\\Administrator"
Service-Type = Framed-User
Framed-MTU = 1500
Calling-Station-Id = "00-07-e9-e9-a6-e4"
EAP-Message = 0x020000220152495645525349442d5732495430505c41646d696e6973747261746f72
Message-Authenticator = 0x96c79908423b06a32ce7ed822e142a7d
modcall: entering group authorize for request 0
modcall[authorize]: module "preprocess" returns ok for request 0
modcall[authorize]: module "chap" returns noop for request 0
rlm_eap: EAP packet type notification id 0 length 34
rlm_eap: EAP Start not found
modcall[authorize]: module "eap" returns updated for request 0
rlm_realm: No '@' in User-Name = "RIVERSID-W2IT0P\Administrator", looking up realm NULL
rlm_realm: No such realm "NULL"
modcall[authorize]: module "suffix" returns noop for request 0
modcall[authorize]: module "files" returns notfound for request 0
modcall[authorize]: module "mschap" returns noop for request 0
modcall: group authorize returns updated for request 0
rad_check_password: Found Auth-Type EAP
auth: type "EAP"
modcall: entering group authenticate for request 0
rlm_eap: EAP packet type notification id 0 length 34
rlm_eap: EAP Start not found
rlm_eap: Configured EAP_TYPE is not supported
rlm_eap: EAP Identity
rlm_eap: Unsupported EAP_TYPE 1
modcall[authenticate]: module "eap" returns invalid for request 0
modcall: group authenticate returns invalid for request 0
auth: Failed to validate the user.
Delaying request 0 for 1 seconds
Finished request 0
Going to the next request
--- Walking the entire request list ---
Waking up in 1 seconds...
--- Walking the entire request list ---
Waking up in 1 seconds...
--- Walking the entire request list ---
Sending Access-Reject of id 213 to 10.250.0.3:1812
EAP-Message = 0x04000004
Message-Authenticator = 0x00000000000000000000000000000000
Waking up in 4 seconds...
--- Walking the entire request list ---
Cleaning up request 0 ID 213 with timestamp 41dd8e5f
Nothing to do. Sleeping until we see a request.


What is it that I am doing wrong and/or what do I need to include? Radius rejects when I use PEAP. I have also tried using EAP and LEAP using the same procedure. EAP gives me access-challenge. When radius finds LEAP, it says it successfully initializes but then it also gives access-challenge. Can someone give me some feedback on what else I need to do?

Thanks alot
Robert


- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to