iampastor / python-iptable

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

使用libnetfilter hook iptable,在本地进行延时或丢包,用于模拟

安装

  1. apt-get install build-essential python-dev libnetfilter-queue-dev
  2. pip install -r requirements.txt

使用

  1. 开启iptable iptables.sh start 8080
  2. 运行 iptable.py --drop --latency
  3. 清除iptable iptables.sh stop

About


Languages

Language:Python 93.4%Language:Shell 6.6%