Hi,
I have 100mbit Up/Down connection at home. Most of the day, my connection is not use. Mostly between 22:00-17:00.
I would like to share my Internet connection for Tor. If I will setup some crontabs to start/stop my tor relay between that hours, will it work ? Does it make sense ? Will TOR network know that my relay is working only between 22:00 and 17:00 and will push some more traffic to me ?
How to properly configure such a relay which is working only for a few hours per day ?
Cheers
Zalezny
https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=icon Virus-free. www.avast.com https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=link <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
Hi Zalezny,
On 11/06/17 15:29, Zalezny Niezalezny wrote:
Hi,
I have 100mbit Up/Down connection at home. Most of the day, my connection is not use. Mostly between 22:00-17:00.
I would like to share my Internet connection for Tor. If I will setup some crontabs to start/stop my tor relay between that hours, will it work ? Does it make sense ? Will TOR network know that my relay is working only between 22:00 and 17:00 and will push some more traffic to me ?
How to properly configure such a relay which is working only for a few hours per day ?
Rather than starting & killing Tor with crontabs, I think you can use AccountingStart and AccountingMax config settings to achieve this.
https://www.torproject.org/docs/tor-manual-dev.html.en
That way you can get Tor to *start* at the right time (with AccountingStart) - the only issue I can see is getting it to stop at the right time.
AccountingMax will stop Tor when the number of *bytes* has been reached, so if your line was being used flat out, this would be easy to calculate based on the your line's data rate.
You might need to have a play with a low AccountingMax setting and see what happens. When you first launch a relay it won't get much traffic but it will gradually increase over the coming weeks.
Cheers,
Paul
Hi,
thanks for Your reply.
I thought about it, the best solution for me will be to change Bandwith settings during working hours using crontab.
I will prepare two separate configuration files with different Bandwidth settings and using it, two times per day cronjob will increase/decrease bandwith for TOR. This should be the best solution in that case.
ok , if I will replace configuration file with the new settings, do I need to reload or restart my tor node ? I do not want to loose my active connections. How to do it properly ?
Cheers
Zalezny
https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=icon Virus-free. www.avast.com https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=link <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
On Sun, Jun 11, 2017 at 7:55 AM, Paul M Furley paul@paulfurley.com wrote:
Hi Zalezny,
On 11/06/17 15:29, Zalezny Niezalezny wrote:
Hi,
I have 100mbit Up/Down connection at home. Most of the day, my connection is not use. Mostly between 22:00-17:00.
I would like to share my Internet connection for Tor. If I will setup some crontabs to start/stop my tor relay between that hours, will it work ? Does it make sense ? Will TOR network know that my relay is working only between 22:00 and 17:00 and will push some more traffic to
me ?
How to properly configure such a relay which is working only for a few hours per day ?
Rather than starting & killing Tor with crontabs, I think you can use AccountingStart and AccountingMax config settings to achieve this.
https://www.torproject.org/docs/tor-manual-dev.html.en
That way you can get Tor to *start* at the right time (with AccountingStart) - the only issue I can see is getting it to stop at the right time.
AccountingMax will stop Tor when the number of *bytes* has been reached, so if your line was being used flat out, this would be easy to calculate based on the your line's data rate.
You might need to have a play with a low AccountingMax setting and see what happens. When you first launch a relay it won't get much traffic but it will gradually increase over the coming weeks.
Cheers,
Paul
tor-relays mailing list tor-relays@lists.torproject.org https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays
Hello
How to properly configure such a relay which is working only for a few hours per day ?
If it matters, I, for one, start tor in the morning with the laptop, and it lasts all day, until evening. In average, that's about 12~14 hours/day, give or take, during which I share (a relay) with 2.5/5 MBytes traffic (the RelayBandwidthXXX settings).
Vlad
On Sun, 11 Jun 2017 09:00:48 -0700 Zalezny Niezalezny zalezny.niezalezny@gmail.com wrote:
I thought about it, the best solution for me will be to change Bandwith settings during working hours using crontab.
I will prepare two separate configuration files with different Bandwidth settings and using it, two times per day cronjob will increase/decrease bandwith for TOR. This should be the best solution in that case.
ok , if I will replace configuration file with the new settings, do I need to reload or restart my tor node ? I do not want to loose my active connections. How to do it properly ?
Yes this can work. A tor reload is enough to apply the new bandwidth settings.
Not sure how fast you will ramp up during the night though (if at all), e.g. if the bandwidth authorities measure your relay during the day and get a very low number.
Not sure how fast you will ramp up during the night though (if at all), e.g. if the bandwidth authorities measure your relay during the day and get a very low number.
For me, now it takes one-two hours to reach its full potential, but in the beginning it might take a week or more (given the same day-cycle running) to get there. I am running this for half a year, though, but the same happened >2 years ago when I lost the files with the previous relay.
Vlad
On Sun, Jun 11, 2017 at 09:00:48AM -0700, Zalezny Niezalezny wrote:
ok , if I will replace configuration file with the new settings, do I need to reload or restart my tor node ? I do not want to loose my active connections. How to do it properly ?
Tor has a control port that can be used to change configuration on-the-fly. And there's a library to talk to it in Python called Stem. (https://stem.torproject.org/) With Stem, you'd do something like this:
from stem.control import Controller
with Controller.from_port(port = 9051) as controller: controller.authenticate() controller.set_options({ "BandwidthRate": "1073741824", "BandwidthBurst": "1073741824", "MaxAdvertisedBandwidth": "1073741824", })
On Sun, Jun 11, 2017 at 4:29 PM, Zalezny Niezalezny zalezny.niezalezny@gmail.com wrote:
I have 100mbit Up/Down connection at home. Most of the day, my connection is not use. Mostly between 22:00-17:00.
I would like to share my Internet connection for Tor. If I will setup some crontabs to start/stop my tor relay between that hours, will it work ? Does it make sense ? Will TOR network know that my relay is working only between 22:00 and 17:00 and will push some more traffic to me ?
How to properly configure such a relay which is working only for a few hours per day ?
Have you considered a prioritizing router/traffic shaper? Prioritizing everything but Tor should give you the maximum utilization automatically, without cutting in to the performance while browsing or playing games etc. It is likely that you don't come close to 100 Mbit/s even during the time you use your network, even when streaming video, so it might not even show up as a dip for any Tor users.
It can be a cool feature ! In torrc file, like Transmission (torrent client) for example, you can set up times with bandwidth ;) Why not setting days too ?! 5 working days / week, hours, bandwidth used during those different hours...
As an example, the Transmission's web interface, where you can set up easily those parameters :
Le 11/06/2017 à 16:29, Zalezny Niezalezny a écrit :
Hi,
I have 100mbit Up/Down connection at home. Most of the day, my connection is not use. Mostly between 22:00-17:00.
I would like to share my Internet connection for Tor. If I will setup some crontabs to start/stop my tor relay between that hours, will it work ? Does it make sense ? Will TOR network know that my relay is working only between 22:00 and 17:00 and will push some more traffic to me ?
How to properly configure such a relay which is working only for a few hours per day ?
Cheers
Zalezny
https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=icon Virus-free. www.avast.com https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=link
tor-relays mailing list tor-relays@lists.torproject.org https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays
tor-relays@lists.torproject.org