First thing is you are going to need to make sure that your system has the proper routes. You can do a "route -n" to check this.
Then you'll most likely want to create an IPTables firewall to set up NAT (Network Address Translation).
There are a few resources for creating IPTables firewalls. Once good place to start is
easyfwgen. You can create a 2 interface firewall there, and then modify the firewall to add the 3rd interface.
If you need more help let me know.