denyhosts<br>will do the job for you!<br><br>:) <br>regards,<br>Guillermo.<br><br><br><div><span class="gmail_quote">On 7/18/06, <b class="gmail_sendername">Michael Yep</b> &lt;<a href="mailto:myep@remotelink.com">myep@remotelink.com
</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I have heard of this method, but I thought it was better to stop them at
<br>the firewall level. right?<br><br>Guillermo Garron wrote:<br>&gt; If what you want to do is to block offending IPs, let's say IPs who<br>&gt; try to hack your systems, you would better use<br>&gt;<br>&gt; denyhosts<br>
&gt;<br>&gt; yum install denyhosts<br>&gt; vi /etc/denyhosts.conf<br>&gt;<br>&gt; It will automatically put the offending IPs on the /etc/hosts.deny for<br>&gt; some time (you can configure that time)<br>&gt;<br>&gt;<br>&gt; :)
<br>&gt; regards,<br>&gt; Guillermo.<br>&gt;<br>&gt;<br>&gt; On 7/18/06, *David Cary Hart* &lt;<a href="mailto:Fedora@tqmcube.com">Fedora@tqmcube.com</a><br>&gt; &lt;mailto:<a href="mailto:Fedora@tqmcube.com">Fedora@tqmcube.com
</a>&gt;&gt; wrote:<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; On Tue, 18 Jul 2006 14:24:56 -0500, Michael Yep<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;<a href="mailto:myep@remotelink.com">myep@remotelink.com</a> &lt;mailto:<a href="mailto:myep@remotelink.com">myep@remotelink.com
</a>&gt;&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; opined:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; Hello<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; I know that the preferred way of controlling access is to use<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; whitelists, but for my case I'd like to use IP blacklisting.
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; Now using a script like<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; #!/bin/bash<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; if [ -f badips.txt ]<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; then<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; for BAD_IP in `cat badips.txt`<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; do<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; iptables -A INPUT -s $BAD_IP -j DROP
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; done<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; else<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; echo &quot;Can't read badips.txt&quot;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; fi<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; I have like 96 banned IPs so far. I am wondering about the possible
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; performance hit on my system, and the limits of iptables.<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; What if I have thousands?<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; At some point it affects performance. There are some workarounds.<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; What problem are you trying to solve? What causes you to block an IP?
<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; --<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Do NOT Send Email to &lt;spam trap&gt; Fedora@TQMcube,com<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Our DNSRBL - Eliminate Spam at The Source: <a href="http://www.TQMcube.com">http://www.TQMcube.com</a><br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Don't Subsidize Criminals: 
<a href="http://boulderpledge.org">http://boulderpledge.org</a><br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; --<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; fedora-list mailing list<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; <a href="mailto:fedora-list@redhat.com">fedora-list@redhat.com</a> &lt;mailto:<a href="mailto:fedora-list@redhat.com">
fedora-list@redhat.com</a>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; To unsubscribe: <a href="https://www.redhat.com/mailman/listinfo/fedora-list">https://www.redhat.com/mailman/listinfo/fedora-list</a><br>&gt;<br>&gt;<br><br>--<br>Michael Yep<br>
Development / Technical Operations<br>RemoteLink, Inc.<br>26W161 Plank Rd<br>Naperville, IL 60563-3422<br>Website: <a href="http://www.remotelink.com">www.remotelink.com</a><br>Direct: 800-362-9446 x164<br>Fax: 630-983-0364
<br>GPG Key 0x126439D9<br><br>Your Link to Effective Business Communications!<br>Specializing in telecommunications and Internet technology. If it helps connect you with your customers, remote employees and colleagues we do it. We put you in control of today's technology.&nbsp;&nbsp;From Teleconferencing, WebConferencing, Auto Attendant and Broadcast messaging to Custom data collection, ecommerce, CTI and IVR services.
<br><br>--<br>fedora-list mailing list<br><a href="mailto:fedora-list@redhat.com">fedora-list@redhat.com</a><br>To unsubscribe: <a href="https://www.redhat.com/mailman/listinfo/fedora-list">https://www.redhat.com/mailman/listinfo/fedora-list
</a><br></blockquote></div><br>