LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-10-2008, 05:36 AM   #1
Fernandoch
Member
 
Registered: Mar 2002
Location: Spain
Distribution: Debian, Cent OS, RHEL
Posts: 119

Rep: Reputation: 15
tcp wrappers and tftp


Here is a sample /etc/hosts.allow:

#hosts.allow
ALL : .example.com
telnetd : 192.168.25.0/255.255.255.0 EXCEPT 192.168.25.73
sshd, in.tftpd : 192.168.1.10

Why is it in.tftpd and not just tftpd? Can someone please explain?
Why it is not in.telnetd too instead of just telnetd?
 
Old 07-10-2008, 09:10 AM   #2
estabroo
Senior Member
 
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,126
Blog Entries: 2

Rep: Reputation: 124Reputation: 124
Well its actually the string the program is using in its wrapper check, if the program doesn't specify anything or you are using external wrappers then it defaults to the name of the program. So in this instance I'd guess your are using an external wrapper and your tftpd program is called in.tftpd.
 
Old 07-10-2008, 09:15 AM   #3
Fernandoch
Member
 
Registered: Mar 2002
Location: Spain
Distribution: Debian, Cent OS, RHEL
Posts: 119

Original Poster
Rep: Reputation: 15
Question

Sorry but I did not get you.

What do you mean by "the string the program is using in its wrapper check"?

How to know it should be that?

And what is an external wrapper? I am using tcp wrappers in CentOS 5.
 
Old 07-10-2008, 11:17 PM   #4
estabroo
Senior Member
 
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,126
Blog Entries: 2

Rep: Reputation: 124Reputation: 124
tcp wrappers provides both a library and a program

if programs use the tcpwrappers library they can set their wrapper string to something arbitrary, by wrapper string I mean the string you use in the host.deny host.allow files (this would be using the wrappers internally to the program).

if you use the program for tcp wrappers (usually tcpd) then the wrapper string is set to the name of the program you are wrapping.

The second example in the tcpd manpage gives an idea of the second usage (which I referred to as "using external wrappers").

finger stream tcp nowait nobody /usr/sbin/tcpd in.fingerd

In this instance you are tell tcpd to wrap the program in.fingerd so in hosts.deny hosts.allow you'll use in.fingerd

or in the third example:

ntalk dgram udp wait root /usr/sbin/tcpd /usr/local/lib/ntalkd

In that instance you'll use ntalkd in your hosts.deny hosts.allow files
 
Old 07-11-2008, 12:47 AM   #5
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
Quote:
Originally Posted by Fernandoch View Post
Why is it in.tftpd and not just tftpd? Can someone please explain?
Why it is not in.telnetd too instead of just telnetd?
Fernandoch,

These basic services were typically started by a master TCP listener/launcher program called "inetd", thus the in. prefix.

Some systems still use inetd, while many of today's Linux distributions typically use xinetd, a more modern replacement for inetd.

The idea is - rather than start all the services at boot time, start them only when a network connection is initiated. And once the network connection was terminated, inetd would terminate the service and go back to a listening state. This saved valuable system memory, but it had the downside of creating a delay before the service was ready to service a request.
 
Old 07-11-2008, 02:41 AM   #6
Fernandoch
Member
 
Registered: Mar 2002
Location: Spain
Distribution: Debian, Cent OS, RHEL
Posts: 119

Original Poster
Rep: Reputation: 15
Thank you to both of you for the clarification.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
IP tables or TCP wrappers ??? cyberbushi Linux - Networking 5 02-20-2008 12:02 PM
Tcp wrappers sysconfig Linux - Security 4 09-08-2006 08:20 AM
TCP Wrappers ? juanb Linux - Newbie 1 01-31-2004 01:35 PM
tcp wrappers --with-tcp-wrappers ForumKid Linux - Security 2 01-04-2002 04:01 PM
TCP Wrappers ltrain Linux - Security 6 05-31-2001 10:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration