Hello,
I have installed and configured Free5gc with several different IP addresses for the different NFs. I have run the core and completed the test with no errors. I have set the proper iptable for my internet interface wlp2s0 (192.168.1.60) trying with these two commands (I´m using wifi):
sudo iptables -t nat -A POSTROUTING -o wlp2s0 MASQUERADE
or
sudo iptables -t nat -A POSTROUTING -s 172.16.10.0/24 -j SNAT --to-source 192.168.1.60
Being 172.16.10.0/24 the subnet I have defined for UEs in the upfcfg.yalm file. In the TestRegistration I can succesfully ping from 172.16.10.1 to 198.168.1.60, but I cannot ping from 172.16.10.1 to 8.8.8.8 or other servers in the internet. The traffic capture says “no response found!”. I can ping in a normal command windows 8.8.8.8 succesfully.
Does anyone have any idea what the problem might be or how could I get more information on how to find where is the problem? I would really appreciate the help.
Thank you,