UE cannot connect to the internet #542
-
Hello everyone, I want to deploy a docker container of eUPF and used the docker-compose template here (https://github.com/edgecomllc/eupf/blob/main/docs/install.md/#deploy-with-docker-compose). I use Open5GS core and the services are also deployed in docker containers. I also have an actual gNB and UE for testing. I have already made it worked with the normal UPF of Open5GS. However, when I swap out the UPF to the eUPF, I've noticed that the UE sends DNS queries but it does not go to the internet. I tried to ping 8.8.8.8 from the UE and it cannot go through the internet. However, when I try to ping eUPF using the UE, I see in Wireshark that it receives the ping and sends a reply but the reply is not received by the UE. Here is part of the docker-file where eUPF is deployed:
Thank you very much and have a nice day! Best regards, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi Marco @marcohol1 , It seems to me there could possibly be an issue of NAT configuration and/or missing
However, I'm not sure why pinging eUPF would not work. Perhaps it's actually sending an ICMP unreachable message back to UE? To fix, on Docker host, try running following commands:
If that still doesn't work, we might need you to provide some packet capture & system info. First of all, I'd like to check your Docker host network settings when eUPF is running:
For packet capture, when pinging Internet, try monitoring the outbound (i.e. to internet) interface of the eUPF host device. You could use the command:
to check real-time packet info from a specific device. Note however that packets that enter eUPF's XDP packet forwarder will not appear on the packet capture, so that's any packets that enter/exit the N3, N4, N6 interface of eUPF. If you would like to provide a packet capture file (pcap) or at least a screenshot of the pcap for analysis, you can use the following command to save the packet capture into a .pcap file.
Best of Luck! |
Beta Was this translation helpful? Give feedback.
-
Hi @marcohol1, If your question is still opened, I'd recommend to enable dataplane logs(ebpf trace pipe) and verify packet processing pipeline. Usually the most common issue with packet forwarding is wrong routing table configuration. In order to enable logging you should build eUPF with specific option:
To see logs check |
Beta Was this translation helpful? Give feedback.
Hi Marco @marcohol1 ,
It seems to me there could possibly be an issue of NAT configuration and/or missing
sysctl -w net.ipv4.ip_forward=1
config on your Docker host? If these settings are not configured properly, UE ping Internet would not work due to following reasons:However, I'm not sure why pinging eUPF would not work. Perhaps it's actually sending an ICMP unreachable message back to UE?
To fix, on Docker host, try running following commands: