This script sets a delay on network traffic to a specific IP address using the tc command in Linux.
$ ./delay_ip.sh <interface> <ip-address> <delay>
Example:
$ ./delay_ip.sh eth0 192.168.1.1 10ms
Use the --off or -o option to reset the delay:
$ ./delay_ip.sh --off
interface: The network interface name to apply the delay toip-address: The IP address to apply the delay todelay: The delay time to apply to the traffic (in ms or s)
This script requires the tc command to be installed on the Linux system.
This script is released under the MIT License.