Hi, I have a question about NFs connection on another PC
PC1 (210.123.40.204) : Only for NRF
PC2 (210.123.40.205) : Others
I tried to connect this NFs for TestRegistration.
First, Modified yaml file in free5gc/config
ex) nrf.yaml
sbi: # Service-based interface information
scheme: http # the protocol for sbi (http or https)
registerIPv4: 192.168.0.10 # IP used to serve NFs or register to another NRF
bindingIPv4: 192.168.0.10 # IP used to bind the service
port: 8000
Others ie)amf.yaml
sbi: # Service-based interface information
scheme: http # the protocol for sbi (http or https)
registerIPv4: 127.0.0.10 # IP used to register to NRF
bindingIPv4: 127.0.0.10 # IP used to bind the service
port: 8018 # port used to bind the service
.
.
nrfUri: 192.168.0.10:8000
and run ./test.sh TestRegistration
then
2021-04-08T14:49:09+09:00 [INFO][UPF][Util] Config: /home/sts/free5gc/NFs/upf/build/config/upfcfg.test.yaml
2021-04-08T14:49:09+09:00 [INFO][UPF][Util] UPF config version [1.0.0]
2021-04-08T14:49:09+09:00 [INFO][UPF][Util] Set log level: info
2021-04-08T14:49:09+09:00 [INFO][UPF][Util] DNN routes added, main routing table:
2021-04-08T14:49:09+09:00 [INFO][UPF][Util] DstIp Gateway Iface Priority RtProto Type
2021-04-08T14:49:09+09:00 [INFO][UPF][Util] 60.60.0.0 /24 0.0.0.0 upfgtp 0 static unicast
2021-04-08T14:49:09+09:00 [INFO][UPF][Util] 10.200.200.0 /24 0.0.0.0 veth1 0 kernel unicast
2021-04-08T14:49:12+09:00 [INFO][NRF][Init] NRF Log level is set to [info] level
2021-04-08T14:49:12+09:00 [INFO][LIB][Path] set log level : info
2021-04-08T14:49:12+09:00 [INFO][LIB][Path] set report call : false
2021-04-08T14:49:12+09:00 [INFO][LIB][OAPI] set log level : info
2021-04-08T14:49:12+09:00 [INFO][LIB][OAPI] set report call : false
2021-04-08T14:49:12+09:00 [INFO][LIB][MonDB] set log level : info
2021-04-08T14:49:12+09:00 [INFO][LIB][MonDB] set report call : false
2021-04-08T14:49:12+09:00 [INFO][NRF][CFG] config version [1.0.0]
2021-04-08T14:49:12+09:00 [INFO][NRF][Init] Server started
2021-04-08T14:49:12+09:00 [INFO][NRF][Init] nrfconfig Info: Version[1.0.0] Description[NRF initial local configuration]
2021-04-08T14:49:12+09:00 [INFO][NRF][Init] Binding addr: [210.123.40.205:8000]
2021-04-08T14:49:13+09:00 [INFO][AMF][Init] AMF Log level is set to [info] level
2021-04-08T14:49:13+09:00 [INFO][LIB][NAS] set log level : info
2021-04-08T14:49:13+09:00 [INFO][LIB][NAS] set report call : false
2021-04-08T14:49:13+09:00 [INFO][LIB][NGAP] set log level : info
2021-04-08T14:49:13+09:00 [INFO][LIB][NGAP] set report call : false
2021-04-08T14:49:13+09:00 [INFO][LIB][FSM] set log level : info
2021-04-08T14:49:13+09:00 [INFO][LIB][FSM] set report call : false
2021-04-08T14:49:13+09:00 [INFO][LIB][Aper] set log level : info
2021-04-08T14:49:13+09:00 [INFO][LIB][Aper] set report call : false
2021-04-08T14:49:13+09:00 [INFO][LIB][Path] set log level : info
2021-04-08T14:49:13+09:00 [INFO][LIB][Path] set report call : false
2021-04-08T14:49:13+09:00 [INFO][LIB][OAPI] set log level : info
2021-04-08T14:49:13+09:00 [INFO][LIB][OAPI] set report call : false
2021-04-08T14:49:13+09:00 [INFO][AMF][CFG] config version [1.0.0]
2021-04-08T14:49:13+09:00 [INFO][AMF][Init] Server started
2021-04-08T14:49:13+09:00 [INFO][AMF][Util] amfconfig Info: Version[1.0.0] Description[AMF initial local configuration]
2021-04-08T14:49:13+09:00 [INFO][AMF][NGAP] Listen on 127.0.0.1:38412
2021-04-08T14:49:13+09:00 [INFO][SMF][Init] SMF Log level is set to [info] level
2021-04-08T14:49:13+09:00 [INFO][LIB][NAS] set log level : info
2021-04-08T14:49:13+09:00 [INFO][LIB][NAS] set report call : false
2021-04-08T14:49:13+09:00 [INFO][LIB][NGAP] set log level : info
2021-04-08T14:49:13+09:00 [INFO][LIB][NGAP] set report call : false
2021-04-08T14:49:13+09:00 [INFO][LIB][Aper] set log level : info
2021-04-08T14:49:13+09:00 [INFO][LIB][Aper] set report call : false
2021-04-08T14:49:13+09:00 [INFO][LIB][Path] set log level : info
2021-04-08T14:49:13+09:00 [INFO][LIB][Path] set report call : false
2021-04-08T14:49:13+09:00 [INFO][LIB][OAPI] set log level : info
2021-04-08T14:49:13+09:00 [INFO][LIB][OAPI] set report call : false
2021-04-08T14:49:13+09:00 [INFO][LIB][PFCP] set log level : info
2021-04-08T14:49:13+09:00 [INFO][LIB][PFCP] set report call : false
2021-04-08T14:49:13+09:00 [INFO][SMF][CFG] SMF config version [1.0.0]
2021-04-08T14:49:13+09:00 [INFO][SMF][CFG] UE-Routing config version [1.0.0]
2021-04-08T14:49:13+09:00 [INFO][SMF][CTX] smfconfig Info: Version[1.0.0] Description[SMF initial local configuration]
2021-04-08T14:49:13+09:00 [INFO][SMF][CTX] Endpoints: [10.200.200.102]
2021-04-08T14:49:13+09:00 [INFO][SMF][Init] Server started
2021-04-08T14:49:13+09:00 [INFO][SMF][Init] SMF Registration to NRF {fa6f774d-88c9-4dfa-86f9-9516aac96640 SMF REGISTERED 0 0xc000536460 0xc0005364a0 [] [] [210.123.40.205] [] [] [] 0 0 0 0xc0005a6080 map[] false 0xc0005362e0 false false []}
2021-04-08T14:49:13+09:00 [INFO][SMF][PFCP] Listen on 10.200.200.1:8805
2021-04-08T14:49:13+09:00 [INFO][SMF][App] Send PFCP Association Request to UPF[10.200.200.101]
2021-04-08T14:49:13+09:00 [INFO][UPF][Util] [PFCP] Handle PFCP association setup request
2021-04-08T14:49:13+09:00 [INFO][UPF][Util] [PFCP] Association Setup Response
2021-04-08T14:49:13+09:00 [INFO][SMF][PFCP] In HandlePfcpAssociationSetupResponse
2021-04-08T14:49:13+09:00 [INFO][SMF][PFCP] Handle PFCP Association Setup Response with NodeID[10.200.200.101]
2021-04-08T14:49:13+09:00 [INFO][SMF][PFCP] UPF(10.200.200.101)[internet] setup association
2021-04-08T14:49:13+09:00 [INFO][LIB][PFCP] Remove Request Transaction [1]
2021-04-08T14:49:13+09:00 [INFO][UDR][Init] UDR Log level is set to [info] level
2021-04-08T14:49:13+09:00 [INFO][LIB][Path] set log level : info
2021-04-08T14:49:13+09:00 [INFO][LIB][Path] set report call : false
2021-04-08T14:49:13+09:00 [INFO][LIB][OAPI] set log level : info
2021-04-08T14:49:13+09:00 [INFO][LIB][OAPI] set report call : false
2021-04-08T14:49:13+09:00 [INFO][LIB][MonDB] set log level : info
2021-04-08T14:49:13+09:00 [INFO][LIB][MonDB] set report call : false
2021-04-08T14:49:13+09:00 [INFO][UDR][CFG] config version [1.0.0]
2021-04-08T14:49:13+09:00 [INFO][UDR][Init] UDR Config Info: Version[1.0.0] Description[UDR initial local configuration]
2021-04-08T14:49:13+09:00 [INFO][UDR][Init] Server started
2021-04-08T14:49:13+09:00 [INFO][UDR][Util] udrconfig Info: Version[1.0.0] Description[UDR initial local configuration]
2021-04-08T14:49:13+09:00 [INFO][PCF][Init] PCF Log level is set to [info] level
2021-04-08T14:49:13+09:00 [INFO][LIB][Path] set log level : info
2021-04-08T14:49:13+09:00 [INFO][LIB][Path] set report call : false
2021-04-08T14:49:13+09:00 [INFO][LIB][OAPI] set log level : info
2021-04-08T14:49:13+09:00 [INFO][LIB][OAPI] set report call : false
2021-04-08T14:49:13+09:00 [INFO][PCF][CFG] config version [1.0.0]
2021-04-08T14:49:13+09:00 [INFO][PCF][Init] Server started
2021-04-08T14:49:13+09:00 [INFO][PCF][Util] pcfconfig Info: Version[1.0.0] Description[PCF initial local configuration]
2021-04-08T14:49:13+09:00 [INFO][UDM][Init] UDM Log level is set to [info] level
2021-04-08T14:49:13+09:00 [INFO][LIB][Path] set log level : info
2021-04-08T14:49:13+09:00 [INFO][LIB][Path] set report call : false
2021-04-08T14:49:13+09:00 [INFO][LIB][OAPI] set log level : info
2021-04-08T14:49:13+09:00 [INFO][LIB][OAPI] set report call : false
2021-04-08T14:49:13+09:00 [INFO][UDM][CFG] config version [1.0.0]
2021-04-08T14:49:13+09:00 [INFO][UDM][Init] UDM Config Info: Version[1.0.0] Description[UDM initial local configuration]
2021-04-08T14:49:13+09:00 [INFO][UDM][Init] Server started
2021-04-08T14:49:13+09:00 [INFO][UDM][Util] udmconfig Info: Version[1.0.0] Description[UDM initial local configuration]
2021-04-08T14:49:14+09:00 [INFO][NSSF][Init] Server started
2021-04-08T14:49:14+09:00 [ERRO][NSSF][Consumer] NSSF register to NRF Error[Put “ttps://210.123.40.205:29510/nnrf-nfm/v1/nf-instances/78e8aa54-b899-409e-8379-f37bc873ba6a”: dial tcp 210.123.40.205:29510: connect: connection refused]
2021-04-08T14:49:14+09:00 [INFO][AUSF][Init] AUSF Log level is set to [info] level
2021-04-08T14:49:14+09:00 [INFO][LIB][Path] set log level : info
2021-04-08T14:49:14+09:00 [INFO][LIB][Path] set report call : false
2021-04-08T14:49:14+09:00 [INFO][LIB][OAPI] set log level : info
2021-04-08T14:49:14+09:00 [INFO][LIB][OAPI] set report call : false
2021-04-08T14:49:14+09:00 [INFO][AUSF][CFG] config version [1.0.0]
2021-04-08T14:49:14+09:00 [INFO][AUSF][Init] Server started
2021-04-08T14:49:14+09:00 [INFO][AUSF][Init] ausfconfig Info: Version[1.0.0] Description[AUSF initial local configuration]
ausf context = &{{{0 0} {} map[] 0} {{0 0} {} map[] 0} b48596b3-2a12-463e-ac36-8053e435a113 ausfGroup001 8009 127.0.0.10 127.0.0.10 ttp://127.0.0.10:8009 http ttp://210.123.40.204:8000 map[nausf-auth:{b48596b3-2a12-463e-ac36-8053e435a113 nausf-auth 0xc0000bd960 http REGISTERED 0xc0000bd940 [] [] [] 0 0 0 }] [{208 93} {123 45}] 0xc0005b2b40}
=== RUN TestRegistration
2021-04-08T14:49:14+09:00 [INFO][AMF][NGAP] [AMF] SCTP Accept from: 127.0.0.1:9487
2021-04-08T14:49:14+09:00 [INFO][AMF][NGAP] Create a new NG connection for: 127.0.0.1:9487
2021-04-08T14:49:14+09:00 [INFO][AMF][NGAP][127.0.0.1:9487] Handle NG Setup request
2021-04-08T14:49:14+09:00 [INFO][AMF][NGAP][127.0.0.1:9487] Send NG-Setup response
2021-04-08T14:49:14+09:00 [INFO][AMF][NGAP][127.0.0.1:9487] Handle Initial UE Message
2021-04-08T14:49:14+09:00 [INFO][AMF][GMM][AMF_UE_NGAP_ID:1] Handle Registration Request
2021-04-08T14:49:14+09:00 [INFO][AMF][GMM][AMF_UE_NGAP_ID:1] Authentication procedure
2021-04-08T14:49:14+09:00 [INFO][AUSF][UeAuthPost] HandleUeAuthPostRequest
2021-04-08T14:49:14+09:00 [INFO][AUSF][UeAuthPost] Serving network authorized
2021-04-08T14:49:14+09:00 [INFO][UDM][UEAU] Handle GenerateAuthDataRequest
2021-04-08T14:49:14+09:00 [INFO][LIB][3GPP] suciPart [suci 0 208 93 0 0 0 00007487]
2021-04-08T14:49:14+09:00 [INFO][LIB][3GPP] scheme 0
2021-04-08T14:49:14+09:00 [INFO][LIB][3GPP] SUPI type is IMSI
ttp://210.123.40.204:8000
2021-04-08T14:49:14+09:00 [ERRO][UDM][UEAU] Return from UDR QueryAuthSubsData error
2021-04-08T14:49:14+09:00 [INFO][UDM][GIN] | 403 | 127.0.0.1 | POST | /nudm-ueau/v1/suci-0-208-93-0-0-0-00007487/security-information/generate-auth-data |
2021-04-08T14:49:14+09:00 [INFO][AUSF][UeAuthPost] 403 Forbidden
2021-04-08T14:49:14+09:00 [INFO][AUSF][GIN] | 500 | 127.0.0.1 | POST | /nausf-auth/v1/ue-authentications |
2021-04-08T14:49:14+09:00 [ERRO][AMF][GMM][AMF_UE_NGAP_ID:1] Nausf_UEAU Authenticate Request Failed: &{Type: Title: Status:500 Detail: Instance: Cause:AV_GENERATION_PROBLEM InvalidParams:[]}
^C2021-04-08T14:49:15+09:00 [WARN][UPF][Util] 1 not freed in pfcpXactPool[63] of PFCP Transaction
2021-04-08T14:49:15+09:00 [INFO][UPF][Util] Removing DNN routes
2021-04-08T14:49:15+09:00 [INFO][UDR][Init] Terminating UDR…
2021-04-08T14:49:15+09:00 [INFO][PCF][Init] Terminating PCF…
2021-04-08T14:49:15+09:00 [INFO][UDR][Consumer] Send Deregister NFInstance
2021-04-08T14:49:15+09:00 [INFO][PCF][Consumer] Send Deregister NFInstance
2021-04-08T14:49:15+09:00 [INFO][UDM][Init] Terminating UDM…
2021-04-08T14:49:15+09:00 [INFO][AUSF][Init] Terminating AUSF…
2021-04-08T14:49:15+09:00 [INFO][UDM][Consumer] Send Deregister NFInstance
2021-04-08T14:49:15+09:00 [INFO][AUSF][App] Send Deregister NFInstance
2021-04-08T14:49:15+09:00 [INFO][AMF][Init] Terminating AMF…
2021-04-08T14:49:15+09:00 [INFO][SMF][Init] Terminating SMF…
2021-04-08T14:49:15+09:00 [INFO][SMF][Consumer] Send Deregister NFInstance
2021-04-08T14:49:15+09:00 [INFO][AMF][Consumer] [AMF] Send Deregister NFInstance
2021-04-08T14:49:16+09:00 [ERRO][NSSF][Consumer] NSSF register to NRF Error[Put “htps://210.123.40.205:29510/nnrf-nfm/v1/nf-instances/78e8aa54-b899-409e-8379-f37bc873ba6a”: dial tcp 210.123.40.205:29510: connect: connection refused]
2021-04-08T14:49:16+09:00 [INFO][UDM][Init] Deregister from NRF successfully
2021-04-08T14:49:16+09:00 [INFO][UDM][Init] UDM terminated
ok test 3.953s
free5gc-upfd: no process found
ls: cannot access ‘*sslkey.log’: No such file or directory
How to solve this problem,
Thanks!