Networking Forums

Networking Forums > Computer Networking > Linux Networking > tcp wrapper vs xinetd

Reply
Thread Tools Display Modes

tcp wrapper vs xinetd

 
 
tibo
Guest
Posts: n/a

 
      02-09-2004, 09:30 AM
Hello all.

I've got the feeling that people prefer to use tcpwrappers instead of xinetd
for controlling the acces to the services. But I think xinetd is better for
that for many reasons.

I was wondering if the reasons for people to prefer tcpwrapper was because
there are used to it since the previous versions of Linux with
inetd/tcpwrapper ?

Can you explain why it could be better to use tcpwrappers ?

Thanks for your answers.


 
Reply With Quote
 
 
 
 
Michael Heiming
Guest
Posts: n/a

 
      02-09-2004, 01:51 PM
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

tibo <(E-Mail Removed)> wrote:
> Hello all.


> I've got the feeling that people prefer to use tcpwrappers instead of xinetd
> for controlling the acces to the services. But I think xinetd is better for
> that for many reasons.


> I was wondering if the reasons for people to prefer tcpwrapper was because
> there are used to it since the previous versions of Linux with
> inetd/tcpwrapper ?


> Can you explain why it could be better to use tcpwrappers ?


Mh, you might like to read up a little bit more about
xinetd/tcp_wrapper, since every service running from xinetd (if
this is compiled with tcpwrapper) will use tcp_wrapper.

- --
Michael Heiming (GPG-Key ID: 0xEDD27B94)

Remove +SIGNS and www. if you expect an answer, sorry for
inconvenience, but I get tons of spam.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQFAJ55aAkPEju3Se5QRAnGiAKDIkEL0MRzhUzZdYQwAmw zYo0X8RQCdEuoA
bDf6hAG1I6nZUp4ArWOE21U=
=qrA9
-----END PGP SIGNATURE-----
 
Reply With Quote
 
tibo
Guest
Posts: n/a

 
      02-10-2004, 08:28 AM

"Michael Heiming" <michael+(E-Mail Removed)> a écrit dans le message de
news:(E-Mail Removed)...
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Mh, you might like to read up a little bit more about
> xinetd/tcp_wrapper, since every service running from xinetd (if
> this is compiled with tcpwrapper) will use tcp_wrapper.
>
> - --
> Michael Heiming (GPG-Key ID: 0xEDD27B94)
>


Hello again ! :-)

Do you mean that tcpwrappers and xinetd are complementary ?

Strange for me cause I've seen that xinetd does the same as tcpwrapper,
control on the source adress.

Another thing, tcpwrapper is not implemented with xinetd on my version of
linux (mdk 9.2), when I try to put a line in hosts.allow or hosts.deny,
nothing happens...


 
Reply With Quote
 
Michael Heiming
Guest
Posts: n/a

 
      02-10-2004, 02:16 PM
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

tibo <(E-Mail Removed)> wrote:

> "Michael Heiming" <michael+(E-Mail Removed)> a ?crit dans le message de
> news:(E-Mail Removed)...
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > Mh, you might like to read up a little bit more about
> > xinetd/tcp_wrapper, since every service running from xinetd (if
> > this is compiled with tcpwrapper) will use tcp_wrapper.


[..]

> Strange for me cause I've seen that xinetd does the same as tcpwrapper,
> control on the source adress.


> Another thing, tcpwrapper is not implemented with xinetd on my version of
> linux (mdk 9.2), when I try to put a line in hosts.allow or hosts.deny,
> nothing happens...


Yep, as written xinetd needs to be compiled with libwrap support
to get this working, run 'strings' on the binary and see what
info you get.

- From "./configure --help" (xinted sources).

- --with-libwrap=PATH Compile in libwrap (tcp_wrappers) support.

Good luck

- --
Michael Heiming (GPG-Key ID: 0xEDD27B94)

Remove +SIGNS and www. if you expect an answer, sorry for
inconvenience, but I get tons of spam.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQFAKPW3AkPEju3Se5QRAtIZAKCEokyht+E2m+u9aVlKkP uLy69N3gCgymkv
nMA2GdvvER+AL5OaOsBuJxw=
=GTg4
-----END PGP SIGNATURE-----
 
Reply With Quote
 
P Gentry
Guest
Posts: n/a

 
      02-10-2004, 05:47 PM
"tibo" <(E-Mail Removed)> wrote in message news:<(E-Mail Removed) ws.com>...
> "Michael Heiming" <michael+(E-Mail Removed)> a écrit dans le message de
> news:(E-Mail Removed)...
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > Mh, you might like to read up a little bit more about
> > xinetd/tcp_wrapper, since every service running from xinetd (if
> > this is compiled with tcpwrapper) will use tcp_wrapper.


Actually, the only thing they both use normally is the libwrap
library. Not aware of a xinetd which is _not_ linked to use libwrap
-- guess it's possible, though what's the point?

> > - --
> > Michael Heiming (GPG-Key ID: 0xEDD27B94)
> >

>
> Hello again ! :-)
>
> Do you mean that tcpwrappers and xinetd are complementary ?


Xinetd is meant to replace/combine the functionality of inetd and
tcpd. Look at the man for both xinetd and tcpd.

> Strange for me cause I've seen that xinetd does the same as tcpwrapper,
> control on the source adress.


It's designed to use a an acl syntax similar to tcpwrapper. Uses
"stanzas" rather than record entry format however.

> Another thing, tcpwrapper is not implemented with xinetd on my version of
> linux (mdk 9.2), when I try to put a line in hosts.allow or hosts.deny,
> nothing happens...


Xinetd does not use hosts.allow or hosts.deny. They are separate
programs -- no need to try and run both (most of the time). Tcpd is
usually meant to be used with inetd, not xinetd. Xinetd uses its own
config file (/etc/xinetd.conf). Man xinetd and xinetd.conf for
details. Look at your copy of xinetd.conf (I assume Mandrake provides
a copy) to see the format. Some folks find it a bit opaque. Try "man
5 hosts_access" for tcpd for comparison.

hth,
prg
email above disabled
 
Reply With Quote
 
Cameron Kerr
Guest
Posts: n/a

 
      02-11-2004, 04:00 AM
tibo <(E-Mail Removed)> wrote:
> Hello all.
>
> I've got the feeling that people prefer to use tcpwrappers instead of xinetd
> for controlling the acces to the services. But I think xinetd is better for
> that for many reasons.
>
> I was wondering if the reasons for people to prefer tcpwrapper was because
> there are used to it since the previous versions of Linux with
> inetd/tcpwrapper ?


IMHO, using tcpwrappers is a better solution than xinetd's ACL control,
mainly because files in the /etc/xinetd.d/ directory may be overwritten
by package management, while /etc/hosts.{allow,deny} would never be
tampered with in this way. Its no a large reason though.

Also, other programs use tcpwrappers for access control, such as samba.
Lets take that example a step further. smbd can run from (x)inetd or
standalone, so using tcpwrappers is better from a consistency point of
view.

--
Cameron Kerr
(E-Mail Removed) : http://nzgeeks.org/cameron/
Empowered by Perl!
 
Reply With Quote
 
blinky
Guest
Posts: n/a

 
      02-11-2004, 10:25 AM
tibo wrote:
> "Michael Heiming" <michael+(E-Mail Removed)> a écrit dans le message de
> news:(E-Mail Removed)...
>
>>-----BEGIN PGP SIGNED MESSAGE-----
>>Hash: SHA1
>>
>>Mh, you might like to read up a little bit more about
>>xinetd/tcp_wrapper, since every service running from xinetd (if
>>this is compiled with tcpwrapper) will use tcp_wrapper.
>>
>>- --
>>Michael Heiming (GPG-Key ID: 0xEDD27B94)
>>

>
>
> Hello again ! :-)
>
> Do you mean that tcpwrappers and xinetd are complementary ?
>
> Strange for me cause I've seen that xinetd does the same as tcpwrapper,
> control on the source adress.
>
> Another thing, tcpwrapper is not implemented with xinetd on my version of
> linux (mdk 9.2), when I try to put a line in hosts.allow or hosts.deny,
> nothing happens...
>
>


In Redhat 9.0 putt "ALL: ALL" in hosts.deny stops me remotely logging in, and that's using xinetd.

bal.
 
Reply With Quote
 
Bit Twister
Guest
Posts: n/a

 
      02-11-2004, 05:13 PM
On Tue, 10 Feb 2004 09:28:23 GMT, tibo wrote:
>
> Do you mean that tcpwrappers and xinetd are complementary ?
>
> Strange for me cause I've seen that xinetd does the same as tcpwrapper,
> control on the source adress.
>
> Another thing, tcpwrapper is not implemented with xinetd on my version of
> linux (mdk 9.2), when I try to put a line in hosts.allow or hosts.deny,
> nothing happens...


Strange for me cause my md9.2 would not let sshd-xinetd run until I
added an entry into /etc/hosts.allow.
Could be because I have ALL: ALL in /etc/hosts.deny.

 
Reply With Quote
 
Rex Dieter
Guest
Posts: n/a

 
      02-11-2004, 06:32 PM
Bit Twister wrote:

> Strange for me cause my md9.2 would not let sshd-xinetd run until I
> added an entry into /etc/hosts.allow.
> Could be because I have ALL: ALL in /etc/hosts.deny.


Well, yeah. What else does could "deny ALL: ALL" mean? (-:

-- Rex
 
Reply With Quote
 
Bit Twister
Guest
Posts: n/a

 
      02-11-2004, 07:35 PM
On Wed, 11 Feb 2004 13:32:48 -0600, Rex Dieter wrote:

> Well, yeah. What else does could "deny ALL: ALL" mean? (-:


Keep up with the thread. tibo seemed to indicate that md 9.2
hosts.(allow/deny) had no effect and I wanted to indicate it does. 8-)
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
sendmail wrapper to find spammer-magnet scripts Andy Linux Networking 8 01-02-2007 10:41 PM
install xinetd pc Linux Networking 1 11-09-2005 10:13 PM
xinetd Sigrid Thijs Linux Networking 5 05-14-2005 04:12 AM
trouble with xinetd PenguinsAnonymous@NotaChance.com Linux Networking 2 11-07-2004 01:20 AM
TCP Wrapper Hakim Z. Singhji Linux Networking 4 07-27-2004 03:54 AM



1 2 3 4 5 6 7 8 9 10 11