Cannot ping 8.8.8.8 using free5GC compose and UERANSIM VM

,

HI all,
I installed a free5GC-compose following the official documentation and UERANSIM onto different VMs.
The compose file used to deploy the Free5GC is attached docker-compose-test.yaml (6.8 KB).
When launching UERANSIM I can successfully set up the SCTP connection between the gNB and the AMF, I can successfully establish the PDU Session BUT I cannot ping Google DNS with the command ping -I uesimtun0 8.8.8.8.

Performing a tcpdump on free5gc compose VM I can see that GTP packets are not reaching the VM. I already checked firewall rules but there is not rule preventing the traffic from reaching the VM.
I am wondering if it is a matter of configuration related to UPF N3 interface.

Any suggestion on how to solve this problem?
Thanks in advance

Hi, I think there might be configuration problems related to the network interfaces in your free5GC deployment.

Have you implement it based on the free5GLabs/lab3 materials?

Lab 3: Deploying free5GC

Hi @williamlin0518,
thanks for your reply. I just took a look to the link but unfortunately this is not my case.
In that exercise you have the UERANSIM gNB containerized in Docker with Free5GC-compose.
In my case both UERANSIM gNB and UE are running outside the Docker deployment in a separate VM as processes.

can you check that the UPF container can actually receive traffic on port 2152 (try netstat -tulpn | grep 2152 on the Free5GC VM?