Click to See Complete Forum and Search --> : Two native machines sharing internet connections


retoon
01-07-2003, 02:09 AM
Hi all,
I am experiencing a few difficulties sharing my internet connection from one pc to another. Both machines are running RH8, and only one has a connection to the internet. I tried searching the NHFs, but the only one that I could find that would be close enough was how to set one box up as a firewall. I think both machine's NICs are working fine because the network Configuration under system tools, has the nics listed. One is an rtl-8139, and the other is a DEC nic. I try hitting the Activate button, and it gives me the error "Cannot activate network device eth0". My internet connection is dialup (don't laugh). I only need the sharing so that I can give access to the other node at a later time, and to share my printer with it aswell. I am using a crossover to connect these two machines, and there shouldn't be anything wrong with it, I checked continuity in each one of the eight pins. I am constantly told Linux is best for networking, I just really want to know how to use it.
On another note.
I am in love with this operating system, and can't imagine myself going back to windows (besides in the work environment). I am just really glad that there are so many understanding people out there who are willing to take time out to help those who aren't as well versed. Thanks to all in advanced for any advice given.

retoon
01-08-2003, 01:24 AM
you can post a reply any time now you guys......

slewis1972
01-08-2003, 09:36 AM
You have to setup routing etc. Either via a iptables script or using somehting like gshield as a firewall and I think that also has the option.

Try this script (attached)- someone else uses it and I think ppp refers to a dial up connection and etho is his LAn connection. Save the script as say iptables.script. then do a

chmod a+x iptables.script

This makes it executable.

Pit the script in /etc and then make a link in rc.local to it.

When you boot - you may have internet connections sharring working. I altered the script and repalced ppp with eth0 as I ahve a cable modem and it worked straight away for me.

Make the client pc - your other pc - have a static ip of say 192.168.0.5, with subnet 255.255.255.0 and a gateway of the NIC in your pc - which should be 192.168.0.1. If these ip's are different - alter the script accordingly.

Scott