IP Firewalling by DNS name
David Wolfskill
david at catwhisker.org
Tue May 31 09:00:50 PDT 2005
On Tue, May 31, 2005 at 11:54:25AM -0400, Lowell Gilbert wrote:
> Oliver Fromme <olli at lurza.secnetix.de> writes:
>
> > Ivan Voras <ivoras at fer.hr> wrote:
>
> > > As I understand it, sshd actually accepts connections
> > > prior to checking hosts.allow?
> >
> > Yes, the connection is accepted first, because there is
> > no information available about it before it is accepted.
> > But if the check fails, the connection will be closed
> > immediately.
>
> Well, that's not necessarily the best way to explain it. When you're
> working with TCP wrappers, you're running out of inetd(8), so there
> isn't really any sshd at all until the wrappers have decided to allow
> the connection.
Are you *sure* about that? Ref:
g1-18(4.11-S)[2] ldd `which sshd`
/usr/sbin/sshd:
libopie.so.2 => /usr/lib/libopie.so.2 (0x28089000)
libmd.so.2 => /usr/lib/libmd.so.2 (0x28092000)
libssh.so.2 => /usr/lib/libssh.so.2 (0x2809b000)
libcrypt.so.2 => /usr/lib/libcrypt.so.2 (0x280ca000)
libcrypto.so.3 => /usr/lib/libcrypto.so.3 (0x280e3000)
libutil.so.3 => /usr/lib/libutil.so.3 (0x281da000)
libz.so.2 => /usr/lib/libz.so.2 (0x281e3000)
libwrap.so.3 => /usr/lib/libwrap.so.3 (0x281f0000)
libpam.so.1 => /usr/lib/libpam.so.1 (0x281f8000)
libc.so.4 => /usr/lib/libc.so.4 (0x28202000)
g1-18(4.11-S)[3]
Note "libwrap.so.3" in there....
Peace,
david
--
David H. Wolfskill david at catwhisker.org
Any given sequence of letters is a misspelling of a great many English words.
See http://www.catwhisker.org/~david/publickey.gpg for public key.
More information about the freebsd-stable
mailing list