使用libnetfilter hook iptable,在本地进行延时或丢包,用于模拟 安装 apt-get install build-essential python-dev libnetfilter-queue-dev pip install -r requirements.txt 使用 开启iptable iptables.sh start 8080 运行 iptable.py --drop --latency 清除iptable iptables.sh stop