Re: hosts.allow does not resolve names
- From: ibuprofin@xxxxxxxxxxxxxxxxxxxxxx (Moe Trin)
- Date: Tue, 27 Nov 2007 20:23:26 -0600
On Tue, 27 Nov 2007, in the Usenet newsgroup comp.os.linux.networking, in
article <slrnfkp0t8.rv.BitTwister@xxxxxxxxxxxxxxx>, Bit Twister wrote:
Moe Trin wrote:
OPINION: I don't like to use hostnames, as they are subject to spoofing.
IP addresses are harder to spoof. Yes, in this case, it shouldn't be
a major concern, but I go for blanket solutions.
I hear where you are comming from. Was just trying to keep maintenance
down while changing LAN ip values.
Very simple solution. Two lines - one with the old range, one with the
new. The assumption is that your perimeter firewall is doing RFC2827
or RFC3704 filtering ("internal" IP addresses can't be coming in as
sources on the "external" interface), so having
ALL: 192.168.1.
ALL: 192.168.231.
isn't going to be opening a massive hole.
ALL: .home.invalid
fails. So does ALL: wb.home.invalid, m2008.home.invalid
OK - that rules out the space problem (hate to say how many times that
has caught people.
$ cat /etc/host.conf
If you drop the last two, does it work?
No, and changing last two to off did not work either.
OK
OK. Assumption is no other lines containing those IP addresses.
No,
$ grep 213 /etc/hosts
192.168.1.213 m2008.home.invalid m2008
$ grep m2008 /etc/hosts
192.168.1.213 m2008.home.invalid m2008
OK - that's another one that trips people.
if you can 'ping -c 1 m2008.home.invalid' then tcpd _should_ work.
Dang it, pings work, but NFS mount still fails with ALL: .home.invalid
NFS... Something is back there, and I can't think what. Have you got
any other daemon that is running out of xinetd? Because,
Nov 27 13:57:33 m2008 portmap[4702]: connect from 192.168.1.130 \
to getport(nfs): request from unauthorized host
that's portmap bitching, not tcpd or xinetd.
$ cat /etc/exports
/local wb(rw,no_root_squash,sync)
$ ping -c 1 wb
PING wb.home.invalid (192.168.1.130) 56(84) bytes of data.
OK - gethostbyname is working
or am I mis-interpreting your mail snip?
It would be misleading
Got it. I'm not used to that format. The %c being only the IP, it's not
resolving for tcpd. Quick look - is there anything obvious in a packet
dump? By that, I mean who is trying to talk to who - port numbers, etc.
Rejections? Ignores? I'd be more trying to compare the packets
between hosts.allow set with IPs verses net-names.
Open/no firewalls on both systems makes no difference.
No, this is something else, and I can't think what it might be. There
is something ringing an alarm bell for me, and it's related to NFS, not
tcpd. But WHAT is it? At thing point, I don't know.
Old guy
.
- Follow-Ups:
- Re: hosts.allow does not resolve names
- From: Bit Twister
- Re: hosts.allow does not resolve names
- From: Bit Twister
- Re: hosts.allow does not resolve names
- References:
- hosts.allow does not resolve names
- From: Bit Twister
- Re: hosts.allow does not resolve names
- From: Moe Trin
- Re: hosts.allow does not resolve names
- From: Bit Twister
- hosts.allow does not resolve names
- Prev by Date: Re: hosts.allow does not resolve names
- Next by Date: Re: hosts.allow does not resolve names
- Previous by thread: Re: hosts.allow does not resolve names
- Next by thread: Re: hosts.allow does not resolve names
- Index(es):
Relevant Pages
|