I'm trying to do the equivalent of this iptables rule in firewalld
iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE
How can I do this?
centos7firewalld
I'm trying to do the equivalent of this iptables rule in firewalld
iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE
How can I do this?
Best Answer
To set up masquerading on the external zone, type:
external: For use on external networks with masquerading enabled especially for routers. You do not trust the other computers on the network to not harm your computer. Only selected incoming connections are accepted.
internal: For use on internal networks. You mostly trust the other computers on the networks to not harm your computer. Only selected incoming connections are accepted.
For reference:
http://www.certdepot.net/rhel7-get-started-firewalld/