Tor: Accounting?

Serverdienste ohne eigene Kategorie
chris2000
Posts: 54
Joined: 2002-08-21 21:33

Tor: Accounting?

Post by chris2000 »

Hallo,

TOR unterstützt Traffic-Begrenzung. Kann man irgendwie auslesen, wieviel Traffic er bereits verbraucht hat? Ich vermute, man müsste BWHistoryWriteValues und BWHistoryReadValues aus /var/lib/tor/state aufaddieren? Gibt's da auch eine fertige Funktion dazu?

Danke.


Stichwörter für Suche: Onion Router, TOR

User avatar
Joe User
Project Manager
Project Manager
Posts: 11137
Joined: 2003-02-27 01:00
Location: Hamburg

Re: Tor: Accounting?

Post by Joe User »

https://www.torproject.org/tor-manual.html.en wrote: DataDirectory/state
A set of persistent key-value mappings. These are documented in the file. These include:

- The current entry guards and their status.
- The current bandwidth accounting values (unused so far; see below).
- When the file was last written
- What version of Tor generated the state file
- A short history of bandwidth usage, as produced in the router descriptors.

DataDirectory/bw_accounting
Used to track bandwidth accounting values (when the current period starts and ends; how much has been read and written so far this period). This file is obsolete, and the data is now stored in the 'state' file as well. Only used when bandwidth accounting is enabled.
Demnach liegst Du richtig mit Deiner Vermutung. Das Addieren der beiden Werte sollte ja kein Problem sein...
Last edited by Joe User on 2010-01-20 20:58, edited 1 time in total.
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.

chris2000
Posts: 54
Joined: 2002-08-21 21:33

Re: Tor: Accounting?

Post by chris2000 »

Ok. Ich dachte vielleicht hat sich jemand schon ein elegantes Auswerte-Script, auch über mehrere Perioden, geschrieben. Wenn nicht werde ich das mal machen...