Top

Setup a CentOS Linux Router

Dec 18, 2020 | 602 views

#Linux


# enable ipv4 forward 
echo 1 > /proc/sys/net/ipv4/ip_forward

# CentOS 6
iptables -t nat -A POSTROUTING -o XXXX -j MASQUERADE

CentOS/RHEL 7
$ firewall-cmd --add-masquerade --permanent
$ firewall-cmd --reload


Refer to:


Leave a comment

0 comments