Xinetd

Joe Bielli jbielli at netsos.com
Fri Oct 12 17:16:43 EDT 2001


This is a multi-part message in MIME format.

------=_NextPart_000_000E_01C15341.AA0DDF20
Content-Type: text/plain;
	charset="US-ASCII"
Content-Transfer-Encoding: 7bit

Hey Ron,
 
Xinetd is basically no different than inetd. It can be figured out
easily by examining the defaults in /etc/xinetd.d 
 
To answer a few of your questions:
 
Xinetd is meant for calling programs up on a 'per-connection' basis.
I.e., ipop3d only starts up when someone hits port 110 on the system
(which xinetd is paying attention to). Sendmail, for example, can have a
process running constantly (running as a daemon, the default, sendmail
-bd) or be fired up only when its needed through xinetd.
 
Xinetd is not really an 'option', it's a daemon ;)  ..but things do not
-require- xinetd so long as they are their own daemon (i.e. constantly
running, waiting for connections). You can install anything you want, so
long as you are root. You can create a file in /etc/xinetd.d and xinetd
will see it. Just make sure you follow the basic format that the other
files use in there, and you will understand. Send xinetd a SIGUSR1 and
it will re-read the config files in /etc/xinetd.d.
 
iptables would determine whether or not traffic would be allowed in to
xinetd. (think like this, internet -> iptables -> xinetd . network
topology experts please don't flame) :-)
 
 
Joe Bielli
 
-----Original Message-----
From: owner-nflug at nflug.org [mailto:owner-nflug at nflug.org] On Behalf Of
Wechter, Ron
Sent: Friday, October 12, 2001 4:10 PM
To: nflug at nflug.org
Subject: Xinetd
 
Fellow LUGians, (hehehehe a little AC joke)
 
Does anyone know the in's and out's of Xinetd.  After I began digging
into Redhat 7.1 I noticed that inetd change to xinetd.  Granted it has
alot more features than inetd, I have found very little information on
Xinetd yet it is the basis for internet services on Redhat.
 
Main questions:
When do I use Xinetd and when does the service [daemon] (icecast, ssh,
and so on) even need to see Xinetd?
Is Xinetd an "option" to use and/or can one install and use a service
normally?
Does everything "have" to go through Xinetd in order to connect to the
linux box?
Where does Xinetd fall into the "flowchart" of network connections when
using Iptables?
If I would like to use Xinetd with a service, what requirements must the
service meet in order for it to work properly with Xinetd.  I assume
that the service must be Xinetd aware?
 
I hope someone can shed some light on this issue.
 
Two publications that I found:
http://www.macsecurity.org/resources/xinetd/tutorial.shtml (Mac AHHHH!)
http://www.linuxfocus.org/English/November2000/article175.shtml
 
Please do not respond with "I use Mandrake and it runs -- That's it" --
Thanks!
 
Sincerely,
Ronald K. Wechter
NRD Buffalo Assistant Systems Administrator
NRD Buffalo Webmaster
Navy Recruiting Department Buffalo
(716) 551-4901 
 

------=_NextPart_000_000E_01C15341.AA0DDF20
Content-Type: text/html;
	charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:st1=3D"urn:schemas-microsoft-com:office:smarttags" =
xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">


<meta name=3DProgId content=3DWord.Document>
<meta name=3DGenerator content=3D"Microsoft Word 10">
<meta name=3DOriginator content=3D"Microsoft Word 10">
<link rel=3DFile-List href=3D"cid:filelist.xml at 01C15341.A9D56A00">
<o:SmartTagType =
namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags"
 name=3D"time"/>
<o:SmartTagType =
namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags"
 name=3D"date"/>
<o:SmartTagType =
namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags"
 name=3D"City"/>
<o:SmartTagType =
namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags"
 name=3D"place"/>
<!--[if gte mso 9]><xml>
 <o:OfficeDocumentSettings>
  <o:DoNotRelyOnCSS/>
 </o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:WordDocument>
  <w:SpellingState>Clean</w:SpellingState>
  <w:GrammarState>Clean</w:GrammarState>
  <w:DocumentKind>DocumentEmail</w:DocumentKind>
  <w:EnvelopeVis/>
  <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
 </w:WordDocument>
</xml><![endif]--><!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:Wingdings;
	panose-1:5 0 0 0 0 0 0 0 0 0;
	mso-font-charset:2;
	mso-generic-font-family:auto;
	mso-font-pitch:variable;
	mso-font-signature:0 268435456 0 0 -2147483648 0;}
@font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;
	mso-font-charset:0;
	mso-generic-font-family:swiss;
	mso-font-pitch:variable;
	mso-font-signature:553679495 -2147483648 8 0 66047 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{mso-style-parent:"";
	margin:0in;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:12.0pt;
	font-family:"Times New Roman";
	mso-fareast-font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;
	text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
	{color:blue;
	text-decoration:underline;
	text-underline:single;}
p.MsoAutoSig, li.MsoAutoSig, div.MsoAutoSig
	{margin:0in;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:12.0pt;
	font-family:"Times New Roman";
	mso-fareast-font-family:"Times New Roman";}
p
	{mso-margin-top-alt:auto;
	margin-right:0in;
	mso-margin-bottom-alt:auto;
	margin-left:0in;
	mso-pagination:widow-orphan;
	font-size:12.0pt;
	font-family:"Times New Roman";
	mso-fareast-font-family:"Times New Roman";}
span.EmailStyle18
	{mso-style-type:personal-reply;
	mso-style-noshow:yes;
	mso-ansi-font-size:10.0pt;
	mso-bidi-font-size:10.0pt;
	font-family:Arial;
	mso-ascii-font-family:Arial;
	mso-hansi-font-family:Arial;
	mso-bidi-font-family:Arial;
	color:navy;}
span.SpellE
	{mso-style-name:"";
	mso-spl-e:yes;}
span.GramE
	{mso-style-name:"";
	mso-gram-e:yes;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;
	mso-header-margin:.5in;
	mso-footer-margin:.5in;
	mso-paper-source:0;}
div.Section1
	{page:Section1;}
-->
</style>
<!--[if gte mso 10]>
<style>
 /* Style Definitions */=20
 table.MsoNormalTable
	{mso-style-name:"Table Normal";
	mso-tstyle-rowband-size:0;
	mso-tstyle-colband-size:0;
	mso-style-noshow:yes;
	mso-style-parent:"";
	mso-padding-alt:0in 5.4pt 0in 5.4pt;
	mso-para-margin:0in;
	mso-para-margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	font-family:"Times New Roman";}
</style>
<![endif]-->
</head>

<body lang=3DEN-US link=3Dblue vlink=3Dblue style=3D'tab-interval:.5in'>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Hey =
Ron,<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><span class=3DSpellE><font size=3D2 color=3Dnavy =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>Xinetd</span></fo=
nt></span><font
size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial;
color:navy'> is basically no different than <span =
class=3DSpellE>inetd</span>. It
can be figured out easily by examining the defaults in /etc/<span =
class=3DSpellE>xinetd.d</span>
<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>To answer a few of your =
questions:<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><span class=3DSpellE><font size=3D2 color=3Dnavy =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>Xinetd</span></fo=
nt></span><font
size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial;
color:navy'> is meant for calling programs up on a =
&#8216;per-connection&#8217;
basis. I.e., ipop3d only starts up when someone hits port 110 on the =
system
(which <span class=3DSpellE>xinetd</span> is paying attention to). <span
class=3DSpellE>Sendmail</span>, for example, can have a process running
constantly (running as a daemon, the default, <span =
class=3DSpellE>sendmail</span>
-<span class=3DSpellE>bd</span>) or be fired up only when <span =
class=3DGramE>its</span>
needed through <span =
class=3DSpellE>xinetd</span>.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><span class=3DSpellE><font size=3D2 color=3Dnavy =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial;color:navy'>Xinetd</span></fo=
nt></span><font
size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial;
color:navy'> is not really an &#8216;option&#8217;, it&#8217;s a daemon =
;<span
class=3DGramE>)<span style=3D'mso-spacerun:yes'>&nbsp; =
</span>..but</span> things
do not &#8211;require- <span class=3DSpellE>xinetd</span> so long as =
they are
their own daemon (i.e. constantly running, waiting for connections). You =
can
install anything you want, so long as you are root. You can create a =
file in
/etc/<span class=3DSpellE>xinetd.d</span> and <span =
class=3DSpellE>xinetd</span>
will see it. Just make sure you follow the basic format that the other =
files
use in there, and you will understand. Send <span =
class=3DSpellE>xinetd</span> a
SIGUSR1 and it will re-read the <span class=3DSpellE>config</span> files =
in /etc/<span
class=3DSpellE>xinetd.d</span>.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><span class=3DSpellE><span class=3DGramE><font =
size=3D2
color=3Dnavy face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial;
color:navy'>iptables</span></font></span></span><font size=3D2 =
color=3Dnavy
face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial;color:navy'> would determine
whether or not traffic would be allowed in to <span =
class=3DSpellE>xinetd</span>.
(<span class=3DGramE>think</span> like this, internet -&gt; <span =
class=3DSpellE>iptables</span>
-&gt; <span class=3DSpellE>xinetd</span> &#8230; network topology =
experts please don&#8217;t
flame) </span></font><font size=3D2 color=3Dnavy face=3DWingdings><span
style=3D'font-size:10.0pt;font-family:Wingdings;mso-ascii-font-family:Ari=
al;
mso-hansi-font-family:Arial;mso-bidi-font-family:Arial;color:navy;mso-cha=
r-type:
symbol;mso-symbol-font-family:Wingdings'><span =
style=3D'mso-char-type:symbol;
mso-symbol-font-family:Wingdings'>J</span></span></font><font size=3D2
color=3Dnavy face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial;
color:navy'><o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div>

<p class=3DMsoNormal style=3D'mso-layout-grid-align:none'><font size=3D2 =
color=3Dnavy
face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier New";
color:navy;mso-no-proof:yes'>Joe Bielli<o:p></o:p></span></font></p>

</div>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DTahoma><span
style=3D'font-size:10.0pt;font-family:Tahoma'>-----Original =
Message-----<br>
<b><span style=3D'font-weight:bold'>From:</span></b> =
owner-nflug at nflug.org
[mailto:owner-nflug at nflug.org] <b><span style=3D'font-weight:bold'>On =
Behalf Of </span></b>Wechter,
Ron<br>
<b><span style=3D'font-weight:bold'>Sent:</span></b> =
</span></font><st1:date
Month=3D"10" Day=3D"12" Year=3D"2001"><font size=3D2 face=3DTahoma><span
 style=3D'font-size:10.0pt;font-family:Tahoma'>Friday, October 12, =
2001</span></font></st1:date><font
size=3D2 face=3DTahoma><span =
style=3D'font-size:10.0pt;font-family:Tahoma'> </span></font><st1:time
Hour=3D"16" Minute=3D"10"><font size=3D2 face=3DTahoma><span =
style=3D'font-size:10.0pt;
 font-family:Tahoma'>4:10 PM</span></font></st1:time><font size=3D2 =
face=3DTahoma><span
style=3D'font-size:10.0pt;font-family:Tahoma'><br>
<b><span style=3D'font-weight:bold'>To:</span></b> nflug at nflug.org<br>
<b><span style=3D'font-weight:bold'>Subject:</span></b> =
Xinetd</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D3 =
face=3D"Times New Roman"><span
style=3D'font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<div>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>Fellow LUGians, (hehehehe a =
little
AC joke)</span></font><o:p></o:p></p>

</div>

<div>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D3 =
face=3D"Times New Roman"><span
style=3D'font-size:12.0pt'>&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>Does anyone know the in's =
and out's
of Xinetd.&nbsp; After I began digging into Redhat 7.1 I noticed that =
inetd
change to xinetd.&nbsp; Granted it has alot more features than inetd, I =
have
found very little information on Xinetd yet it is the basis for internet
services on Redhat.</span></font><o:p></o:p></p>

</div>

<div>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D3 =
face=3D"Times New Roman"><span
style=3D'font-size:12.0pt'>&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>Main =
questions:</span></font><o:p></o:p></p>

</div>

<div>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>When do I use Xinetd and =
when does
the service [daemon]&nbsp;(icecast, ssh, and so on) even need to see =
Xinetd?</span></font><o:p></o:p></p>

</div>

<div>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>Is Xinetd an =
&quot;option&quot; to
use and/or can one install and use a service =
normally?</span></font><o:p></o:p></p>

</div>

<div>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>Does everything =
&quot;have&quot; to
go through Xinetd in order to connect to the linux =
box?</span></font><o:p></o:p></p>

</div>

<div>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>Where does Xinetd fall into =
the
&quot;flowchart&quot; of network connections when using =
Iptables?</span></font><o:p></o:p></p>

</div>

<div>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>If I would like to use =
Xinetd with a
service, what requirements must the service meet in order for it to work
properly with Xinetd.&nbsp; I assume that the service must be Xinetd =
aware?</span></font><o:p></o:p></p>

</div>

<div>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D3 =
face=3D"Times New Roman"><span
style=3D'font-size:12.0pt'>&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>I hope someone can shed =
some light
on this issue.</span></font><o:p></o:p></p>

</div>

<div>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D3 =
face=3D"Times New Roman"><span
style=3D'font-size:12.0pt'>&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>Two publications that I =
found:</span></font><o:p></o:p></p>

</div>

<div>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'><a
href=3D"http://www.macsecurity.org/resources/xinetd/tutorial.shtml">http:=
//www.macsecurity.org/resources/xinetd/tutorial.shtml</a>
(Mac AHHHH!)</span></font><o:p></o:p></p>

</div>

<div>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'><a
href=3D"http://www.linuxfocus.org/English/November2000/article175.shtml">=
http://www.linuxfocus.org/English/November2000/article175.shtml</a></span=
></font><o:p></o:p></p>

</div>

<div>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D3 =
face=3D"Times New Roman"><span
style=3D'font-size:12.0pt'>&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>Please do not respond with =
&quot;I
use Mandrake and it runs -- That's it&quot; -- =
Thanks!</span></font><o:p></o:p></p>

</div>

<div>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D3 =
face=3D"Times New Roman"><span
style=3D'font-size:12.0pt'>&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
face=3DArial><span
style=3D'font-size:10.0pt;font-family:Arial'>Sincerely,</span></font><o:p=
></o:p></p>

</div>

<p style=3D'margin-left:.5in'><b><font size=3D3 face=3D"Times New =
Roman"><span
style=3D'font-size:12.0pt;font-weight:bold'>Ronald K. =
Wechter</span></font></b><br>
<i><font size=3D2><span style=3D'font-size:10.0pt;font-style:italic'>NRD =
</span></font></i><st1:City><st1:place><i><font
  size=3D2><span =
style=3D'font-size:10.0pt;font-style:italic'>Buffalo</span></font></i></s=
t1:place></st1:City><i><font
size=3D2><span style=3D'font-size:10.0pt;font-style:italic'> Assistant =
Systems
Administrator</span></font><br>
</i><i><font size=3D2><span =
style=3D'font-size:10.0pt;font-style:italic'>NRD =
</span></font></i><st1:City><st1:place><i><font
  size=3D2><span =
style=3D'font-size:10.0pt;font-style:italic'>Buffalo</span></font></i></s=
t1:place></st1:City><i><font
size=3D2><span style=3D'font-size:10.0pt;font-style:italic'> =
Webmaster</span></font></i><br>
<font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:10.0pt;font-family:
Arial;color:navy'>Navy Recruiting Department =
</span></font><st1:City><st1:place><font
  size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:10.0pt;font-family:Arial;
  color:navy'>Buffalo</span></font></st1:place></st1:City><br>
<font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:10.0pt;font-family:
Arial;color:navy'>(716) 551-4901</span></font> <o:p></o:p></p>

<div>

<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D3 =
face=3D"Times New Roman"><span
style=3D'font-size:12.0pt'>&nbsp;<o:p></o:p></span></font></p>

</div>

</div>

</body>

</html>

------=_NextPart_000_000E_01C15341.AA0DDF20--



More information about the nflug mailing list