<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: Red Hat / Centos Install Denyhosts To Block SSH Attacks / Hacking</title> <atom:link href="http://www.cyberciti.biz/faq/rhel-linux-block-ssh-dictionary-brute-force-attacks/feed/" rel="self" type="application/rss+xml" /><link>http://www.cyberciti.biz/faq/rhel-linux-block-ssh-dictionary-brute-force-attacks/</link> <description>Every answer asks a more beautiful question.</description> <lastBuildDate>Fri, 10 Feb 2012 19:55:56 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: Steve Dibb</title><link>http://www.cyberciti.biz/faq/rhel-linux-block-ssh-dictionary-brute-force-attacks/#comment-62829</link> <dc:creator>Steve Dibb</dc:creator> <pubDate>Mon, 26 Sep 2011 16:52:37 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=4717#comment-62829</guid> <description>You can avoid that by adding your IP address to /etc/hosts.allow.
ALL: 1.2.3.4</description> <content:encoded><![CDATA[<p>You can avoid that by adding your IP address to /etc/hosts.allow.</p><p>ALL: 1.2.3.4</p> ]]></content:encoded> </item> <item><title>By: Marty</title><link>http://www.cyberciti.biz/faq/rhel-linux-block-ssh-dictionary-brute-force-attacks/#comment-62296</link> <dc:creator>Marty</dc:creator> <pubDate>Fri, 09 Sep 2011 17:34:08 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=4717#comment-62296</guid> <description>thanks it worked i&#039;m a newbe so all the help i get from most of you guys is great again thanks</description> <content:encoded><![CDATA[<p>thanks it worked i&#8217;m a newbe so all the help i get from most of you guys is great again thanks</p> ]]></content:encoded> </item> <item><title>By: poly1</title><link>http://www.cyberciti.biz/faq/rhel-linux-block-ssh-dictionary-brute-force-attacks/#comment-57591</link> <dc:creator>poly1</dc:creator> <pubDate>Sat, 23 Apr 2011 06:45:01 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=4717#comment-57591</guid> <description>Just an fyi on this, BE CAREFUL. I Installed the RPMforge release, did the tutorial, added my IP to the hosts.allow file and restarted the service. It worked fine for a few minutes, but as soon as I disconnected and reconnected to my server it blacklisted my IP. I can still connect via FTP, but not as root, and SFTP/ssh are completely blocked. it&#039;s done this several times. I did some Googling and it seems like this is happening to other people as well. It&#039;s not a big deal if you have physical access to your server, but I&#039;m renting a VPS, so I guess this means I&#039;m calling my host :(</description> <content:encoded><![CDATA[<p>Just an fyi on this, BE CAREFUL. I Installed the RPMforge release, did the tutorial, added my IP to the hosts.allow file and restarted the service. It worked fine for a few minutes, but as soon as I disconnected and reconnected to my server it blacklisted my IP. I can still connect via FTP, but not as root, and SFTP/ssh are completely blocked. it&#8217;s done this several times. I did some Googling and it seems like this is happening to other people as well. It&#8217;s not a big deal if you have physical access to your server, but I&#8217;m renting a VPS, so I guess this means I&#8217;m calling my host :(</p> ]]></content:encoded> </item> <item><title>By: Linux newbie</title><link>http://www.cyberciti.biz/faq/rhel-linux-block-ssh-dictionary-brute-force-attacks/#comment-50650</link> <dc:creator>Linux newbie</dc:creator> <pubDate>Wed, 10 Nov 2010 11:39:37 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=4717#comment-50650</guid> <description>Thanks for walk through and subsequent comments.  Just made my server a little more secure :-)</description> <content:encoded><![CDATA[<p>Thanks for walk through and subsequent comments.  Just made my server a little more secure :-)</p> ]]></content:encoded> </item> <item><title>By: Nick Maxwell</title><link>http://www.cyberciti.biz/faq/rhel-linux-block-ssh-dictionary-brute-force-attacks/#comment-50104</link> <dc:creator>Nick Maxwell</dc:creator> <pubDate>Thu, 14 Oct 2010 14:29:28 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=4717#comment-50104</guid> <description>The article at http://www.ossec.net/main/attacking-log-analysis-tools is worth following.
It appears that the patch is not currently available for denyhosts to stop a DoS attack using remote log injection. The solution though is a simple fix - from the article, change the /usr/lib/python2.4/site-packages/DenyHosts/regex.py
From
&lt;code&gt;FAILED_ENTRY_REGEX5 = re.compile(r&quot;&quot;&quot;User (?P.*) .*from (?P.*) not allowed because none of user&#039;s groups are listed in AllowGroups&quot;&quot;&quot;) &lt;/code&gt;
To
&lt;code&gt;FAILED_ENTRY_REGEX5 = re.compile(r&quot;&quot;&quot;User (?P.*) .*from (?P.*) not allowed because none of user&#039;s groups are listed in AllowGroups$&quot;&quot;&quot;)&lt;/code&gt;</description> <content:encoded><![CDATA[<p>The article at <a
href="http://www.ossec.net/main/attacking-log-analysis-tools" rel="nofollow">http://www.ossec.net/main/attacking-log-analysis-tools</a> is worth following.</p><p>It appears that the patch is not currently available for denyhosts to stop a DoS attack using remote log injection. The solution though is a simple fix &#8211; from the article, change the /usr/lib/python2.4/site-packages/DenyHosts/regex.py</p><p>From<br
/> <code>FAILED_ENTRY_REGEX5 = re.compile(r"""User (?P.*) .*from (?P.*) not allowed because none of user's groups are listed in AllowGroups""") </code></p><p>To<br
/> <code>FAILED_ENTRY_REGEX5 = re.compile(r"""User (?P.*) .*from (?P.*) not allowed because none of user's groups are listed in AllowGroups$""")</code></p> ]]></content:encoded> </item> <item><title>By: John Lindley</title><link>http://www.cyberciti.biz/faq/rhel-linux-block-ssh-dictionary-brute-force-attacks/#comment-49974</link> <dc:creator>John Lindley</dc:creator> <pubDate>Thu, 07 Oct 2010 15:03:54 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=4717#comment-49974</guid> <description>The links have changed:
&lt;pre&gt;
rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.5.1-1.el5.rf.i386.rpm
rpm -Uhv http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.1-1.el5.rf.x86_64.rpm
&lt;/pre&gt;</description> <content:encoded><![CDATA[<p>The links have changed:</p><pre>
rpm -Uhv <a href="http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.5.1-1.el5.rf.i386.rpm" rel="nofollow">http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.5.1-1.el5.rf.i386.rpm</a>
rpm -Uhv <a href="http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.1-1.el5.rf.x86_64.rpm" rel="nofollow">http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.1-1.el5.rf.x86_64.rpm</a>
</pre>]]></content:encoded> </item> <item><title>By: jeffatrackaid</title><link>http://www.cyberciti.biz/faq/rhel-linux-block-ssh-dictionary-brute-force-attacks/#comment-45710</link> <dc:creator>jeffatrackaid</dc:creator> <pubDate>Thu, 28 Jan 2010 01:15:39 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/faq/?p=4717#comment-45710</guid> <description>DenyHosts is subject to log based attacks.  See http://www.ossec.net/main/attacking-log-analysis-tools for more info.
I prefer to use &lt;a href=&quot;http://www.rackaid.com/resources/how-to-block-ssh-brute-force-attacks/&quot; rel=&quot;nofollow&quot;&gt;rate limiting SSH rules&lt;/a&gt; to block SSH attacks.</description> <content:encoded><![CDATA[<p>DenyHosts is subject to log based attacks.  See <a
href="http://www.ossec.net/main/attacking-log-analysis-tools" rel="nofollow">http://www.ossec.net/main/attacking-log-analysis-tools</a> for more info.</p><p>I prefer to use <a
href="http://www.rackaid.com/resources/how-to-block-ssh-brute-force-attacks/" rel="nofollow">rate limiting SSH rules</a> to block SSH attacks.</p> ]]></content:encoded> </item> </channel> </rss>
