All of lore.kernel.org
 help / color / mirror / Atom feed
From: 김윤기 <ykkim@trinitysoft.co.kr>
To: netfilter@vger.kernel.org
Subject: why iptables can't match multiple modules(tcp, hashlimit)
Date: Fri, 5 Aug 2011 11:35:19 +0900	[thread overview]
Message-ID: <CAG=80zjwdBvm+RUhda_Jzr+VkZ-te8iANNKngsnx74mcPr+sRQ@mail.gmail.com> (raw)

hi
i have problem about iptables.

my system(fedora13 kernel 2.6.38.8) and iptables(v1.4.11.1) can't
match multiple extended modules(-m tcp, -m hashlimit)
iptables rule is following line
  iptables -t mangle -A PREROUTING -p tcp -m tcp --dport 80
--tcp-flags SYN SYN \
  -m hashlimit --hashlimit-above 10/sec --hashlimit-burst 500
--hashlimit-mode srcip \
  --hashlimit-name Syn_Svc1 -j DROP

test packets is generated by following command(generate 50 HTTP Syn
packets per second, while 10 secs)
# hping -n 192.168.2.222 -i u20000 -p 80 -S -c 500

[Env]
hping(192.168.2.1)  <-->  iptable system(192.168.2.200) <--> web
server(192.168.2.222)

I can see the following result
iptables -t mangle -nvL PREROUTING
Chain PREROUTING (policy ACCEPT 1519 packets, 62760 bytes)
 pkts bytes target  prot opt in out  source  destination
     0        0  DROP  tcp  --  *   *   0.0.0.0/0 0.0.0.0/0      tcp
dpt:80 tcpflags: 0x02/0x02 limit: above 10/sec burst 500 mode srcip

Sometimes, detect some, but not exact
But another system(fedora 13, kernel 2.6.33.3-85) have detected exactly
I don’t know the difference between two systems.
(diff “sysctl -a result” and lsmod)

why iptable can’t match multiple modules?
What’s wrong? What should do I ?

Help me!!
I’ll give any data what you want to see.

thx

                 reply	other threads:[~2011-08-05  2:35 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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='CAG=80zjwdBvm+RUhda_Jzr+VkZ-te8iANNKngsnx74mcPr+sRQ@mail.gmail.com' \
    --to=ykkim@trinitysoft.co.kr \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.