<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>You can consider accounting.</div>

<div>It limits the monthly traffic to the value you set in the torrc fille.</div>

<div> </div>

<div>I use this for one Exit i run on a VPS in malaysia.</div>

<div> 
<div> 
<div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="margin:0 0 10px 0;"><b>Gesendet:</b> Montag, 23. März 2020 um 19:23 Uhr<br/>
<b>Von:</b> "Nuno Rego" <tugaonion@tuta.io><br/>
<b>An:</b> tor-relays@lists.torproject.org<br/>
<b>Betreff:</b> Re: [tor-relays] Dirport9030</div>

<div name="quoted-content">
<div><span><span title="">OK thank you.</span> <span title="">I'm going to do some tests and see the results.</span> </span></div>

<div> </div>

<div>Cumprimentos;</div>

<div>Nuno</div>

<div> </div>

<div>--</div>

<div>Securely sent with Tutanota. Get your own encrypted, ad-free mailbox:</div>

<div><a href="https://tutanota.com" target="_blank">https://tutanota.com</a></div>

<div> </div>

<div> </div>

<div> </div>

<div>Mar 23, 2020, 07:47 by arma@torproject.org:</div>

<blockquote class="tutanota_quote" style="border-left: 1.0px solid rgb(147,163,184);padding-left: 10.0px;margin-left: 5.0px;">
<div>On Sun, Mar 22, 2020 at 05:16:27PM +0100, Nuno Rego wrote:</div>

<blockquote>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.</blockquote>

<div> </div>

<div>Check your logs. They likely say something like</div>

<div> </div>

<div>"Not advertising DirPort (Reason: AccountingMax enabled)"</div>

<div> </div>

<div>So your relay is indeed opening the DirPort, but it is opting to leave it</div>

<div>out of the descriptor that it publishes (i.e. not mention it to anybody),</div>

<div>in order to save its limited bandwidth for more important traffic.</div>

<div> </div>

<div>You can read more about the design here:</div>

<div><a href="https://gitweb.torproject.org/tor.git/tree/src/feature/relay/router.c?h=tor-0.4.2.7#n1199" target="_blank">https://gitweb.torproject.org/tor.git/tree/src/feature/relay/router.c?h=tor-0.4.2.7#n1199</a></div>

<div> </div>

<div>Your options include:</div>

<div> </div>

<div>(A) Leave your BandwidthRate at 9MBytes, but crank up your BandwidthBurst</div>

<div>super high so the rate limiting rarely actually kicks in. In theory the</div>

<div>bandwidth authority measurers should decide that you're really quite</div>

<div>fast compared to the other relays that claim 9MBytes/s, and assign you</div>

<div>more traffic. (I say 'in theory' because the bwauths are a source of</div>

<div>much randomness and chaos these days, so it is easy to describe what we</div>

<div>hope they will do, but harder to predict what they will actually do. :)</div>

<div> </div>

<div>(B) Turn both your BandwidthRate and BandwidthBurst way up, so that you</div>

<div>use a lot of traffic even only in the 'middle hop' spot. It's hard to</div>

<div>say how this one will work out in practice, but in theory (there's that</div>

<div>phrase again) the bwauths should recognize that you can handle a lot of</div>

<div>load as a middle hop, and direct more traffic to you there.</div>

<div> </div>

<div>(C) Sit back, relax, and be pleased that you're offering 10TBytes/mo</div>

<div>to the network.</div>

<div> </div>

<div>All of these are valid directions to go in, I would say.</div>

<div> </div>

<div>Thanks!</div>

<div>--Roger</div>

<div> </div>

<div>_______________________________________________</div>

<div>tor-relays mailing list</div>

<div>tor-relays@lists.torproject.org</div>

<div><a href="https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays" target="_blank">https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays</a></div>
</blockquote>

<div> </div>
_______________________________________________ tor-relays mailing list tor-relays@lists.torproject.org <a href="https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays" target="_blank">https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays</a></div>
</div>
</div>
</div></div></body></html>