Networking Forums

Networking Forums > Computer Networking > Linux Networking > ssh prevent scanning

Reply
Thread Tools Display Modes

ssh prevent scanning

 
 
cmk128@hotmail.com
Guest
Posts: n/a

 
      02-19-2007, 01:10 PM
Hi
Someone is guesting the password for ssh. How can i board his IP if
he fail the password over a few times?
thanks
from Peter ((E-Mail Removed))

 
Reply With Quote
 
 
 
 
J. Sommers
Guest
Posts: n/a

 
      02-19-2007, 03:43 PM
On Mon, 19 Feb 2007 06:10:37 -0800, cmk128 wrote:

> Hi
> Someone is guesting the password for ssh. How can i board his IP if
> he fail the password over a few times?
> thanks
> from Peter ((E-Mail Removed))



This what I use - no-one is allowed more than 3 login attempts within
any 25 second interval.

iptables -A INPUT -p tcp --dport 22 -i eth0 -m state --state NEW \
-m recent --set
iptables -A INPUT -p tcp --dport 22 -i eth0 -m state --state NEW \
-m recent --update --seconds 25 --hitcount 4 -j DROP
 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Port scanning RWB Home Networking 0 01-31-2011 10:40 PM
cannot see an AccessPoint when scanning markryde@gmail.com Linux Networking 2 01-18-2009 08:40 PM
Switch Scanning Adam Linux Networking 4 09-21-2005 10:31 AM
iwlist scanning Alexander Sirotkin Linux Networking 1 08-29-2004 04:07 PM
Scanning for networks My father's son Wireless Internet 5 09-12-2003 06:52 PM



1 2 3 4 5 6 7 8 9 10 11