1- Enable Packet forwarding for IPv4 via /etc/sysctl.conf, by uncommenting the following line:
net.ipv4.ip_forward=12- Add the following lines to the bottom of /etc/rc.local:
/sbin/iptables -P FORWARD ACCEPTTaking into consideration that eth0 is the interface connected to the internet.
/sbin/iptables --table nat -A POSTROUTING -o eth0 -j MASQUERADE
No comments:
Post a Comment