Ping from ueransim VM to free5gc-compose

Hi,

I created the free5gc-compose which means each NF as a container and I created the UERANSIM in a separate virtual machine.
I am able to run the UE and free5gc-compose, but I cannot run the ping while I have this tunnel
ping -I uesimtun0 google.com

Did anyone face this issue and fix it?

Thank you

Hi @nathaliewehbe.nw, are you sure that you used command:
sudo iptables -I FORWARD 1 -j ACCEPT

Hi,
Yes it’s 1 and still not working I trace the upf with uesimtun0 it’s working but the ping is not working

I run the free5fc-compose
I run the gnb of UERANSIM


I run the ue of UERANSIM
then I tried to ping using the tunnel I did not receive any response image
While I got this image
the 10.100.200.4 ip of upf1 or upf2 or upfb every run it select one of these upf
your help much appreciated

This link might be able to help you

@nathaliewehbe.nw, Am I seeing this correct? you are running the iptables command on UERANSIM VM. But these commands are to be run in the UPF containers.
image

Hi I already fix it by running iptables on upfb container level, and uncommented in the file of upfb this line natifname:eth0