Wednesday, February 16, 2011

Ubuntu/Debian Internet Gateway for Internet Connections Sharing

Two lines of commands to activating Internet Gateway on Ubuntu/Debian for desktop computer has 2 NIC (network interface card). This function will gone after you restart the computer.

#echo 1 > /proc/sys/net/ipv4/ip_forward
#iptables -t nat -A POSTROUTING -j MASQUERADE

No comments:

Post a Comment