<div dir="ltr">Hi,<div><br></div><div>I'm trying to establish a tunnel between my Android device and a Linux box (Gateway). I want to use EAP-SIM authentication for which I added triplets.dat in /etc/ipsec.d. My radius server is Linux hostapd server. My problem is the radius server returns EAP-FAILURE every time and the logs shows "<b>EAP-SIM: Could not get proper permanent username</b>".</div>
<div><br></div><div>Here is the content of my triplets.dat file on Android device, gateway and Radius server:</div><div><br></div><div><div>404450114346034,00000000000000000000000000000000,342A64BC,F4F2E638219E031F</div><div>
404450114346034,01010101010101010101010101010101,98A3D698,5676979FCAE7E78C</div><div>404450114346034,02020202020202020202020202020202,7C43A460,0534374F7E1F60A7</div></div><div><br></div><div><br></div><div>Is there anything wrong in the triplets.dat file and/or am I missing any thing? Please help.</div>
<div><br></div><div><br></div><div>Here is some of the relevant log from the radius server:</div><div><br></div><div><div>EAP: EAP entering state RECEIVED</div><div>EAP: parseEapResp: rxResp=1 respId=1 respMethod=18 respVendor=0 respVendorMethod=0</div>
<div>EAP: EAP entering state INTEGRITY_CHECK</div><div>EAP: EAP entering state METHOD_RESPONSE</div><div>EAP-SIM: Attribute: Type=16 Len=4</div><div>EAP-SIM: Attribute data - hexdump(len=2): 00 01</div><div>EAP-SIM: AT_SELECTED_VERSION</div>
<div>EAP-SIM: AT_SELECTED_VERSION 1</div><div>EAP-SIM: Attribute: Type=7 Len=20</div><div>EAP-SIM: Attribute data - hexdump(len=18): 00 00 f3 51 19 f5 fc cf 83 d6 f5 7e b2 c5 05 a9 e2 f0</div><div>EAP-SIM: AT_NONCE_MT</div>
<div>EAP-SIM: Attribute: Type=14 Len=24</div><div>EAP-SIM: Attribute data - hexdump(len=22): 00 13 63 61 72 6f 6c 2e 77 69 6e 73 69 6e 74 65 6c 2e 6f 72 67 00</div><div>EAP-SIM: AT_IDENTITY</div><div>EAP-SIM: Attributes parsed successfully (aka=0 encr=0)</div>
<div>EAP-SIM: Receive start response</div><div>EAP-SIM: Could not get proper permanent user name</div><div>EAP-SIM: START -> FAILURE</div><div>EAP: EAP entering state SELECT_ACTION</div><div>EAP: getDecision: method failed -> FAILURE</div>
<div>EAP: EAP entering state FAILURE</div><div>EAP: Building EAP-Failure (id=1)</div></div><div><br></div><div><br></div><div><br></div><div>--Thanks</div><div>Sam</div></div>