aligungr / UERANSIM

Open source 5G UE and RAN (gNodeB) implementation.
GNU General Public License v3.0
793 stars 322 forks source link

When I try to run test with Open5gs I got AKA Authentication Failure #136

Open msalah89 opened 4 years ago

msalah89 commented 4 years ago

image

I set imsi number @localhost:3000 this is subscriber configuration
image

s5uishida commented 4 years ago

@msalah89

Could you try by selecting OP instead of OPc in Subscriber console?

msalah89 commented 4 years ago

@msalah89

Could you try by selecting OP instead of OPc in Subscriber console?

Thanks bro it works ! :)

aligungr commented 4 years ago

Reopening the issue since it can be useful for other people, thanks.

asoltanian1979 commented 4 years ago

Hi I have the same issue. Here is detailed information This is my UE config on UERANSIM:

**snn: '5G:mnc11.mcc432.Open5GS' key: '8baf473f2f8fd09487cccbd7097c6862' op: 'e734f8734007d6c5ce7a0508809e7e9c' amf: '8000' imei: '356938035643803' supi: 'imsi-432110000000003'

smsOverNasSupported: true dnn: 'internet'

requestedNssai:

While trying to Authenticate the UE I got this log on AMF: 10/31 10:15:28.145: [gmm] DEBUG: [suci-0-432-11-0000-0-0-0000000003] Authentication response (../src/amf/gmm-handler.c:556) 10/31 10:15:28.145: [gmm] ERROR: [suci-0-432-11-0000-0-0-0000000003] MAC failure (../src/amf/gmm-handler.c:570) 0000: 4eb14c18 26279a88 16dc9b5a f2b14a8f N.L.&'.....Z..J. 0000: 6e4cd85d b86cdc01 65da5d1b 5c77a35c nL.].l..e.].\w.\ 0000: b3ec9cdd a9ed52b1 74d25046 287d43d0 ......R.t.PF(}C. 10/31 10:15:28.145: [amf] WARNING: [suci-0-432-11-0000-0-0-0000000003] Authentication reject (../src/amf/nas-path.c:244) UE I can also attached the pcacp file. Can you please help me out?

asoltanian1979 commented 4 years ago

I attached the PCAP file here Also here is the log on UERANSIM: [2020-10-31 10:30:21.371] [DEBUG] [MESSAGING] Secured NAS PDU: 7e0058 [2020-10-31 10:30:21.373] [DEBUG] [MESSAGING] Plain NAS as JSON { "securityHeaderType": { "value": 0, "name": "Plain 5GS NAS message, not security protected" }, "messageType": { "value": 88, "name": "Authentication reject" }, "extendedProtocolDiscriminator": { "value": 126, "name": "5GS mobility management messages" } Error2.zip

MinpuKang commented 1 year ago

May I have a question about authenticationManagementField? Which parameter in UE or AUSF/UDM should be aligned with provisioned authenticationManagmentField? Or how to design the value for authenticationManagementFiled?