You will need to turn on FORWARDing;
Code:
echo 1 > /proc/sys/net/ipv4/ip_forward
If you want this to be turned on from a reboot you need to edit /etc/sysctl.con and change the following line as listed below;
Code:
net.ipv4.ip_forward = 1
This will get the box to do routing for you. You will have to setup iptables to block unwanted traffic and do your masquerading for traffic leaving your system. Take a look at this
TUTORIAL.