We have deployed free5gc core and ran services using juju charms onto microk8s environment in AWS. We can see that PDU session is established from amf and ran logs.
- When we do ‘ping -I eth1 “upf_ip_eth1”’ , UPF is sending icmp echo replies to UE ( as seen in ngrep capture) but in UE we cannot see packets receiving.
- Same issue observed for ‘ping -I eth1 google.com’.
We have an UE , RAN, UPF pod and NAT_app pod (which is providing the Data network interface ie eth1 to UPF pod).
Gtp5g version : 1.0.3b
In UPF and natapp , ip forwarding is enabled. In UPF , below NAT rule is applied
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
I tried with similar NAT rule in natapp pod too and this time ICMP replies are seen in UE and two-way traffic captured in natapp pod ,however no capture in upfgtp interface in UPF pod.
We have configured calico to allow icmp. Can anyone suggest what steps we need to do resolve this issue ? Any routing changes in uerouting / SMF ? Is that NAT rule correct ? Do we need to enable IP forwarding and NAT in UE too ?