<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Snort Rule to Block Repeated SSH Attempt?]]></title><description><![CDATA[<p dir="auto">I have an SSH host within my network that needs to be exposed to the Internet for legitimate purposes. Unfortunately using public-key auth or changing the SSH port to non-standard isn't an option right now. The passwords are secure, but I'm looking to stop the repeated dictionary attacks using a Snort rule.</p>
<p dir="auto">I was surprised a Snort rule didn't already seem to exist to block x number of attempts from IP y in a timeframe z.</p>
<p dir="auto">I haven't ever written Snort rules… does anyone have any idea how such a rule would be written?</p>
<p dir="auto">Thanks!</p>
]]></description><link>https://forum.netgate.com/topic/44560/snort-rule-to-block-repeated-ssh-attempt</link><generator>RSS for Node</generator><lastBuildDate>Tue, 14 Jul 2026 22:02:38 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/44560.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 02 May 2012 12:43:22 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Snort Rule to Block Repeated SSH Attempt? on Thu, 03 May 2012 03:00:56 GMT]]></title><description><![CDATA[<p dir="auto">If you create a wan rule and limit the number o connections per second. If external ip exceeds the value you defined, it will be blocked for about 02 hours by pfsense.<br />
You can check blocked ips on diagnosts -&gt; tables.</p>
]]></description><link>https://forum.netgate.com/post/334328</link><guid isPermaLink="true">https://forum.netgate.com/post/334328</guid><dc:creator><![CDATA[marcelloc]]></dc:creator><pubDate>Thu, 03 May 2012 03:00:56 GMT</pubDate></item><item><title><![CDATA[Reply to Snort Rule to Block Repeated SSH Attempt? on Thu, 03 May 2012 02:42:03 GMT]]></title><description><![CDATA[<p dir="auto">So I did find a rule in emerging-scan.rules, but it wasn't catching these particular dictionary attacks. I modified it to remove the requirements of the SYN and both reserved TCP flags, and to lower the threshold from 5 attempts in 60 seconds to 3 attempts in 300 seconds. We'll see if it works tomorrow. :)</p>
]]></description><link>https://forum.netgate.com/post/334324</link><guid isPermaLink="true">https://forum.netgate.com/post/334324</guid><dc:creator><![CDATA[yottabit]]></dc:creator><pubDate>Thu, 03 May 2012 02:42:03 GMT</pubDate></item></channel></rss>