Clarification on limiting tor bandwidth

I have read over the article on limiting tor bandwidth and just want to make sure my understanding is correct. I have a relay running with 5TB of traffic allowed per month (combining the upload and download).

The example for days says:

Example: Let’s say you want to allow 50 GB of traffic every day in each direction and the accounting should reset at noon each day:

    AccountingStart day 12:00
    AccountingMax 50 GBytes

In my case, I want to allow 5TB combined over the entire month. Should my torrc look like this? I am assuming that the ‘month’ flag just starts on the first of each month, and that my inbound and outbound traffic is going to be roughly even:

    AccountingStart Month 12:00
    AccountingMax 2500 GBytes
    # or would it be AccountingMax 5000 GBytes?

it is a way to do what you want, though i’d probably set to month 00:00 unless you have a specific reason to start at mid-day

You may also enjoy using AccountingRule sum, which is a builtin way to handle this kind of “combined” limit. You can read more about the Accounting*configuration options by running man tor, and searching (/) for these options

2 Likes

Awesome, thanks for the man page tip!

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.