sudo ipfw pipe 1 config bw 15KByte/s #设置带宽
sudo ipfw add 1 pipe 1 src-port 80
sudo ipfw add 1 pipe 1 dst-port 80
sudo ipfw delete 1 #删除限速策略
sudo ipfw pipe 1 config bw 15KByte/s #设置带宽
sudo ipfw add 1 pipe 1 src-port 80
sudo ipfw add 1 pipe 1 dst-port 80
sudo ipfw delete 1 #删除限速策略
转载于:https://www.cnblogs.com/weiok/p/4912115.html