OpenBTS-UMTS sim authentication failure












1















I'm using OpenBTS-UMTS, and trying to authenticate a sim on the network ( sysmoSIM-SJS1-4FF ).
The sim is successfully registered in sipauthserve with the following command (i used same syntax with IMSI and ki provided by my Sysmocom kit, the following is just an example):



./nmcli.py sipauthserve subscribers create "sim2" IMSI901712002174864 002 a74164d83db28ee2cdf2f043ae472044


Sucessful registration, this is what i get:



raw request: {"command":"subscribers","action":"create","fields":{"name":"sim2","imsi":"IMSI901712002174864","msisdn":"002","ki":"a74164d83db28ee2cdf2f043ae472044"}}
raw response: {
"code" : 200,
"data" : "both ok"
}


On mobile phone i search for networks and select TEST-PLMN-1 (default name of OpenBTS-UMTS network). I get the following error on OpenBTS-UMTS log:




OpenBTS> ALERT 139647350089472 09:40:14.7 URRC.cpp:615:findUeByAsnId: no match ptmsi=0x0 raimatch=0 findHandlebyPTmsi-urnti=0x0



40:14.7 UL_CCCH_MessageType_PR_rrcConnectionRequest (new UE) UE#1 URNTI=466f stIdleMode rbid=0
newState: 1 1



40:14.7 DL_CCCH RRC_Connection_Setup_Message message size=58 UE#1 URNTI=466f stIdleMode rbid=0
newState: 2 1



ALERT 139647350089472 09:40:15.5 URLC.cpp:1755:rlcWriteLowSide: stateChange: before 0 0 after 0 0



40:16.1 UL_DCCH_MessageType_PR_rrcConnectionSetupComplete UE#1 URNTI=466f stCELL_FACH rbid=2



40:17.2 UL_DCCH_MessageType_PR_initialDirectTransfer UE#1 URNTI=466f stCELL_FACH rbid=3



40:17.2 UL GMM Msg: AttachRequest UE#1 URNTI=466f stCELL_FACH



PDP of 0 is 0, gmm = f0004ab0, si = f0004820



PDP of 5 is 0, gmm = f0004ab0, si = f0004820



40:17.2 DL_DCCH AuthenticationAndCipheringReq message size=25 UE#1 URNTI=466f stCELL_FACH rbid=3



PDP of 0 is 0



40:18.4 UL_DCCH_MessageType_PR_uplinkDirectTransfer UE#1 URNTI=466f stCELL_FACH rbid=3



40:18.4 UL GMM Msg: AuthenticationAndCipheringFailure UE#1 URNTI=466f stCELL_FACH imsi=901712002174864




The sim should authenticate. Someone can help me in understanding what i'm missing?



Thank you










share|improve this question





























    1















    I'm using OpenBTS-UMTS, and trying to authenticate a sim on the network ( sysmoSIM-SJS1-4FF ).
    The sim is successfully registered in sipauthserve with the following command (i used same syntax with IMSI and ki provided by my Sysmocom kit, the following is just an example):



    ./nmcli.py sipauthserve subscribers create "sim2" IMSI901712002174864 002 a74164d83db28ee2cdf2f043ae472044


    Sucessful registration, this is what i get:



    raw request: {"command":"subscribers","action":"create","fields":{"name":"sim2","imsi":"IMSI901712002174864","msisdn":"002","ki":"a74164d83db28ee2cdf2f043ae472044"}}
    raw response: {
    "code" : 200,
    "data" : "both ok"
    }


    On mobile phone i search for networks and select TEST-PLMN-1 (default name of OpenBTS-UMTS network). I get the following error on OpenBTS-UMTS log:




    OpenBTS> ALERT 139647350089472 09:40:14.7 URRC.cpp:615:findUeByAsnId: no match ptmsi=0x0 raimatch=0 findHandlebyPTmsi-urnti=0x0



    40:14.7 UL_CCCH_MessageType_PR_rrcConnectionRequest (new UE) UE#1 URNTI=466f stIdleMode rbid=0
    newState: 1 1



    40:14.7 DL_CCCH RRC_Connection_Setup_Message message size=58 UE#1 URNTI=466f stIdleMode rbid=0
    newState: 2 1



    ALERT 139647350089472 09:40:15.5 URLC.cpp:1755:rlcWriteLowSide: stateChange: before 0 0 after 0 0



    40:16.1 UL_DCCH_MessageType_PR_rrcConnectionSetupComplete UE#1 URNTI=466f stCELL_FACH rbid=2



    40:17.2 UL_DCCH_MessageType_PR_initialDirectTransfer UE#1 URNTI=466f stCELL_FACH rbid=3



    40:17.2 UL GMM Msg: AttachRequest UE#1 URNTI=466f stCELL_FACH



    PDP of 0 is 0, gmm = f0004ab0, si = f0004820



    PDP of 5 is 0, gmm = f0004ab0, si = f0004820



    40:17.2 DL_DCCH AuthenticationAndCipheringReq message size=25 UE#1 URNTI=466f stCELL_FACH rbid=3



    PDP of 0 is 0



    40:18.4 UL_DCCH_MessageType_PR_uplinkDirectTransfer UE#1 URNTI=466f stCELL_FACH rbid=3



    40:18.4 UL GMM Msg: AuthenticationAndCipheringFailure UE#1 URNTI=466f stCELL_FACH imsi=901712002174864




    The sim should authenticate. Someone can help me in understanding what i'm missing?



    Thank you










    share|improve this question



























      1












      1








      1








      I'm using OpenBTS-UMTS, and trying to authenticate a sim on the network ( sysmoSIM-SJS1-4FF ).
      The sim is successfully registered in sipauthserve with the following command (i used same syntax with IMSI and ki provided by my Sysmocom kit, the following is just an example):



      ./nmcli.py sipauthserve subscribers create "sim2" IMSI901712002174864 002 a74164d83db28ee2cdf2f043ae472044


      Sucessful registration, this is what i get:



      raw request: {"command":"subscribers","action":"create","fields":{"name":"sim2","imsi":"IMSI901712002174864","msisdn":"002","ki":"a74164d83db28ee2cdf2f043ae472044"}}
      raw response: {
      "code" : 200,
      "data" : "both ok"
      }


      On mobile phone i search for networks and select TEST-PLMN-1 (default name of OpenBTS-UMTS network). I get the following error on OpenBTS-UMTS log:




      OpenBTS> ALERT 139647350089472 09:40:14.7 URRC.cpp:615:findUeByAsnId: no match ptmsi=0x0 raimatch=0 findHandlebyPTmsi-urnti=0x0



      40:14.7 UL_CCCH_MessageType_PR_rrcConnectionRequest (new UE) UE#1 URNTI=466f stIdleMode rbid=0
      newState: 1 1



      40:14.7 DL_CCCH RRC_Connection_Setup_Message message size=58 UE#1 URNTI=466f stIdleMode rbid=0
      newState: 2 1



      ALERT 139647350089472 09:40:15.5 URLC.cpp:1755:rlcWriteLowSide: stateChange: before 0 0 after 0 0



      40:16.1 UL_DCCH_MessageType_PR_rrcConnectionSetupComplete UE#1 URNTI=466f stCELL_FACH rbid=2



      40:17.2 UL_DCCH_MessageType_PR_initialDirectTransfer UE#1 URNTI=466f stCELL_FACH rbid=3



      40:17.2 UL GMM Msg: AttachRequest UE#1 URNTI=466f stCELL_FACH



      PDP of 0 is 0, gmm = f0004ab0, si = f0004820



      PDP of 5 is 0, gmm = f0004ab0, si = f0004820



      40:17.2 DL_DCCH AuthenticationAndCipheringReq message size=25 UE#1 URNTI=466f stCELL_FACH rbid=3



      PDP of 0 is 0



      40:18.4 UL_DCCH_MessageType_PR_uplinkDirectTransfer UE#1 URNTI=466f stCELL_FACH rbid=3



      40:18.4 UL GMM Msg: AuthenticationAndCipheringFailure UE#1 URNTI=466f stCELL_FACH imsi=901712002174864




      The sim should authenticate. Someone can help me in understanding what i'm missing?



      Thank you










      share|improve this question
















      I'm using OpenBTS-UMTS, and trying to authenticate a sim on the network ( sysmoSIM-SJS1-4FF ).
      The sim is successfully registered in sipauthserve with the following command (i used same syntax with IMSI and ki provided by my Sysmocom kit, the following is just an example):



      ./nmcli.py sipauthserve subscribers create "sim2" IMSI901712002174864 002 a74164d83db28ee2cdf2f043ae472044


      Sucessful registration, this is what i get:



      raw request: {"command":"subscribers","action":"create","fields":{"name":"sim2","imsi":"IMSI901712002174864","msisdn":"002","ki":"a74164d83db28ee2cdf2f043ae472044"}}
      raw response: {
      "code" : 200,
      "data" : "both ok"
      }


      On mobile phone i search for networks and select TEST-PLMN-1 (default name of OpenBTS-UMTS network). I get the following error on OpenBTS-UMTS log:




      OpenBTS> ALERT 139647350089472 09:40:14.7 URRC.cpp:615:findUeByAsnId: no match ptmsi=0x0 raimatch=0 findHandlebyPTmsi-urnti=0x0



      40:14.7 UL_CCCH_MessageType_PR_rrcConnectionRequest (new UE) UE#1 URNTI=466f stIdleMode rbid=0
      newState: 1 1



      40:14.7 DL_CCCH RRC_Connection_Setup_Message message size=58 UE#1 URNTI=466f stIdleMode rbid=0
      newState: 2 1



      ALERT 139647350089472 09:40:15.5 URLC.cpp:1755:rlcWriteLowSide: stateChange: before 0 0 after 0 0



      40:16.1 UL_DCCH_MessageType_PR_rrcConnectionSetupComplete UE#1 URNTI=466f stCELL_FACH rbid=2



      40:17.2 UL_DCCH_MessageType_PR_initialDirectTransfer UE#1 URNTI=466f stCELL_FACH rbid=3



      40:17.2 UL GMM Msg: AttachRequest UE#1 URNTI=466f stCELL_FACH



      PDP of 0 is 0, gmm = f0004ab0, si = f0004820



      PDP of 5 is 0, gmm = f0004ab0, si = f0004820



      40:17.2 DL_DCCH AuthenticationAndCipheringReq message size=25 UE#1 URNTI=466f stCELL_FACH rbid=3



      PDP of 0 is 0



      40:18.4 UL_DCCH_MessageType_PR_uplinkDirectTransfer UE#1 URNTI=466f stCELL_FACH rbid=3



      40:18.4 UL GMM Msg: AuthenticationAndCipheringFailure UE#1 URNTI=466f stCELL_FACH imsi=901712002174864




      The sim should authenticate. Someone can help me in understanding what i'm missing?



      Thank you







      linux authentication sim umts






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jan 14 at 9:55







      TDK

















      asked Jan 14 at 9:14









      TDKTDK

      31312




      31312






















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "3"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1394034%2fopenbts-umts-sim-authentication-failure%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Super User!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1394034%2fopenbts-umts-sim-authentication-failure%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Aardman Animations

          Are they similar matrix

          “minimization” problem in Euclidean space related to orthonormal basis