Monday, November 10, 2008

How to make you Linux as Router

On linux You just need to run this command to act ur linux as router. Frist configure your both network interface. then run this command from terminal.

#echo "1" > /proc/sys/net/ipv4/ip_forward
#/sbin/iptables -t nat -A POSTROUTING -o -eth0 -J MASQUERADE
#/sbin/iptables save
#/sbin/chkconfig iptables on


here I guess eth0 is ur Internet interface. If not then change it ti eth1

No comments: