network_configuration_basics

This is part of The Pile, a partial archive of some open source mailing lists and newsgroups.



Subject: Re: Redhat and DSL
From: "Steven Pierce" <steven_pierce@powerinter.net>
Date: Tue, 08 Aug 2000 18:03:09 -0700



>On Fri, 21 Jul 2000, Nigel Trivass wrote:
>
>> Hi,
>> 
>> I'm hoping someone can help me  help a colleague in the US,  with the
>> setting up of a small network....using the following:
>> 
>> PC [win98],  NT server, Redhat server, a hub, a router and DSL
>> 
>> None of the above are currently networked together.
>> 
>> We have purchased one  fixed IP address from Flashnet, our DSL provider.
>> 
>> Our requirements:
>> 
>> My colleague requires that the Redhat machine be available to other Redhat
>> servers around the globe. [These servers hold master databases which we need
>> to gain access to, for the export and import of data].
>> A fixed IP address is required for access to all sites.
>> 
>> My colleague wants to be able to connect to the ISP directly from her PC in
>> order  to pick up email.
>> The PC needs also to be able to FTP/Telnet to the Redhat machine
>> 
>> TCP/IP services are required between NT and the other machines.
>> 
>> What would be the best way to set up this network?
>> 
>> I'm thinking that we should have purchased 3 IP addresses, and then set up a
>> domain. But I'm unsure of how to configure DSL - we don't have this service
>> in the UK at the moment. We are running redhat version 6_0. Does the redhat
>> kernel support DSL?
>> 
>> I'm thinking that the best solution would be to network the 3 machines using
>> private IP conventions, then connecting the DSL modem to the PC, and simply
>> using a normal modem for connecting the redhat server to the internet
>> whenever required?
>> 
>> I know this is all a bit vague, and not strictly a redhat query, but any
>> assistance would be gratefully received.


On 7/25/2000 at 9:16 AM Charles Galpin wrote:

>Hi Nigel
>
>You got several answers, all quite correct, but proabbly a bit high
>level. Let me try describe what everyone is suggesting the way I'd like it
>explained to me ;)
>
>She will want to configure her LAN as follows. Sorry, but my ascii art
>sucks
>
>    internet
>       |
>  DSL router/modem
>       |
>  RedHat Server (with *two* network cards)
>       |
>      hub
>       |
>      -------
>     |       |
>    win98    NT
>
>
>I'll explain the setup from the inside out, since it'll probably be
>clearer that way.
>
>win98/NT: All you do is configure the win98/NT pcs to have IPs in a
>private subnet (like 192.168.1.x), use the RH box as their gateway, and
>use flashnet's DNS servers. A more advanced configuration could be them
>using dhcp and the RH box serving them that info on bootup, and perhaps
>runnign your own DNS server on the RH box too. Neither are required. No
>configuration of any apps will be necessary - they will just have access
>to each other and the RH box and the rest of the world, transparantly.
>Easy eh?
>
>RedHat Server
>You will need to install two ethernet cards and configure them. One will
>be the connection to the intelnal LAN and have an IP address in the same
>provate range 192.168.1.x. The other will have the static IP you
>purchased, and will be the default route. You will have to add a specific
>route to the 192.168.1.x network. You will then need to configure it to do
>NAT (see a recent thread on network address translation) using
>ipchains. Except for securing your firewall properly, this is actually
>quite trivial. What this will do is allow the other PCs on the network to
>have access to the internet as if they too were plugged into the DSL
>router/modem, but with the security of the RedHat firewall between them
>and the net. *YOU MUST* setup a firewall!!!!!
>
>The DSl router/hub will plug into one of the ehternet cards, and the hub
>into the other. Linux has no idea there is a DSL router/modem there, and
>doesn't care. It's the logical equivalent of the other nic being plugged
>in to the hub. As long as you setup the RH box's external interface to
>have the right IP, gateway and DNS (from flashnet) it will just work!
>
>This is becoming an increasingly popular setup these days. I guess we need
>to write a nice howto sometime. Oh where does the time go..


Thank you for this information.  I am a little behind on my
mail.  So I did not get to this until today.  I am getting
ready to do this next week.  Wife gone all week, so I will
have some more time<G>....  Question...  Can you put the DNS
servers behind the firewall for protection??  Or is this a
dumb idea??

===

Subject: Re: Redhat and DSL
From: Charles Galpin <cgalpin@lighthouse-software.com>
Date: Tue, 8 Aug 2000 21:52:52 -0400 (EDT)

Hi Steven

On Tue, 8 Aug 2000, Steven Pierce wrote:

> Thank you for this information.  I am a little behind on
> my mail.  So I did not get to this until today.  I am
> getting ready to do this next week.  Wife gone all week,
> so I will have some more time<G>....  Question...  Can you
> put the DNS servers behind the firewall for protection??
> Or is this a dumb idea??

Yes you can. No it's a smart idea. However, remember this is
not even necessary and I suggest getting everything else
working before bothering with it.


===

Subject: Re: Redhat and DSL
From: John Aldrich <john@chattanooga.net>
Date: Wed, 9 Aug 2000 13:40:09 -0400

> 
Hmm... why not just use your ISP's DNS servers? You can put the
"known" machines into the linux box's "hosts.allow" file and just
point the Windows boxes to the linux box's INTERNAL IP address
(192.168.x.x would be suggested) as the "default gateway."
	John

===

Subject: Re: Redhat and DSL
From: Charles Galpin <cgalpin@lighthouse-software.com>
Date: Wed, 9 Aug 2000 14:06:23 -0400 (EDT)

yes, I think in my original email I sugegsted that. Just be be clear
though, on each machine (windows and linux) he should

1. put the name/ip pairs of all machines on his LAN in the
"hosts" file. This is /etc/hosts for linux, and somewhere under the
windows dir for windows (use the find feature and make sure you don't edit
the hosts.sam file, but just "hosts")

2. put his ISP's DNS servers in the appropriate places - /etc/resolve.conf
for linux and in the DNS entries under networking/tcp/ip settings for your
ethernet adapter under windows.

And yes, the PCs use the linux box's IP as their gateway. 

===

Subject: Re: Redhat and DSL
From: John Aldrich <john@chattanooga.net>
Date: Wed, 9 Aug 2000 14:40:55 -0400

On Wed, 09 Aug 2000, you wrote:
> yes, I think in my original email I sugegsted that. Just be be clear
> though, on each machine (windows and linux) he should
> 
> 1. put the name/ip pairs of all machines on his LAN in the
> "hosts" file. This is /etc/hosts for linux, and somewhere under the
> windows dir for windows (use the find feature and make sure you don't edit
> the hosts.sam file, but just "hosts")
> 
> 2. put his ISP's DNS servers in the appropriate places - /etc/resolve.conf
> for linux and in the DNS entries under networking/tcp/ip settings for your
> ethernet adapter under windows.
> 
> And yes, the PCs use the linux box's IP as their gateway. 

Yep. The only reason I said anything was he was proposing to set up
his own dns server. In my opinion (which is worth less than the paper
it's written on <G>) you should only set up a DNS server if you
plan on running a domain off your machines, and even then, see if you
can get your DNS hosted by someone else, due to the increasing
fondness for attacking DNS servers! :-(

===

Subject: Re: Redhat and DSL
From: Charles Galpin <cgalpin@lighthouse-software.com>
Date: Wed, 9 Aug 2000 14:51:13 -0400 (EDT)


On Wed, 9 Aug 2000, John Aldrich wrote:

> Yep. The only reason I said anything was he was proposing to set up
> his own dns server. In my opinion (which is worth less than the paper
> it's written on <G>) you should only set up a DNS server if you
> plan on running a domain off your machines, and even then, see if you
> can get your DNS hosted by someone else, due to the increasing
> fondness for attacking DNS servers! :-(
> 	John

Agreed.

However, a "caching only" nameserver, only serving the internal interface
can be a nice performance boost, and is safe. I had mentioned this
originaly (along with a dhcpd server) as an enhancement, and was probably
a bad idea to bring it up at that point :)

Lets' hope he finds the time to read this thread before going off trying
to setup his own DNS then!

===
Subject: RE: Redhat and DSL
From: Ward William E PHDN <wardwe@nswcphdn.navy.mil>
Date: Wed, 9 Aug 2000 16:35:32 -0400 

Burke, Thomas G. [mailto:thomas_g_burke@md.northgrum.com]
wrote: 


> Sorry to come in late to this exchange...
> 
> I ave no DNS installed on my machine.  However, I am running an internal
> network 0n 192.168.68.x...
> 
> These machines need to have names, so I chose names I new were unused on my
> ISP's network - thus, ny internal machines are machinename@myisp.com...
> 
> So, since I don't have DNS, these names aren't properly resolved...
> 
> I have them in my hosts file, but my logs are full of:
> 
> blah, blah gethostbyname(machinename): host not found.
> 
> Otherwise, things seem to be working.  However, I'd like to get rid of this
> garbage so my logs are a little easier to read.
> 
> Any suggestions?

Sure!  Change the order that your machine checks the names....
set it to check files first, then dns.  You should be able
to do this in a number of places, including Linuxconf.


===

Subject: Re: Redhat and DSL
From: Bret Hughes <bhughes@elevating.com>
Date: Thu, 10 Aug 2000 11:58:47 -0500

Burke, Thomas G." wrote:

> I thought I had done this, already...  Which files are they, I don't recall
> now.

/etc/host.conf
here is what mine looks like

order hosts,bind
multi on

you can add the ipaddresses for the machines on your local net in the
/etc/hosts file
the following format works for me.

192.168.0.1    nameofmachine.tomshouse.com     nameofmachine

You should be able to make up a domain since you are behind the masq.
firewall.  Make sure all machines have the hosts file so each can find the
other.

===

Subject: RE: Redhat and DSL
From: "Burke, Thomas G." <thomas_g_burke@md.northgrum.com>
Date: Thu, 10 Aug 2000 13:18:14 -0400

Interesting, as that's what mine looks like too...  

Of course, I'm using my ISP's doamin rather than my own...  Maybe that's the
problem, but I would think it woud pull them from my hosts file before it
went off looking for a DNS..

hermm...  What's up with that?

===

Subject: RE: Redhat and DSL
From: Roy Harrison <royhar@pacbell.net>
Date: Thu, 10 Aug 2000 12:12:19 -0700

At 01:18 PM 08/10/2000 -0400, you wrote:
>Interesting, as that's what mine looks like too...
>
>Of course, I'm using my ISP's doamin rather than my own...  Maybe that's the
>problem, but I would think it woud pull them from my hosts file before it
>went off looking for a DNS..
>
>hermm...  What's up with that?


check /etc/nsswitch.conf file. it has the order of lookup in there.

===

Subject: Re: Redhat and DSL
From: Bret Hughes <bhughes@elevating.com>
Date: Thu, 10 Aug 2000 15:47:06 -0500

Roy Harrison wrote:
> 
> check /etc/nsswitch.conf file. it has the order of lookup in there.
> 
> Roy

I thought that was only used for NIS?


===

Subject: Re: Redhat and DSL
From: Roy Harrison <royhar@pacbell.net>
Date: Thu, 10 Aug 2000 17:07:32 -0700

At 03:47 PM 08/10/2000 -0500, you wrote:
>Roy Harrison wrote:
> >
> > check /etc/nsswitch.conf file. it has the order of lookup in there.
> >
> > Roy
>
>I thought that was only used for NIS?
>
>
>Bret


Nope... it can also cause long delays in logging on if it's
not configured right.

===


the rest of The Pile (a partial mailing list archive)

doom@kzsu.stanford.edu