You can consider accounting.
It limits the monthly traffic to the value you set in the torrc fille.
I use this for one Exit i run on a VPS in malaysia.
Gesendet: Montag, 23. März 2020 um 19:23 Uhr
Von: "Nuno Rego" <tugaon...@tuta.io>
An: tor-relays@lists.torproject.org
Betreff: Re: [tor-relays] Dirport9030
Von: "Nuno Rego" <tugaon...@tuta.io>
An: tor-relays@lists.torproject.org
Betreff: Re: [tor-relays] Dirport9030
OK thank you. I'm going to do some tests and see the results.
Cumprimentos;
Nuno
--
Securely sent with Tutanota. Get your own encrypted, ad-free mailbox:
Mar 23, 2020, 07:47 by a...@torproject.org:
On Sun, Mar 22, 2020 at 05:16:27PM +0100, Nuno Rego wrote:As I said, I'm still learning. I have a server at Hetzner with a monthly limit of 20TB, and I am trying to adjust the speed so that it does not exceed 20TB at the end of the month. The problem is that whenever I place the BandwidthRate and BandwidthBurst above 10MB I lose the Guard, HSdir and V2Dir flags. On the page https://metrics.torproject.org/rs.html#search/TugaOnion I see that DirPort is 0 instead of 9030. I have the BandwidthRate and BandwidthBurst at 9MB and everything is fine, but I will reach the end of the month and I only spent about 10TB.Check your logs. They likely say something like"Not advertising DirPort (Reason: AccountingMax enabled)"So your relay is indeed opening the DirPort, but it is opting to leave itout of the descriptor that it publishes (i.e. not mention it to anybody),in order to save its limited bandwidth for more important traffic.You can read more about the design here:Your options include:(A) Leave your BandwidthRate at 9MBytes, but crank up your BandwidthBurstsuper high so the rate limiting rarely actually kicks in. In theory thebandwidth authority measurers should decide that you're really quitefast compared to the other relays that claim 9MBytes/s, and assign youmore traffic. (I say 'in theory' because the bwauths are a source ofmuch randomness and chaos these days, so it is easy to describe what wehope they will do, but harder to predict what they will actually do. :)(B) Turn both your BandwidthRate and BandwidthBurst way up, so that youuse a lot of traffic even only in the 'middle hop' spot. It's hard tosay how this one will work out in practice, but in theory (there's thatphrase again) the bwauths should recognize that you can handle a lot ofload as a middle hop, and direct more traffic to you there.(C) Sit back, relax, and be pleased that you're offering 10TBytes/moto the network.All of these are valid directions to go in, I would say.Thanks!--Roger_______________________________________________tor-relays mailing listtor-relays@lists.torproject.org
_______________________________________________ tor-relays mailing list tor-relays@lists.torproject.org https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays