From: ha do <haloha201@yahoo.com>
To: netfilter@vger.kernel.org
Subject: Help!!! iptables hashlimit
Date: Wed, 14 Jul 2010 01:03:34 -0700 (PDT) [thread overview]
Message-ID: <4694.23493.qm@web32402.mail.mud.yahoo.com> (raw)
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
next reply other threads:[~2010-07-14 8:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-14 8:03 ha do [this message]
2010-07-14 8:39 ` Help!!! iptables hashlimit Curby
2010-07-14 9:39 ` ha do
2010-07-14 16:26 ` Jan Engelhardt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4694.23493.qm@web32402.mail.mud.yahoo.com \
--to=haloha201@yahoo.com \
--cc=netfilter@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox