How to ping a connected UE via UPF

Dear Team,
I want to ping my UE from data network via UPF, so the flow would be

Data network -> upf -> gnb -> ue

Thanks
Vikash

Hi Vikash,

May I know your routing information of UE, Tunnel, and UPF?

-Muthuraman

Hi Vikash,

Make sure there is no NAT setting in UPF (clear MASQUERADE rule in ipatable) and also no NAT between UPF and DN.

Then, you need to modify the IP routing to let DL packets be sent to UPF (set the default gateway on the remote host/router to UPF N6 IP).

1 Like

Dear,

Routing info for free5g core is as below:

Destination Gateway Genmask Flags Metric Ref Use Iface
default _gateway 0.0.0.0 UG 103 0 0 enp0s3
link-local 0.0.0.0 255.255.0.0 U 1000 0 0 uptun
172.16.0.0 0.0.0.0 255.255.255.0 U 0 0 0 uptun
172.16.0.14 _gateway 255.255.255.255 UGH 0 0 0 enp0s3
192.168.1.0 0.0.0.0 255.255.255.0 U 103 0 0 enp0s3

Routing info of UE:

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default gpon.net 0.0.0.0 UG 100 0 0 enp0s3
10.0.2.0 0.0.0.0 255.255.255.0 U 0 0 0 enm1
10.0.2.0 0.0.0.0 255.255.255.0 U 0 0 0 uem1
link-local 0.0.0.0 255.255.0.0 U 1000 0 0 tun_enm1
172.16.0.0 0.0.0.0 255.255.0.0 U 0 0 0 tun_ue1
192.168.1.0 0.0.0.0 255.255.255.0 U 100 0 0 enp0s3

1 Like