<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=blue>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>To make the TCP Wrappers active you must
as –miah stated link it to the deamon. Example allow:<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><application/daemon> : <ip
address> : allow<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>vsftpd : x.x.x.x : allow<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>You could also put a deny all at the end
of the hosts.allow list instead of using the hosts.deny file since the
hosts.allow file is applied before hosts.deny<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>vsftpd : ALL : deny<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>--good luck<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> rhn-users-bounces@redhat.com
[mailto:rhn-users-bounces@redhat.com] <b><span style='font-weight:bold'>On
Behalf Of </span></b>x6d696168 .<br>
<b><span style='font-weight:bold'>Sent:</span></b> Tuesday, March 28, 2006 4:02
PM<br>
<b><span style='font-weight:bold'>To:</span></b> Red Hat Network Users List<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [rhn-users] I need
help with hosts.deny - doesn't work asIexpected</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>No, thats wrong.<br>
<br>
TCP Wrappers only protects programs that are linked against libwrap. 
Xinetd provides a similar filtering functionality, but it doesn't require
tcpwrappers, but it only protects applications running via xinetd. 
IPtables is the best way to go, since its kernel based and can handle anything
you throw at it, and doesn't require tcpwrappers, or xinetd since it sits above
them.<br>
<br>
-miah<o:p></o:p></span></font></p>

<div>

<p class=MsoNormal><span class=gmailquote><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>On 3/28/06, <b><span style='font-weight:bold'>Kvetch</span></b>
<<a href="mailto:kvetch@gmail.com">kvetch@gmail.com</a>> wrote:</span></font></span><o:p></o:p></p>

<div>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>try testing using an IP
you have access to.<br>
You can log attempts by doing something like this in your wrappers<br>
ALL:  <a href="http://219.106.229.178" target="_blank">219.106.229.178</a>
: spawn /bin/echo `/bin/date` access denied>>/var/log/messages : deny<br>
<br>
I haven't done this in a while so you might want to do a google on logging tcp
wrappers<br>
If this doesn't give you what you want you might try using iptables, since
wrappers only protects against services under xinetd. <br>
<br>
Nick Baronian<br>
<br>
<br>
<o:p></o:p></span></font></p>

<div>

<p class=MsoNormal><span class=gmailquote><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>On 3/28/06, <b><span style='font-weight:bold'>Bill
Watson</span></b> <<a href="mailto:bill@magicdigits.com" target="_blank">
bill@magicdigits.com</a>> wrote:</span></font></span> <o:p></o:p></p>

<div>

<div>

<p class=MsoNormal><font size=4 color=blue face=Tahoma><span style='font-size:
13.5pt;font-family:Tahoma;color:blue'>I did a:</span></font><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=4 color=blue face=Tahoma><span style='font-size:
13.5pt;font-family:Tahoma;color:blue'>service vsftpd stop</span></font><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=4 color=blue face=Tahoma><span style='font-size:
13.5pt;font-family:Tahoma;color:blue'>service vsftpd start</span></font><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=4 color=blue face=Tahoma><span style='font-size:
13.5pt;font-family:Tahoma;color:blue'>and the non-stop hacking on vsftpd
stopped. Could be one of 2 things, either this solved my problem permanently,
or stopping the service for a few seconds caused his automatic hack program to
hang. Dunno which for now, nor know how to tell which did it. Is stuff nuked by
hosts.deny logged somewhere?</span></font><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=4 color=blue face=Tahoma><span style='font-size:
13.5pt;font-family:Tahoma;color:blue'>Thanks for you help!</span></font><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><font size=4 color=blue face=Tahoma><span style='font-size:
13.5pt;font-family:Tahoma;color:blue'>Bill</span></font><o:p></o:p></p>

</div>

<blockquote style='margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt'>

<div>

<p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma'>-----Original Message----- <br>
<b><span style='font-weight:bold'>From:</span></b> <a
href="mailto:rhn-users-bounces@redhat.com" target="_blank">rhn-users-bounces@redhat.com</a>
[mailto:<a href="mailto:rhn-users-bounces@redhat.com" target="_blank">
rhn-users-bounces@redhat.com</a>] <b><span style='font-weight:bold'>On Behalf
Of </span></b>Kvetch</span></font><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal style='margin-bottom:12.0pt'><b><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma;font-weight:bold'>Sent:</span></font></b><font
size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> Tuesday,
March 28, 2006 11:26 AM<br>
<b><span style='font-weight:bold'>To:</span></b> Red Hat Network Users List<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [rhn-users] I need
help with hosts.deny - doesn't work asIexpected</span></font><o:p></o:p></p>

</div>

</blockquote>

</div>

<div>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>tcp wrappers are
automatic and no service needs restarting.  Try restarting vsftd then try
again.<br>
If you have nothing in your hosts.allow and in your hosts.deny you have<br>
<br>
ALL:  <a href="http://219.106.229.178/" target="_blank">219.106.229.178</a><br>
ALL:<u>  </u><a href="http://72.129.200.46/" target="_blank">72.129.200.46</a><br>
ALL:  200.38.<br>
ALL:  64.182.<br>
<br>
It should block them.<br>
Can you retest?<br>
Nick Baronian<br>
<br>
<o:p></o:p></span></font></p>

<div>

<p class=MsoNormal><span class=gmailquote><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>On 3/28/06, <b><span style='font-weight:bold'>Bill
Watson</span></b> <<a href="mailto:bill@magicdigits.com" target="_blank">bill@magicdigits.com</a>>
wrote:</span></font></span> <o:p></o:p></p>

<div>

<div>

<p class=MsoNormal><font size=4 color=blue face=Tahoma><span style='font-size:
13.5pt;font-family:Tahoma;color:blue'>Yes I do have tcp_wrappers=YES in
vsftpd.conf</span></font><o:p></o:p></p>

</div>

</div>

<div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=4 color=blue face=Tahoma><span style='font-size:
13.5pt;font-family:Tahoma;color:blue'>Bill</span></font><o:p></o:p></p>

</div>

</div>

<div>

<blockquote style='margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt'>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma'>-----Original Message-----<br>
<b><span style='font-weight:bold'>From:</span></b> <a
href="mailto:rhn-users-bounces@redhat.com" target="_blank">rhn-users-bounces@redhat.com</a>
[mailto:<a href="mailto:rhn-users-bounces@redhat.com" target="_blank">
rhn-users-bounces@redhat.com</a>] <b><span style='font-weight:bold'>On Behalf
Of </span></b>Kvetch<br>
<b><span style='font-weight:bold'>Sent:</span></b> Tuesday, March 28, 2006
10:56 AM<br>
<b><span style='font-weight:bold'>To:</span></b> Red Hat Network Users List<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [rhn-users] I need help
with hosts.deny - doesn't work as Iexpected</span></font><o:p></o:p></p>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>Do you have <br>
tcp_wrappers=YES<br>
in your vsftpd.conf?<br>
<br>
Nick Baronian<o:p></o:p></span></font></p>

<div>

<p class=MsoNormal><span class=gmailquote><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>On 3/28/06, <b><span style='font-weight:bold'>Bill
Watson</span></b> <<a href="mailto:bill@magicdigits.com" target="_blank">bill@magicdigits.com
</a>> wrote:</span></font></span> <o:p></o:p></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>I have /etc/hosts.allow that has no entries. I have /etc/hosts.deny
that <br>
has:<br>
<br>
ALL: <a href="http://219.106.229.178" target="_blank">219.106.229.178</a><br>
ALL: <a href="http://72.129.200.46" target="_blank">72.129.200.46</a><br>
ALL: 200.38.<br>
ALL: 64.182.<br>
<br>
>From my readings, I should not be getting any messages from 200.38.x.x, yet<br>
my /var/log/messages shows:<br>
Mar 28 10:50:36 helmethouse vsftpd(pam_unix)[23790]: check pass; user<br>
unknown<br>
Mar 28 10:50:36 helmethouse vsftpd(pam_unix)[23790]: authentication failure;<br>
log<br>
name= uid=0 euid=0 tty= ruser= rhost=<a href="http://200.38.16.6"
target="_blank">200.38.16.6</a><br>
Mar 28 10:50:40 helmethouse vsftpd(pam_unix)[23790]: check pass; user<br>
unknown<br>
Mar 28 10:50:40 helmethouse vsftpd(pam_unix)[23790]: authentication failure; <br>
log<br>
name= uid=0 euid=0 tty= ruser= rhost=<a href="http://200.38.16.6"
target="_blank">200.38.16.6</a><br>
<br>
And keeps going with a new entry every few seconds.<br>
<br>
Is /etc/hosts.deny properly set up?<br>
Is /etc/hosts.deny immediately active or must some service be restarted to <br>
make it go?<br>
Does vsftpd bypass /etc/hosts.deny?<br>
<br>
Thanks!<br>
Bill Watson<br>
<a href="mailto:bill@magicdigits.com" target="_blank">bill@magicdigits.com</a><br>
<br>
<br>
_______________________________________________ <br>
rhn-users mailing list <br>
<a href="mailto:rhn-users@redhat.com" target="_blank">rhn-users@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/rhn-users" target="_blank">https://www.redhat.com/mailman/listinfo/rhn-users</a><o:p></o:p></span></font></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>

</blockquote>

</div>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'><br>
_______________________________________________<br>
rhn-users mailing list<br>
<a href="mailto:rhn-users@redhat.com" target="_blank">rhn-users@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/rhn-users" target="_blank">https://www.redhat.com/mailman/listinfo/rhn-users</a><o:p></o:p></span></font></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>

</div>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'><br>
_______________________________________________<br>
rhn-users mailing list<br>
<a href="mailto:rhn-users@redhat.com" target="_blank">rhn-users@redhat.com</a> <br>
<a href="https://www.redhat.com/mailman/listinfo/rhn-users" target="_blank">https://www.redhat.com/mailman/listinfo/rhn-users</a><o:p></o:p></span></font></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>

</div>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'><br>
_______________________________________________<br>
rhn-users mailing list<br>
<a href="mailto:rhn-users@redhat.com">rhn-users@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/rhn-users" target="_blank">https://www.redhat.com/mailman/listinfo/rhn-users</a><o:p></o:p></span></font></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>

</div>

</body>

<!--[object_id=#neoaccel.com#]--><FONT face=Tahoma size=2><FONT color=#0000ff>
<P class=disclaimer align=left>This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. </P>
<P class=disclaimer align=left>NeoAccel, Inc., 2055 Gateway Place #240, San Jose, CA. 95110 (408) 436-1000</P></FONT></FONT></html>