Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] I'm not receiving an ICMP reply when attempting to ping from the UE to the internet. #143

Open
Mouradnetworking opened this issue Sep 29, 2024 · 7 comments
Labels
bug Something isn't working

Comments

@Mouradnetworking
Copy link

Describe the issue

When attempting to ping Google's DNS (8.8.8.8) from the UE, only ICMP request packets are sent, but no ICMP reply is received. The following conditions have been checked:

Firewall (ufw): Inactive
iptables: No rules blocking ICMP traffic
IPv4 forwarding: 1

I'm using Packet Rusher for the radio part and Open5GS for the core part.

Screenshots
image

Architecture :
PRETTY_NAME="Ubuntu 22.04.4 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.4 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy

Pcap:
ping.zip

@Mouradnetworking Mouradnetworking added the bug Something isn't working label Sep 29, 2024
@linouxis9
Copy link
Member

linouxis9 commented Sep 29, 2024

Hi @Mouradnetworking,

Nice to see you using PacketRusher. Have you made sure to setup NAT on the UPF's side as specified in Open5GS' documentation?
Did you try a ICMP ping towards the UPF too as well?

Thanks and cheers,
Valentin

@Mouradnetworking
Copy link
Author

Mouradnetworking commented Sep 29, 2024

Hi Linou, thank you for your response.

I tried pinging the UPF (172.31.68.24), but it's not working.

Regarding NAT, I followed the Open5GS configuration using the commands:
""""
sudo iptables -t nat -A POSTROUTING -s 10.45.0.0/16 ! -o ogstun -j MASQUERADE
sudo ip6tables -t nat -A POSTROUTING -s 2001:db8:cafe::/48 ! -o ogstun -j MASQUERADE
""""
However, the issue persists.

$ip route

default via 172.31.64.1 dev ens5 proto dhcp src 172.31.68.24 metric 100
10.45.0.0/16 dev ogstun proto kernel scope link src 10.45.0.1
10.45.0.0/16 dev ogstun proto static
172.31.0.2 via 172.31.64.1 dev ens5 proto dhcp src 172.31.68.24 metric 100
172.31.64.0/20 dev ens5 proto kernel scope link src 172.31.68.24 metric 100
172.31.64.1 dev ens5 proto dhcp scope link src 172.31.68.24 metric 100

Best regards,

@Mouradnetworking
Copy link
Author

@linouxis9

@linouxis9
Copy link
Member

It seems you are using the same VM for PacketRusher and the UPF, make sure to use two distinct virtual machines as it can causes issues otherwise @Mouradnetworking

@Mouradnetworking
Copy link
Author

How about considering Docker instead? It might help us avoid these issues @linouxis9.

Kind regards,

@linouxis9
Copy link
Member

Yes, it's also supported running UPF and PacketRusher on the same host using Docker.
You may look at this amazing project from @Borjis131 for that: https://github.com/Borjis131/docker-open5gs

@Mouradnetworking
Copy link
Author

Thank you! I'll give it a try and get back to you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants