On Wed, Dec 23, 2020 at 05:47:11AM -0800, tontu wrote:
I recently acquired a server with "unlimited" (not unmetered) bandwidth on a non-Hetzner/OVH/Scaleway network, but the pipe is just 100mbit (and will be saturated at some points by personal traffic bursts). That being said, I expect the 100mbit pipe to be idle 90% of the time, so it doesn't seem ideal to just set a low BandwidthRate.
The documentation [1] for relay bandwidth shaping options points to a script to de-prioritize Tor traffic to ensure that personal traffic takes precedence.
However, the script no longer exists within Tor source code. [2] Is this script now deprecated? If not, where can I find it? If so, what alternative methods might exist to de-prioritize Tor traffic during bursts from personal traffic pipes on Linux or BSD systems?
It looks like yes, we removed it: https://gitlab.torproject.org/tpo/core/tor/-/issues/29434 https://lists.torproject.org/pipermail/tor-relays/2019-February/016995.html
So it definitely counts as deprecated, in the sense that nobody maintained it for a long time and then somebody deleted it. :)
But that said, I bet it would still work, or at the very least, it would be a good set of hints for how to write a new one. If you do write an updated one, please share it here.
You can find a copy in earlier git branches, e.g.: https://gitweb.torproject.org/tor.git/plain/contrib/operator-tools/linux-tor...
Hope this helps! --Roger