I realize that rsync uses port 22 as its destination port (as I use -e SSH to encrypt my channel), but then, as I would expect, the source port seems to be a random numbered port well above 1000. I would like to not rate limit it using the --bwlimit=LIMIT flag but instead specify local transfer port the connection establishes. Then using my router, automatically lower the transfer priority of all packets with that SRC port. Hopefully making it not slow down my normal web activities on other ports while its transferring.
I already know how to set the QoS on my router, I just need to know how to force a source port for Rsync. And I already know about the --port=PORT option, but that sets the DST port, not the SRC port on the packets... I guess the real question is this: is there any way to specify source port for just rsync NOT for all ssh connections. Anyone have any ideas?
host:pathaddresses. – grawity Apr 7 '11 at 18:19