Re: Fedora 6 - How to name machines on LAN for net?



"John L" <jl@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
news:46d92b76$0$648$bed64819@xxxxxxxxxxxxxxxxx:


"Steve" <steve@xxxxxxxxxx> wrote in message
news:fbavg9$i3i$3@xxxxxxxxxxxxxxxxxx
On Sat, 01 Sep 2007 07:38:10 +0200, Ohmster wrote:
This is what I have now:

[ohmster@ohmster ~]$ cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost
192.168.15.100 ohmster.ohmster.com ohmster #eth0 to Internet
192.168.0.1 ohmster.ohmster.com ohmster #eth1 to LAN
192.168.0.3 missy
192.168.0.2 paula
[ohmster@ohmster ~]$ hostname -f
ohmster.ohmster.com
[ohmster@ohmster ~]$
[snip]

Every interface must have an unique name. You have 2 the same. Fix
that first...

No, that should be OK insofar as anything which looks up by IP address
192.168.15.100 or 192.168.0.1 will get ohmster, and anything querying
by name ohmster will get 192.168.15.100.

The question is whether routing is set up appropriately so that
everything for 192.168.0 goes to the switch and everything else goes
via the default gateway which is (or should be) the router, neither of
which is in /etc/hosts. Depending on netmasks and switch and router
addresses, that might require a static route. Also, the OP mentioned
NAT-ing or IP address masquerading through eth1 which presumably ought
to be eth0.

I used DIA to make a diagram of my network setup. You can view it here:
http://www.ohmster.com/~ohmster/picture/OhmNET.jpg

Alternatively, the switch could be plugged straight into the router so
it is not necessary to route all traffic through the linux server.
This would mean relying on the router's firewall, which the OP is
perhaps not prepared to do but it would simplify things a great deal
(oh, and probably the switch and certainly the router should be able
to act as dhcp server).

I want to learn Linux routing and networking so this is the reason that I
make the Linux box the router for the network. I really do not need this
as the Linksys can do this for me, but I use the Linksys to get Vonage
phone to work. I really want for the Linksys to pass the real IP through
to the Linux box by putting it in the DMZ but so far, it does not work. I
can only get an IP of 192.168.15.100 from the Linksys for the Linux box.

The OP also mentioned a DNS lookup being necessary to find one
of the machines which implies nsswitch.conf is wrongly not configured
to look at hosts, though that might have been before hosts was set up.

I am not sure what that means.

On the Windows servers, you probably need to specify tcp/ip
networking in order to set things up appropriately.

The Windows boxes work fine and they do use tcp/ip for networking. I was
thinking of making them join the Linux domain but the how-tos that I have
found seem to indicate that you can make them join a samba domain. Right
now, I have the Windows boxes work with samba by specifying the
workgroup. These tutorials explain how to do it as a domain. I tried it
and it did not find a domain server on the Linux box. I must have samba
setup incorrectly for this, not sure how to fix it.

http://rudd-o.com/archives/2006/03/08/making-windows-xp-join-a-samba-
domain-in-5-minutes/
or
http://tinyurl.com/yns7o3

And

http://www.samba.org/samba/docs/man/Samba-HOWTO-
Collection/ClientConfig.html#id2545087
or
http://tinyurl.com/37v6gf

These network problems are probably off-topic for comp.mail.sendmail.

Probably, I might have to go to the networking newsgroup for this.

The mail setup seemed slightly odd with local mail going out and
coming back in again but I have probably misunderstood the OP.
Masquerading (sendmail not ip) can be set up so that mail from
user@xxxxxxxxxxxxxxxxxxx comes from user@xxxxxxxxxxxx
The OP should note that root is normally excluded from masquerading
as you generally do want to know which machine's root is sending
mail to alert you to a system problem (imagine buying a second
linux server).

I used to have sendmail and mx records setup so that I had a real mail
server but my ISP at that time killed all traffic on port 25 to put an
end to spammers getting cheap DSL accounts and then flooding the net with
spam. My new ISP has no such restriction and I can do that again but then
I have to deal with spammers trying to crack my mail server to relay
their crap spam mail. I use smart_host with sendmail to send mail out
through my ISP and my DNS service (zoneedit.com) does mail forward to
send all my domain mail to me via my ISP's mail server. It works pretty
good that way.

On the question of outgoing mail aliases, just set them to whatever
is wanted but remember to run newaliases afterwards. It looked like
the OP had aliased to the local user called user (bad example name!)
but wanted to alias to user@xxxxxxxxxxx

It was just an example. I did not do this for real. Let me send mail to
myself and see how it comes...

Received: from ohmster.ohmster.com (c-71-57-187-110.hsd1.fl.comcast.net
[71.57.187.110])
by comcast.net (alnrmhc14) with ESMTP
id <20070901235857b1400ph4h5e>; Sat, 1 Sep 2007 23:58:57 +0000
Received: from ohmster.ohmster.com (localhost [127.0.0.1])
by ohmster.ohmster.com (8.13.8/8.13.8) with ESMTP id l81NwuuN026966
for <theohmster@xxxxxxxxxxx>; Sat, 1 Sep 2007 19:58:56 -0400
Received: from localhost (ohmster@localhost)
by ohmster.ohmster.com (8.13.8/8.13.8/Submit) with ESMTP id
l81NwtPY026963
for <theohmster@xxxxxxxxxxx>; Sat, 1 Sep 2007 19:58:56 -0400
X-Authentication-Warning: ohmster.ohmster.com: ohmster owned process
doing -bs
Date: Sat, 1 Sep 2007 19:58:55 -0400 (EDT)
From: Ohmster <ohmster@xxxxxxxxxxx>
To: Ohmster <theohmster@xxxxxxxxxxx>
Subject: Test Mail

Yeah, that is working pretty much the way I want.

Or it may be that the OP wants no local mail deliveries at all,
with all mail forwarded to the ISP, a bit like
http://www.harker.com/sendmail/submit.html
Is the ISP or the linux server supposed to be the mail server?


ISP for incoming mail (Routed by DNS service as a mail forward,
zoneedit.com) and Linux server to send mail directly via smart_host. I am
doing this to keep the rottem spammers from tring to crack my mail server
and then use it as a relay.

Thanks for your help.
--
~Ohmster * ohmster /a/t/ ohmster dot com
Put "messageforohmster" in message body
(That is Message Body, not Subject!)
to pass my spam filter.
.



Relevant Pages

  • Re: Help w/ Not-booting Problem
    ... >No - setting the hostname is one element in the boot process. ... I have had a working system of RedHat Linux 7.2 for several months. ... >external DNS server on an adsl router! ... >You appear to have a networking problem. ...
    (comp.os.linux.misc)
  • Re: How do you make an automated newsgroup FAQ poster in linux? shells script with cron perhaps?
    ... perhaps I can get a 21" monitor for my Linux ... servers (Gosh I miss my ohmster.com mail server, ... Did you put "Read Ohmster" in the subject line of your return mail? ... newspost for linux and man, that thing kicks ass for posting huge stuff ...
    (alt.os.linux)
  • COMMERCIAL: _Linux Power Tools_ book now available
    ... My latest book, _Linux Power Tools_ from Sybex, ISBN 0782142265, is now ... Optimizing X Configuration ... Getting More from a Web Server ... Author of books on Linux, FreeBSD, and networking ...
    (comp.os.linux.announce)
  • Re: RHCE
    ... honestly I would not set up a network with samba or anything in linux ... till i read a book on networking it. ... I wouldn't intall WindowsNT 4.0, ... server, or Window 2003 server or Netware or any server before I read a ...
    (comp.os.linux.networking)
  • Re: Printing.
    ... not even in the situation of the OP (Linux ... is the server, 2 printers into 3 PC's does not go, so I have attached ... them to the server where we can all print. ... I do see you were tryign to be a smart arse; but if in 'networking' we ...
    (alt.os.linux.suse)