You need IP masquerading. Look at the ip_masq howto.
Claude
On Tue, 18 May 1999, Foxtrot X-Ray wrote:
> Currently, the main linux box can see the internet, and the internal network. It
>has an IP address assigned to each NIC, and everyone on the LAN can see the
> "internal" address. I've been going through the HOWTO's and several books on linux
>but the only network configuration information I've been able to find refers
> to linking one internal network to another and the instructions there don't seem to
>apply. I've read the HOWTO on Firewalling, but it assumes most of the basic
> network configuring is already done. Can anyone refer me to a particular source
>that shows how to connect a small LAN to the internet through a linux box?
>