#StackBounty: #networking #linux #iptables #packet Stop connection with IP after X packets

Bounty: 50

There is a communication between my machine and a server (10 packets), and i’m trying to control it packet by packet. How can I stop all communication after x packets ? (1-9 in my case)

I tried to use tshark -c 2 host xxx.xxx.xxx.xxx and then cut the communication but it is too slow and let some packets through.

Additionally, is it possible to slow down this communication drastically, let’s say to 1 packet per second ?


Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.