In my test, I combine free5gc with gnbsim. I can capture gtp traffic on the UPF node, but UPF does not forward the traffic to the DN, and gnbsim also shows that it cannot connect to the internet. Our configuration is as follows:
hi,Eddie
thanks. i also find the root cause in my case.
I send the icmp messages encap in the gtp,however didn’t do the checksum of the ipv4hdr, the kernal of gtp5g then drop the frame ,although the pdr worked and it remove the gtp header,but the kernal refuse to forward. after make checksum,it worked.
br,thornton.
Can you please send me the code on how to do this. I cannot ping internet and I do not know what else to do, maybe my problem is related with this. Do I have to change something on registration_test.go?
It seems that UPF has successfully decapsulated the GTP packet.
How about checking if you have a right routing table firewall, and NAT setting on your host? Will the outgoing interface have get the decapsulated packet and will send it out?
hi,Eddie.
Did you find any reason the the data forwarding. i face almost a same problem.
the gtp header was already removed in the pdr from access to core,however the far rule forwarding didn’t work.so can’t access outside.
br,thornton.
We solved this problem by configuring multiple hosts in the LAN. We deployed upf on one host separately, and the rest of the NF on another host, and connected to the 5GC using gbsim on the third host to connect internet. We specified the only interface(connect to internet) on the upf host and configured NAT.
This might be helpful. I will go through it in detail.
UE ----- gNB ------ (upfgtp) UPF ----- internet (dnn)
My configuration seems correct because the packet arrives from UE through gNB to UPF interface ‘upfgtp’. But I am facing problem after UPF, when it needs to send the packet to the internet (dnn). It gives me ‘Destination unreachable’. I am just looking for this configuration to connect the UPF to internet.
If anyone can throw some light on this aspect, it would be helpful.
Hi, I got the same issue. All output logs of gNB, UE and core look okay, at least to explicit warning or errors, but there were no ICMP reply packets. I dumped the packets on the host machine, and both ICMP request and reply packets can be observed on my WiFi interface. Therefore I suspect that something is wrong somewhere while processing the ICMP reply.
I am using UERANSIM v3.1.0, not v3.0.2 which is used in the successful demonstration (probably) at this link | free5GC. Because v3.0.2 is not available as a tag, I could only try v3.0.3. But there is an error on the UE complaining PLMN cannot be found.
I am facing the same issue and I can’t seem to fix it. Using UERANSIM I can connect the gNB and UE to free5gc and establish a PDU session. I am running free5gc and UERANSIM (both UE and gNB) in the same computer without using VMs. When I ping google through the uesimtun0 I also get 100% packet loss, but can see the packets in the upfgtp interface.
I think I have configured the NAT correctly, since the response to sudo iptables -t nat -S is