On a private cloud I am setting up, I have a a few RHEL VMs, networks, and a router on openstack. My router is connected to the public internet and my gateway node is connected to the router and has internet access through eth0. The node is connected to the internal network on eth1. I have a few internal RHEL nodes connected to the internal network on their eth0 interfaces. The nodes can all ping one another and I believe the ifcfg files for each node are set up correctly.
Using IPTables, I've tried to give the internal nodes internet access by:
iptables -A FORWARD -i eth1 -o eth0 -j ACCEPT iptables -A FORWARD -i eth0 -o eth1 -m conntrack -ctstate ESTABLISHED,RELATED -j ACCEPT iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
I've also enabled ipv4 forwarding (disabled by default) on the kernel level. After saving the configuration and SSHing into an internal node, I cannot ping outside addresses:
# ping 184.108.40.206 connect: Network is unreachable
My router in openstack has a static route with
Destination CIDR: my internal network
Next Hop: my gateway node
Why can't I get internet access on my internal nodes? What am I missing here?