Welcome to Soft32 Linux Forums!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Iptables: Recent update with hitcount

 
   Soft32 Home -> Linux -> General Discussions RSS
Next:  Accepted expect 5.43.0-18 (source i386)  
Author Message
Tanja Kalies

External


Since: Aug 03, 2009
Posts: 1



(Msg. 1) Posted: Mon Aug 03, 2009 9:20 am
Post subject: Iptables: Recent update with hitcount
Archived from groups: alt>os>linux>debian (more info?)

Hello together,

I would like to stop unauthorized attempts to log on my sshd server via
the following IPtables rule:

iptables -I INPUT -p tcp --dport 22 -i eth0 -m state --state NEW -m
recent --set
iptables -I INPUT -p tcp --dport 22 -i eth0 -m state --state NEW -m
recent --update --seconds 60 --hitcount 4 -j DROP


As far as I understand iptables, it should generate a timer that drops
new connection attemps as long as there are 4 attempts within 60 seconds.

But when I try from an external ip, I can try to connect as often as I
want and don't get dropped Sad

Is there anything wrong with the syntax?
Thanks for any help!
Tanja
Back to top
Login to vote
Display posts from previous:   
Related Topics:
printer - is brother better than hp for debian? i want all in one.

printer - all in one is brother better easier than hp to run?

How to download youtube video into Adobe Premiere - How to download youtube video into Adobe Premiere I like to lounge around online and youtube is my favorite. Sometimes...

[gentoo-user] XV locks up X server after recent update - After an update a coule days ago, any attempt to use the XV extension (xine, mplayer, etc.) locks up the X server hard....

GITWEB branch shortlog broken after recent update on kerne.. - Ever since gitweb on kernel.org was recently updated, I've been experiencing a nasty bug -- It seems that it is no..

iptables v1.2.11: can't initialize iptables table `filter'.. - base: RedHat9 kernel: 2.6.13 (i know that newer version are around, shouldn't be relevant here) iptables: 1.2.11..
       Soft32 Home -> Linux -> General Discussions All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Categories:
 Windows
  Linux
 Mac
 PDA


[ Contact us | Terms of Service/Privacy Policy ]