<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
Hi guys,<br><br>for my thesis i need to realize a EAP-SIM Authentication testbed. I'm using a Nokia E52 with EAP-SIM, a MIKROTIK router as access point and FreeRADIUS 2.1.10 as Radius server. I have added the necessary commands in the clients.conf, radiusd.conf, eap.conf and default files in order to enable EAP-SIM Authentication on the FreeRADIUS and I've created a flat file ' simtriplets.dat ' that is used from the Radius during the authentication process.<br>By trying to access to the Wlan with the mobile phone (Nokia E52), i got the message that the authentication was unsuccessful. But by looking at the radius debug file, i cannot recognize any failure or messages like 'Access-Reject'. The debug file shows that radius got two ' Access-Request' packets from MIKROTIK router and it also sent two 'Access-Challenge' packets back to the router. It seems the radius is waiting for next requests and then the authentication process just ends up.<br>so my questions are:<br><br>-how many request packets are needed to complete the eap-sim authentication?<br>-what should I configure to get more than 2 Access-Request<br><br>here is the content of my debug file:<br><br> .<br> .<br> .<br>Listening on authentication address * port 1812<br>Listening on accounting address * port 1813<br>Listening on authentication address 127.0.0.1 port 18120 as server inner-tunnel<br>Ready to process requests.<br>rad_recv: Access-Request packet from host 192.168.10.212 port 38803, id=29, length=238<br> Service-Type = Framed-User<br> Framed-MTU = 1400<br> User-Name = "1901700000000653"<br> NAS-Port-Id = "ap_hotspot"<br> NAS-Port-Type = Wireless-802.11<br> Acct-Session-Id = "8220000e"<br> Acct-Multi-Session-Id = "00-0C-42-64-41-9D-A8-7E-33-3E-9C-5B-82-20-00-00-00-00-00-0E"<br> Calling-Station-Id = "A8-7E-33-3E-9C-5B"<br> Called-Station-Id = "00-0C-42-64-41-9D:YANN"<br> EAP-Message = 0x020100150131393031373030303030303030363533<br> Message-Authenticator = 0xcf4e5f6429686cc260b16bd23d82489f<br> NAS-Identifier = "MT_Yann"<br> NAS-IP-Address = 192.168.10.212<br># Executing section authorize from file /etc/freeradius/sites-enabled/default<br>+- entering group authorize {...}<br>rlm_sim_files: authorized user/imsi 1901700000000653 <br>rlm_sim_files: Adding EAP-Type: eap-sim<br>++[sim_files] returns ok<br>++[preprocess] returns ok<br>++[chap] returns noop<br>++[mschap] returns noop<br>++[digest] returns noop<br>[suffix] No '@' in User-Name = "1901700000000653", looking up realm NULL<br>[suffix] No such realm "NULL"<br>++[suffix] returns noop<br>[eap] EAP packet type response id 1 length 21<br>[eap] No EAP Start, assuming it's an on-going EAP conversation<br>++[eap] returns updated<br>++[files] returns noop<br>++[expiration] returns noop<br>++[logintime] returns noop<br>[pap] WARNING! No "known good" password found for the user. Authentication may fail because of this.<br>++[pap] returns noop<br>Found Auth-Type = EAP<br># Executing group from file /etc/freeradius/sites-enabled/default<br>+- entering group authenticate {...}<br>[eap] EAP Identity<br>[eap] processing type sim<br>[eap] Underlying EAP-Type set EAP ID to 108<br>++[eap] returns handled<br>Sending Access-Challenge of id 29 to 192.168.10.212 port 38803<br> EAP-Message = 0x016c0014120a00000f0200020001000011010100<br> Message-Authenticator = 0x00000000000000000000000000000000<br> State = 0x870e2a6987623891aa6e49c2b1bcc9b6<br>Finished request 0.<br>Going to the next request<br>Waking up in 4.9 seconds.<br>rad_recv: Access-Request packet from host 192.168.10.212 port 50478, id=30, length=287<br> Service-Type = Framed-User<br> Framed-MTU = 1400<br> User-Name = "1901700000000653"<br> State = 0x870e2a6987623891aa6e49c2b1bcc9b6<br> NAS-Port-Id = "ap_hotspot"<br> NAS-Port-Type = Wireless-802.11<br> Acct-Session-Id = "8220000e"<br> Acct-Multi-Session-Id = "00-0C-42-64-41-9D-A8-7E-33-3E-9C-5B-82-20-00-00-00-00-00-0E"<br> Calling-Station-Id = "A8-7E-33-3E-9C-5B"<br> Called-Station-Id = "00-0C-42-64-41-9D:YANN"<br> EAP-Message = 0x026c0034120a000007050000c27cfb1cfa7a257c9c89796e49bca230100100010e05001031393031373030303030303030363533<br> Message-Authenticator = 0xc691af8b618d9da88f9e289557530f6f<br> NAS-Identifier = "MT_Yann"<br> NAS-IP-Address = 192.168.10.212<br># Executing section authorize from file /etc/freeradius/sites-enabled/default<br>+- entering group authorize {...}<br>rlm_sim_files: authorized user/imsi 1901700000000653 <br>rlm_sim_files: Adding EAP-Type: eap-sim<br>++[sim_files] returns ok<br>++[preprocess] returns ok<br>++[chap] returns noop<br>++[mschap] returns noop<br>++[digest] returns noop<br>[suffix] No '@' in User-Name = "1901700000000653", looking up realm NULL<br>[suffix] No such realm "NULL"<br>++[suffix] returns noop<br>[eap] EAP packet type response id 108 length 52<br>[eap] No EAP Start, assuming it's an on-going EAP conversation<br>++[eap] returns updated<br>++[files] returns noop<br>++[expiration] returns noop<br>++[logintime] returns noop<br>[pap] WARNING! No "known good" password found for the user. Authentication may fail because of this.<br>++[pap] returns noop<br>Found Auth-Type = EAP<br># Executing group from file /etc/freeradius/sites-enabled/default<br>+- entering group authenticate {...}<br>[eap] Request found, released from the list<br>[eap] EAP/sim<br>[eap] processing type sim<br>+++> EAP-sim decoded packet:<br> Service-Type = Framed-User<br> Framed-MTU = 1400<br> User-Name = "1901700000000653"<br> State = 0x870e2a6987623891aa6e49c2b1bcc9b6<br> NAS-Port-Id = "ap_hotspot"<br> NAS-Port-Type = Wireless-802.11<br> Acct-Session-Id = "8220000e"<br> Acct-Multi-Session-Id = "00-0C-42-64-41-9D-A8-7E-33-3E-9C-5B-82-20-00-00-00-00-00-0E"<br> Calling-Station-Id = "A8-7E-33-3E-9C-5B"<br> Called-Station-Id = "00-0C-42-64-41-9D:YANN"<br> EAP-Message = 0x026c0034120a000007050000c27cfb1cfa7a257c9c89796e49bca230100100010e05001031393031373030303030303030363533<br> Message-Authenticator = 0xc691af8b618d9da88f9e289557530f6f<br> NAS-Identifier = "MT_Yann"<br> NAS-IP-Address = 192.168.10.212<br> EAP-Type = SIM<br> EAP-Sim-Subtype = Start<br> EAP-Sim-NONCE_MT = 0x0000c27cfb1cfa7a257c9c89796e49bca230<br> EAP-Sim-SELECTED_VERSION = 0x0001<br> EAP-Sim-IDENTITY = 0x31393031373030303030303030363533<br>[eap] Underlying EAP-Type set EAP ID to 109<br>++[eap] returns handled<br>Sending Access-Challenge of id 30 to 192.168.10.212 port 50478<br> EAP-Message = 0x016d0050120b0000010d00000123456789abcdef0123456789abcdef0123456789abcdef0123456789abcde00123456789abcdef0123456789abcd180b0500000bffb0f7777b066616d98519e625a531<br> Message-Authenticator = 0x00000000000000000000000000000000<br> State = 0x870e2a6986633891aa6e49c2b1bcc9b6<br>Finished request 1.<br>Going to the next request<br>Waking up in 4.9 seconds.<br>Cleaning up request 0 ID 29 with timestamp +17<br>Cleaning up request 1 ID 30 with timestamp +17<br>Ready to process requests.<br><br>Has anyone an idea why the authentication breaks up?<br><br><pre style="margin: 0em;">Thank you in advance.
Regards,<br><br>Yann<br></pre><br><br><br> </div></body>
</html>