You need two things. An interfaces file with the correct ip and gatway info and a firewall script which enables masquerading.
Your interfaces config file might look something like this:
auto eth0
iface eth0 inet static
address 192.168.1.1
netmask 255.255.255.0
auto eth1
iface eth1 inet static
address 217.199.148.13
netmask 255.255.255.240
gateway 217.199.148.X
X, in this case, will be what your ISP assigns for your gateway.
Something like this for your firewall will be a start:
# flush the existing firewall rules
iptables -t nat -F
iptables -F
iptables -X
# MASQUERADE the connection (-j MASQUERADE).
iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE
# Turn on IP forwarding
echo 1 > /proc/sys/net/ipv4/ip_forward
|