iptables limit mach not work correctly

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

My network is like this 
comp_A (192.168.1.1 )
-----cross---comp_B(192.168.1.20)

I implemented next rules ( just testing now ) on
comp_B

iptables -A INPUT  -p icmp --icmp-type echo-reply   -j
ACCEPT
iptables -A INPUT -p icmp --icmp-type echo-request \
         -m limit --limit 1/s -i eth0 -j ACCEPT
iptables -A INPUT -p tcp --syn -m limit --limit 1/s -i
eth0 -j ACCEPT

This should limit echo-requestes on one per second on
comp_B.
Then I opened 4 consoles on comp_A and issued ping
192.168.1.20 on all of them, and I got response for
every icmp packet.

Should above rules block all icpm requests, and accept
only one per second?

Did I forgot something? There is no any other iptables
rules on  comp_B.

Thanks in advance.

Regards


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux