流控服务
git clone https://gitee.com/esong-network_1/easytraffic-control.git
cd easytraffic-control && chmod a+x *.sh && ./install.sh
systemctl start easytraffic-control
curl --location --request POST 'http://ip:81/add'
--header 'Content-Type: application/json'
--data-raw '{
"nic":"eth1",
"port":1010,
"bandwidth":10,
"duration":15
}'
curl --location --request GET 'http://ip:81/del'
--header 'Content-Type: application/json'
--data-raw '{
"nic":"eth1",
"port":1010,
"bandwidth":10,
"duration":15
}'
nic: 网卡设备
port: 端口
bandwidth: 带宽
duration: 突发时长