<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    On 01/09/2013 08:07 AM, James wrote:
    <blockquote cite="mid:023601cdee72$ab3852d0$01a8f870$@slor.net"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <meta name="Generator" content="Microsoft Word 14 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal">Is there a simple way in BlueOnyx to
          auto-block hosts that fail to login via SSH too many times? 
          Something similar to the Failed Logins settings for the
          BlueOnyx login page but for SSH?<o:p></o:p></p>
      </div>
    </blockquote>
    I use catches attacks in real times, below uses 8 attempts in 60
    seconds, of course you can change those parameters<br>
    <br>
    <br>
    /sbin/iptables -A INPUT -i eth0 -p tcp --dport 22 -m state --state
    NEW -m recent --set --name SSH<br>
    <br>
    /sbin/iptables -A INPUT -i eth0 -p tcp --dport 22 -m state --state
    NEW -m recent --update --seconds 60 --hitcount 8 --rttl --name SSH
    -j DROP<br>
    <br>
    --<br>
    Gerald<br>
  </body>
</html>