All of lore.kernel.org
 help / color / mirror / Atom feed
* why iptables can't match multiple modules(tcp, hashlimit)
@ 2011-08-05  2:35 김윤기
  0 siblings, 0 replies; only message in thread
From: 김윤기 @ 2011-08-05  2:35 UTC (permalink / raw)
  To: netfilter

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-08-05  2:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-05  2:35 why iptables can't match multiple modules(tcp, hashlimit) 김윤기

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.