Re: hosts.allow does not resolve names



On Tue, 27 Nov 2007 16:46:31 -0800 (PST), David Schwartz wrote:

How would it know the host name?

It would look up the name in /etc/hosts :)

How do you imagine it works?

I imagined it would work like man hosts.allow indicates

The access control language implements the following patterns:

· A string that begins with a ‘.´ character. A host name is
matched if the last components of its name match the specified
pattern. For example, the pattern ‘.tue.nl´ matches the host
name ‘wzv.win.tue.nl´.

then looking through man -s 5 hosts_access the example

/etc/hosts.allow:
ALL: LOCAL @some_netgroup
ALL: .foobar.edu EXCEPT terminalserver.foobar.edu


would suggest it should work. :-D

Feel free to look through the rest of the thread for more info.
.



Relevant Pages

  • Re: sendmail and hosts_access(5)
    ... I am attempting to block an SMTP server with /etc/hosts.allow: ... For example, the pattern `.tue.nl' matches ... the host name `wzv.win.tue.nl' ... mat is zero or more lines with zero or more host name or ...
    (freebsd-questions)
  • Re: sendmail and hosts_access(5)
    ... Robert Huff wrote: ... A host name or address is matched if it matches any host name or address pattern listed in the named file. ... more lines with zero or more host name or address patterns separated by ...
    (freebsd-questions)
  • sendmail and hosts_access(5)
    ... I am attempting to block an SMTP server with /etc/hosts.allow: ... The access control language implements the following patterns: ... For example, the pattern `.tue.nl' matches ... the host name `wzv.win.tue.nl' ...
    (freebsd-questions)
  • Re: hosts.allow does not resolve names
    ... A host name is ... the pattern ‘.tue.nl´ matches the host ... Some programs link against libwrap, ... You have to use the daemon name portmap for the daemon name (even if the ...
    (comp.os.linux.networking)
  • Re: Shell-Script Question
    ... "Holger Hoffmann" wrote in message ... > file, and if so, perform an action (e.g. ping a host or whatever). ... "grep -c" does not return the number of occurrences of a pattern ...
    (linux.redhat)