LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   tor in bridge mode: traffic? (https://www.linuxquestions.org/questions/linux-server-73/tor-in-bridge-mode-traffic-4175431735/)

Kropotkin 10-11-2012 03:19 PM

tor in bridge mode: traffic?
 
Hi all,

As a Public Service, I've installed tor on my VPS and configured it in bridge mode. I see these lines at the end of /var/log/tor:
Code:

Oct 11 15:02:10.213 [notice] Tor has successfully opened a circuit. Looks like client functionality is working.
Oct 11 15:02:10.213 [notice] Bootstrapped 100%: Done.
Oct 11 15:02:10.213 [notice] Now checking whether ORPort ###,###,###,###:9001 is reachable... (this may take up to 20 minutes -- look for log messages indicating success)
Oct 11 15:04:06.492 [notice] Self-testing indicates your ORPort is reachable from the outside. Excellent. Publishing server descriptor.
Oct 11 15:05:10.225 [notice] Performing bandwidth self-test...done.

But then nothing. Just nothing.

Is it now working? What kind of bandwidth is it using? I see from the tor man page the default bandwidth setting is 5MB/s, which could be too high for my VPS, but is there anyone of determining what is actually going on?

Also, I am a math retard: what does 5MB/s work out to on a monthly basis? I try to do the arithmetic and come out at an impossibly high number. My VPS has a bandwidth quota of 250G/month, so I need to work backwards from there.

TIA

NyteOwl 10-12-2012 12:22 PM

Lack of activity may be dues to the fact the node just hasn't been used in a circuit yet. Not all nodes are in use all the time.

As for the traffic rates:

Now 250GB/month works out to

250GB = 250 x 1024 MB = 256000 MB
1month = 30days x 24hours x 60minutes x 60seconds = 2592000 seconds

Doing a little division we get a sustained available transfer rate of 0.0988 MB/s (rounded)
or 101.14 KB/s.

If you don't want TOR to use up all available transfer in a short period then a careful reading of the Bandwidth settings in the manual under General Options will help you tailor the node to fit your account. https://www.torproject.org/docs/tor-manual-dev.html.en

You can see the importance of throttling the bandwidth from tehgraph here http://www.darkcoding.net/society/ru...ver-on-ubuntu/

The TOR project recommends a minimum of 30 KB/s so you are well above that (if not up to the default they'd like to have).

Kropotkin 10-13-2012 01:41 PM

Thanks for the very helpful reply. I've configured tor to use around half my bandwidth; that will leave me more than enough.

Kropotkin 11-25-2012 11:10 AM

Quick followup: A couple of days ago I updated Tor to version 0.2.3.25, and bandwidth info is now logged in /var/log/tor. Sample line:
Code:

Nov 25 16:38:33.000 [notice] Heartbeat: Tor's uptime is 2 days 0:00 hours, with 2 circuits open. I've sent 5.33 MB and received 28.36 MB.
Very helpful!

Since I am not using Tor myself, just letting it run in bridge mode, I would have thought send and receive amounts would be equal, but that is another matter.


All times are GMT -5. The time now is 10:20 AM.