Question: Rate Limiting using Kali (a) i like to see iptables rules involving -m limit to allow only 8 TCP connection attempts per minute to ports

Rate Limiting using Kali

(a) i like to see iptables rules involving -m limit to allow only 8 TCP connection attempts per minute to ports 80 or 443.

Then, from another host to send 20 SYNs per minute to these ports. A small script may be required to achieve this.


i'll like to see this iptables rule(s) in such a way that the extra packets are logged in the file /var/log/tcpsyns with a suitable message, and dropped. As part of this, look up the "limit burst" and add this to your -m limit rule (use man iptables).


(b) Rate Limiting using hitcount/recent

Use the 'hitcount/recent' approach to achieve part (a).



Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Computer Network Questions!