Apple menu -> System Preferences -> Security & Privacy -> Firewall
sudo pfctl -e
sudo dnctl pipe 1 config bw 10Kbit/s
sudo dnctl pipe 2 config bw 10Kbit/s
# The second will overwrite first. If you want to set both, use next example
echo "dummynet in all pipe 1" |sudo pfctl -f -
echo "dummynet out all pipe 2" |sudo pfctl -f -
echo $'dummynet in all pipe 2\n dummynet out all pipe 1' |sudo pfctl -f -
echo $'dummynet in all from any to example.com pipe 2\n dummynet out all from any to example.com pipe 1' |sudo pfctl -f -
echo $'block in proto tcp from jrxncdkk2ls00000.m2.exosite.io to any' |sudo pfctl -f -
sudo dnctl -q flush
sudo pfctl -f /etc/pf.conf
sudo pfctl -d
sudo pfctl -sa
https://spin.atomicobject.com/2016/01/05/simulating-poor-network-connectivity-mac-osx/
thanks a lot! it helps so much