On 11 Dec 2003 08:26:32 -0800,
(E-Mail Removed) (NimmerSoft) wrote:
>Hi
>I installed the RedHat9 from the 3 CDs downloaded from RedHat.
>Install went well.
>I am having a bit of a thing here.
>I have got to the point where I can get on the net with the RedHat9
>linux machine.
>The Samba makes the machine visible to the windows98-machines and vice
>versa. So apparantly the network as such is working. One NIC is set to
>a fixed IP and the other (exteral) to DHCP.
>I would like to use the linux machine as a "router/gateway" and as a
>webserver (with apache showing my homepages) instead of the windows98
>machine I am using for that now.
>I have an ADSL modem and a switch. The Linux has two NICs and one goes
>to the ADSL-line and the other to the switch to which two windows98
>machines are connected.
>How do I get the other machines to connect to the net through the
>Linux one?
>Has it got something to do with the Apache server? Or proxy?
>I am a NEWBIE.
>Linux looks like fun. Who can help?? Thanks
>Om Mani Peme Hung
You have to do three things:
1. make the Linux system act as a router
2. give the windows machine the Linux system's internal address as its
default gateway.
3. set up the DNS server address(es) on the windows machine (if your
Linux box is indeed resolving names on the internet then these
addresses will be found in /etc/resolv.conf - just copy them over into
your windows settings)
Notes:
a) it is generally a bad idea to have Samba running on a machine that
is directly connected to the internet. If so, at least make sure that
Samba is not listening on its external interface (see the 'interfaces'
parameter in the smb.conf man page).
b) make sure you set up a firewall on the Linux box.
Prajna Paramita