7
5
I want each packet (that match iptables rule) to be delayed by some fixed time interval. How to to this?
Preudocode: iptables -A INPUT -p udp <more conditions> -j DELAY --delay 50000 # delay UDP packets for 50 milliseconds
Update: @related Simulating a low-bandwidth, high-latency network connection on Linux
Why? Testing purposes? – Shinrai – 2010-08-09T22:23:22.570
Yes, testing/debugging. Actually
tc qdisc add dev eth1 root netem delay 250ms
helped. – Vi. – 2010-08-12T09:51:03.737