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
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 22.214.171.124, but I cannot ping from 172.16.10.1 to 126.96.36.199 or other servers in the internet. The traffic capture says “no response found!”. I can ping in a normal command windows 188.8.131.52 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.