Convert a GNU/Linux PC in a router

Follow me for more content or contact for work opportunities:
Twitter / LinkedIn

For converting a simple computer with two interfaces (or more) in a router, it's necessary just to type two sentences in a console:

echo 1 > /proc/sys/net/ipv4/ip-forward

iptables -t nat -A POSTROUTING -o -j MASQUERADE

Follow me for more content or contact for work opportunities:
Twitter / LinkedIn