Open5gs: NAT port forwarding
Revision as of 09:36, 26 October 2022 by Yopi Sopiyana (talk | contribs) (Created page with " sudo sysctl -w net.ipv4.ip_forward=1 sudo iptables -t nat -A POSTROUTING -o ens18 -j MASQUERADE sudo systemctl stop ufw sudo iptables -I FORWARD 1 -j ACCEPT # if above s...")
sudo sysctl -w net.ipv4.ip_forward=1 sudo iptables -t nat -A POSTROUTING -o ens18 -j MASQUERADE sudo systemctl stop ufw sudo iptables -I FORWARD 1 -j ACCEPT
# if above setup not works try to manually create tun interface and do nat forwarding sudo ip tuntap add name ogstun mode tun sudo ip addr add 10.45.0.0/16 dev ogstun sudo ip addr add 2001:230:cafe::1/48 dev ogstun sudo ip link set ogstun up