Hi, I somehow scrambled some command line magic in order to throttle only outgoing PORT 443. That way only Photos (and maybe other uploads you use from the browser?) get throttled. I needed this so that the throttling does not interfere with time machine backups and other stuff.
** DO THIS AT YOUR OWN RISK **
First step:
Edit the file /etc/pf.conf (might need administrator privileges. Remember to back up!!) and add this at the very end (you can change "com.pda" to something else if you want):
# com.pda icloud throttling
dummynet-anchor "com.pda"
anchor "com.pda"
Second step:
Create a new file called "dummynet" (you can change the name as well), and put it somewhere safe (i.e. /Users/<youruser>/) That new file must have this single line:
dummynet out quick proto tcp from any to any port 443 pipe 1
Third step:
Create a new file called "port443throttle.sh" with these contents, and put it somewhere safe (i.e. /Users/<your username>/):
#/bin/bash
sudo dnctl -f flush
sudo pfctl -f /etc/pf.conf
sudo pfctl -a com.pda -f /Users/<your username>/dummynet
# Change 3Mbit/s to whatever you like, its the maximum upload speed setting
sudo dnctl pipe 1 config bw 3Mbit/s
sudo pfctl -e
Fourth step:
Do this on terminal:
sudo chmod +x /Users/<your username>/port443throttle.sh
sudo /Users/<your username>/port443throttle.sh
Terminal will ask for your administrator password. Done!
Disable max upload speed:
If you want to revert changes for a while, you just have to do this in terminal:
sudo dnctl pipe 1 config bw 0
Disable the pipe throttling:
Just revert the changes on pf.conf and do this on terminal:
sudo dnctl -f flush
sudo pfctl -f /etc/pf.conf
Good luck!