Ethical Hacking Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package. | Computer Forensics Training at InfoSec Institute Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors. |

| Subject: | Re: Advice on dealing with scripted SSH attacks? |
|---|---|
| Date: | Tue, 4 Apr 2006 14:54:06 -0700 (PDT) |
I've seen a number of iptables rules with this basic idea, but they don't actually tell the difference between bad and good connections (I confirmed with Jeff that this was the case here). This means a self-inflicted denial of service is possible (maybe even probable depending on your environment). Before deploying an iptables rule that does this, you should check your logs and make sure you don't have legitimate traffic with that sort of frequency. As an example from one server I manage, here's a sanitized log excerpt showing a single user making six legitimate connections within one minute (I know they're legit because I know the user). I'm nearly certain this is from either web editing or file transfer software that speaks SSH, but isn't smart enough to transfer files in a single connection.
-A INPUT -s ###.###.###.### -p tcp -m tcp --dport 22 -j ACCEPT
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | not preserving timestamps, Scott D. Anderson |
|---|---|
| Next by Date: | Re: Advice on dealing with scripted SSH attacks?, seren . thompson |
| Previous by Thread: | Re: Advice on dealing with scripted SSH attacks?, Shane Williams |
| Next by Thread: | Re: Advice on dealing with scripted SSH attacks?, seren . thompson |
| Indexes: | [Date] [Thread] [Top] [All Lists] |