<2017-10-26 Thu>
Here some dummynet
usages on Mac.
Configure Bandwidth
-
Create pipe with bandwidth, redirect packets to the pipe
sudo dnctl pipe 1 config bw 1Kbit/s echo "dummynet out proto tcp from any to wordpress.org pipe 1" |sudo pfctl -f -
-
Enable if not
sudo pfctl -e
-
do download and watch the speed
wget -O /dev/null wordpress.org/latest.zip #=> ... 3.02KB/s ...
-
Adjust the bandwitch on fly and watch the speed
sudo dnctl pipe 1 config bw 10Kbit/s #=> ... 61.0KB/s ...
-
Reset and disable
sudo pfctl -f /etc/pf.conf sudo pfctl -d