Stop connection with IP after X packets

Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
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 ?
networking iptables
add a comment |Â
up vote
0
down vote
favorite
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 ?
networking iptables
2
You need to provide more information of what you are trying to do. tshark does not stop communication it is recording it. Which communication would you like to stop?
â Winnie Tigger
Jun 15 at 5:38
You can surely do something tinkering with the connbytes match. For the 2nd part, same advice as Winnie Tigger.tcmight be used to add latency, but latency and speed isn't the same depending on how the communication is done.
â A.B
Jun 18 at 23:46
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
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 ?
networking iptables
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 ?
networking iptables
asked Jun 15 at 4:32
bob dylan
117119
117119
2
You need to provide more information of what you are trying to do. tshark does not stop communication it is recording it. Which communication would you like to stop?
â Winnie Tigger
Jun 15 at 5:38
You can surely do something tinkering with the connbytes match. For the 2nd part, same advice as Winnie Tigger.tcmight be used to add latency, but latency and speed isn't the same depending on how the communication is done.
â A.B
Jun 18 at 23:46
add a comment |Â
2
You need to provide more information of what you are trying to do. tshark does not stop communication it is recording it. Which communication would you like to stop?
â Winnie Tigger
Jun 15 at 5:38
You can surely do something tinkering with the connbytes match. For the 2nd part, same advice as Winnie Tigger.tcmight be used to add latency, but latency and speed isn't the same depending on how the communication is done.
â A.B
Jun 18 at 23:46
2
2
You need to provide more information of what you are trying to do. tshark does not stop communication it is recording it. Which communication would you like to stop?
â Winnie Tigger
Jun 15 at 5:38
You need to provide more information of what you are trying to do. tshark does not stop communication it is recording it. Which communication would you like to stop?
â Winnie Tigger
Jun 15 at 5:38
You can surely do something tinkering with the connbytes match. For the 2nd part, same advice as Winnie Tigger.
tc might be used to add latency, but latency and speed isn't the same depending on how the communication is done.â A.B
Jun 18 at 23:46
You can surely do something tinkering with the connbytes match. For the 2nd part, same advice as Winnie Tigger.
tc might be used to add latency, but latency and speed isn't the same depending on how the communication is done.â A.B
Jun 18 at 23:46
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f449935%2fstop-connection-with-ip-after-x-packets%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
2
You need to provide more information of what you are trying to do. tshark does not stop communication it is recording it. Which communication would you like to stop?
â Winnie Tigger
Jun 15 at 5:38
You can surely do something tinkering with the connbytes match. For the 2nd part, same advice as Winnie Tigger.
tcmight be used to add latency, but latency and speed isn't the same depending on how the communication is done.â A.B
Jun 18 at 23:46