If it is Redhat/Fedora/Centos
Open the file /etc/sysctl.conf and change the value of net.ip_forwarding peramteres to 1 from 0. It will looks like given below
Ip_forward = 1
Run the following command to make changes in kernel for IP farwarding
#sysctl –p
If you want more from router like, to access internet, you have to setup it as NAT. I did it and explained it on my blog. Please visit
http://varinderjhand.wordpress.com/2...ated-firewall/