Click to See Complete Forum and Search --> : Help with sharing connection .


TheWookie
09-04-2002, 06:53 AM
Im running 3 computers , 2 windows XP clients and 1 linux router/gateway ( redhat 7.3 ) . Well thats the plan anway :) .

Ive managed to get the USB ADSL working on the linux box but am unable to work out how to share the connection exactly . Also whats the best way to setup the clients .

Atm the clients have set ip 192.168.0.1 /192.168.0.2, netmask 255.255.255.0 , gateway 192.168.0.1 . Im unsure what to set the DNS to , 192.168.0.1 or the IP of my isps DNS ? Id prefer to have the linux box dhcp and leave it sort out the clients but not sure how to setup up the dhcp server .

As said i want the linux box to share the adsl connection but not sure what to do . Ive looked at a few articles but got lost between IP masaquarding , dhcp server, dns and firewall setups . It has a network card already set to 192.168.0.1 and 255.255.255.0 subnet mask , also im pretty sure DNS is activated on this .

Any advice is appreciated .

Steve

PS can anyone tell what exactly is the difference between a router and a gateway ? Ive never been able to work out a difference .

mychl
09-04-2002, 08:22 AM
The DNS for the clients should be that of your isp. You could of course set up a dhcp server that passed on all that info to your clients. As for the routing, I would use iptables to share the connection.... that way you can build a firewall at the same time you are setting up your router.

I think that a router and a gateway do the same thing, it's just that a router can be in many places on a network, where agateway is usually the link to the internet.

The dhcp server should not be hard at all to set up like I said. It's been so long since I set mine up.... but take a look at /etc/dhcpd.conf and try a google search for dhcpd.conf.... that should give you many examples. Then look in /etc/init.d for dhcpd, the dhcp server daemon.

With RedHat, you have 2 firewall/router solutions, either iptables or ipchains....

hope that helped a little, if I remember what to do with dhcpd.conf, I'll post agian..