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
#echo 1 > /proc/sys/net/ipv4/ip_forward
#iptables -t nat -A POSTROUTING -j MASQUERADE
No comments:
Post a Comment