Linux Netfilter discussions
 help / color / mirror / Atom feed
* Help!!! iptables hashlimit
@ 2010-07-14  8:03 ha do
  2010-07-14  8:39 ` Curby
  2010-07-14 16:26 ` Jan Engelhardt
  0 siblings, 2 replies; 4+ messages in thread
From: ha do @ 2010-07-14  8:03 UTC (permalink / raw)
  To: netfilter

hi all

i just setup the hashlimit for SIP REGISTER on iptables and the rule is:
-A  INPUT -p udp -i eth0 --dport 5060 -m hashlimit --hashlimit 1/minute  
--hashlimit-burst 2 --hashlimit-mode srcip,srcport  --hashlimit-name  "cucku" -m 
string --string "REGISTER sip:" --algo bm --to 80 -j ACCEPT

so   from my understand the IPTABLES will let 2 REGSITER packets per minute
so when i use the xlite to  send the RESGISTER message , the first REGISTER 
packet is accepted but  the seconds REGISTER packet is blocked by iptables

[root@centos  ~]# uname -a
Linux centos 2.6.18-128.el5PAE  #1 SMP Wed Jan 21 11:19:46  EST 2009 i686 i686 
i386 GNU/Linux

i want the iptables just to  accept 2 REGISTER packets per minute on per IP 
address:port
please  help

Thank  you


      

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-07-14 16:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-14  8:03 Help!!! iptables hashlimit ha do
2010-07-14  8:39 ` Curby
2010-07-14  9:39   ` ha do
2010-07-14 16:26 ` Jan Engelhardt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox