Monitoring tor's bandwidth use.
Marcel
u-281 at gmx.net
Fri Jun 3 21:28:35 UTC 2005
* Matt McParland (mattmcp at gmail.com) wrote:
> I haven't found documentation on monitoring how much bandwidth tor is
> currently
> using or how much tor has transferred in a given time period. I can set
> limits in
> torrc but that's about it.
>
> How do I ask tor how much it's transferred today/this week/this month/ever?
>
> Is there a way to see what throughput my tor instance is doing?
>
> --
> Matt
I use ipac-ng for that purpose with the following rules:
~# grep tor /etc/ipac-ng/rules.conf
# tor (port 9000-9005 9030-9035)
server tor in|ipac~o|+|tcp|0/0|0/0 9001 9002 9003 9004 9005 9030 9031 9032
9033 9034 9035||
server tor in|ipac~fi|+|tcp|0/0|0/0 9001 9002 9003 9004 9005 9030 9031 9032
9033 9034 9035||
server tor out|ipac~i|+|tcp|0/0 9001 9002 9003 9004 9005 9030 9031 9032
9033 9034 9035|0/0||
# tor 9001 (port 9000-9005)
client tor in|ipac~o|+|tcp|0/0 9001 9002 9003 9004 9005 9030 9031 9032 9033
9034 9035|0/0||
client tor in|ipac~fi|+|tcp|0/0 9001 9002 9003 9004 9005 9030 9031 9032
9033 9034 9035|0/0||
client tor out|ipac~i|+|tcp|0/0|0/0 9001 9002 9003 9004 9005 9030 9031 9032
9033 9034 9035||
This creates constant monitoring with iptables and here is the result in a
5 mins interval:
IP accounting summary
Host: linux486 / Time created: 2005/06/03 17:12:07 EDT
Data from 2005/06/03 17:07:07 EDT to 2005/06/03 17:12:07 EDT
01 486 to internet : 7962648
02 internet to 486 : 8014212
client dns in : 2215
client dns out : 1176
client http in : 102572
client http out : 359072
client https in : 2018
client https out : 1432
client irc in : 32185
client irc out : 17460
client telnet in : 11710
client telnet out : 5310
client tor in : 511531
client tor out : 140705
server overnet in : 7085130
server overnet out : 5210614
server telnet in : 5310
server telnet out : 11710
server tor in : 240527
server tor out : 1763970
Ipac-ng is able to produce graphs but I prefer to use rrdtool. See the
example included.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: stor-day.png
Type: image/png
Size: 5716 bytes
Desc: not available
URL: <http://lists.torproject.org/pipermail/tor-talk/attachments/20050603/63f41d43/attachment.png>
More information about the tor-talk
mailing list