On Wed, Jun 25, 2003 at 09:01:12AM +0100, MAL wrote:
> I'm afraid you can't connect a modem to a hub (in this circumstance) :)
> If your ADSL modem only has an ethernet port, your linux box will need 
> two network cards.  One to connect the PC to the hub, and one to connect 
> the PC to the modem.  If the modem has a USB port, and it's one of the 
> (relatively few) ADSL modems with a Linux driver, you could connect it 
> via USB and thus avoid the need for a second network card.

No USB ports here... neither on the modem nor the computer.

> To actually get the second PC on the internet, your Linux PC will need 
> to have the following enabled in the kernel:
> 
> Networking options --->
>   IP: Netfilter Configuration  --->
>     Connection tracking [M]
>     IP tables support [M]
>     Full NAT [M]
>       MASQUERADE target support [M]

Can't see those. I can see "Network packet filtering (replaces ipchains)"
though. vanilla-sources-2.4.21.

> Your Linux machine needs the above options to perform NAT.. specifically 
> IP masquerading.  This allows both your PCs to have LAN IP addresses, 
> (192.168.0.x), but both use the internet, (by having their IP address 
> 'translated' into your ADSL IP address, and back).
> 
> You may well also want some firewalling options, so enable at least:
> 
> Networking options --->
>   IP: Netfilter Configuration  --->
>     Packet filtering [M]
> 
> You then need some way of enabling NAT, (and possibly firewall).
> There are some graphical firewall setup programs, but I think it's 
> easier and faster to get it up and running with a simple pre-written script.
> 
> I find this one satisfactory for home use:
> http://firewall.lutel.pl/
> 
> Simply fill in your various interface names, and specify what ports you 
> want available to the internet and the LAN, then run it with ./firewall 
> start.  Note: you will need to have recompiled your kernel and the 
> modules, and rebooted, before this can do it's job.
> 
> The last step is to set up your two PCs /internal/ interfaces.  For such 
> a small network, I would simply give your Linux PC the IP:
> 
> 192.168.0.254
> 
> and your Win98 machine: 192.168.0.1

How do I do this? My PC seems to automatically retrieve its IP address.
Is it done through adsl-setup?

> x.x.x.254 is commonly used for a gateway machine on LAN, and this is 
> exactly what your Linux PC will be.
> 
> You will also need to set your Win98 box's Default Gateway to 
> 192.168.0.254, and it's DNS servers to whatever your ISP gave you.

Sounds horribly complex, but I'll try it. I'll let the people from my
ISP set it up using Windows first, so I'll know I have the hardware
connected right.
By the way - why is it specifically 192.168.0.x?

--
Tactless

"If it wasn't for fog, the world would run at a really crappy framerate."
This is a .signature virus! Please copy me into your .signature.

--
[EMAIL PROTECTED] mailing list

Reply via email to