Convert a GNU/Linux PC in a router

Follow me on Telegram for more content. Contact me for business opportunities.

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

Show Comments