Hello,
I’d like to ask how should I configure NAT tables for UPFs.
I’m planning to use UPF in a ULCL style, and network for N3, N4, N6, and N9 are going to be different.
In the free5gc installation document, NAT table settings is mentioned as follows.
sudo iptables -t nat -A POSTROUTING -o <dn_interface> -j MASQUERADE
Also, I found some related topics at the following discussion:
So I understood that I should set them as follow.
But still, I don’t have confidence.
Also, I’m not sure why UPFb needs to add rules for the N3 interface?
- For UPFb
iptables -t nat -A POSTROUTING -o n9 -j MASQUERADE
iptables -t nat -A POSTROUTING -o n3 -j MASQUERADE
- For UPF1 and UPF2
iptables -t nat -A POSTROUTING -o n6 -j MASQUERADE
I appreciate for your advice.
Thank you.