Hi Chris, thanks for your help, I tried it but unfortunately, it doesn't seem to be working. I've tried with modem (56k to internet) and share thru' eth0, yes! it works. But ADSL (eth1 to internet) and share thru' eth0, no, the client end cannot connect to internet. [Internet]----[ADSL modem]----[eth1]----[your two lines input]----[eth0]----[switch]----[client pc, gateway point to eth0 IP] In both cases (on two pc), the client pc is pointed to the host pc (gateway set accordingly). Anything I've missed out? Dennis/sg
echo "1" /proc/sys/net/ipv4/ip_forward will set up forwarding on your 'net connected box.
Next you'll have to set up masquerading. If you have a 2.2.x kernel, or a
kernel with ipchains support, use this command: ipchains -P forward MASQ If you use a 2.4 kernel without ipchains support, then you'll need to use
2.4 the
'iptables' command, but I'm not too hot on iptables at the moment, so I couldn't tell you exactly what to use.
Also note that this leaves you with no firewall protection at all. Use a SuSE supplied package, or check out http://netfilter.kernel.org to do this.
Finally, you'll need to set you second computer to point to the 'net connected one as its gateway. Use this command: route add default gw
These are just generic instructions though, so they won't necessarily work on all networks...