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

[Bugs]UERAN container ping failed #230

Closed
minziran opened this issue Aug 16, 2021 · 4 comments
Closed

[Bugs]UERAN container ping failed #230

minziran opened this issue Aug 16, 2021 · 4 comments
Labels
question Further information is requested

Comments

@minziran
Copy link

I added the iptables command mentioned in https://githubmemory.com/repo/free5gc/free5gc-compose/issues/26?page=1

The ping still failed.

uerancontainer

Thank you for your time and help!

@j13tw
Copy link
Contributor

j13tw commented Aug 24, 2021

Hi @minziran
I think you should pre checked the UE can ping the free5gc UPF IP
and command the tcpdump command to check GTP-U Packet

# tcpdump on UPF / gNodeB check GTP-U Packet Send / Receive
tcpdump -i any port 2152

If it can send the ICMP to UPF
Maybe you are not create the NAT Forwarding rule on free5gc UPF
Try the command in your free5gc UPF netns

# Check NAT Rule
iptables -t nat -vL
# Create NAT Rule to Forwarding to DN
iptables -t nat -A POSTROUTING -o <NIC-Name> -j MASQUERADE

By the way, the UERANSIM v3.1.0 has some issue
like the gNodeB shutdown, UE MTU size too large
In my test , UERANSIM stable version is on v3.1.2 / v3.1.4 on free5gc stage v3.0.4

@free5gc-org
Copy link
Contributor

@minziran

You already reported the same issue on free5gc-compose: free5gc/free5gc-compose#32 and there are some responses there.
We think this is environment setup issue. So we'll close this issue.

@free5gc-org free5gc-org added the question Further information is requested label Aug 27, 2021
@minziran
Copy link
Author

minziran commented Sep 2, 2021

Hi @minziran
I think you should pre checked the UE can ping the free5gc UPF IP
and command the tcpdump command to check GTP-U Packet

# tcpdump on UPF / gNodeB check GTP-U Packet Send / Receive
tcpdump -i any port 2152

If it can send the ICMP to UPF
Maybe you are not create the NAT Forwarding rule on free5gc UPF
Try the command in your free5gc UPF netns

# Check NAT Rule
iptables -t nat -vL
# Create NAT Rule to Forwarding to DN
iptables -t nat -A POSTROUTING -o <NIC-Name> -j MASQUERADE

By the way, the UERANSIM v3.1.0 has some issue
like the gNodeB shutdown, UE MTU size too large
In my test , UERANSIM stable version is on v3.1.2 / v3.1.4 on free5gc stage v3.0.4

Thank you so much! I upgrade the UERANSIM and it works.

@minziran
Copy link
Author

minziran commented Sep 2, 2021

@minziran

You already reported the same issue on free5gc-compose: free5gc/free5gc-compose#32 and there are some responses there.
We think this is environment setup issue. So we'll close this issue.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants