tor-ctrl v1 - setting bandwidthrate from commandline and many, many other possibilites...

Kyle Williams kyle.kwilliams at gmail.com
Fri Oct 5 01:28:17 UTC 2007


I took a quick glance at it, and the only thing I see wrong is the control
port in your script is set to 9100.
The default control port is 9051.
Minor Detail.
Nice tool.
Thanks.



On 10/4/07, Stefan Behte <Stefan.Behte at gmx.net> wrote:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi!
>
> I'd like to present a tool which was said to be wanted by some people
> running servers (http://tor.eff.org/volunteer.html.en -> nr. 3)  - so I
> wrote it.
>
> tor-ctrl is a general-purpose commandline tool for executing commands on
> a tor server via the controlport. I regard it as kind of "interface"
> between the tor controller interface and the commandline.
>
> It's written in BASH and uses just telnet/xxd (the last one only when
> using control_auth_cookie), so there is no need for a bulky java/python
> installation.
>
> Here is an example of what you can do with it:
> For setting the bandwidth for specific times of the day, I suggest
> calling tor-ctrl via cron, e.g.:
>
> 0 22 * * * /path/to/tor-ctrl -c "SETCONF bandwidthrate=1mb"
> 0 7 * * *  /path/to/tor-ctrl -c "SETCONF bandwidthrate=100kb"
>
> This would set the bandwidth to 100kb at 07:00 and to 1mb at 22:00.
> You can use notations like 1mb, 1kb or the number of bytes.
>
> In order to do other "magic", you should read
> http://tor.eff.org/svn/trunk/doc/spec/control-spec.txt
>
> I also created a download-page for the tool:
> http://ge.mine.nu/tor-ctrl.html
> Direct link: http://ge.mine.nu/code/tor-ctrl.sh
> If it's down, please try again later (I had some problems with my ISP
> recently).
>
> Please send me some feedback, ideas and (most important!) bug reports!
>
>
> Best regards,
>
> Stefan Behte
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.7 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFHBYjCgs5mTaoGZecRAkrMAJ9b5oXtzG6eaQbQLHaUzc70yjksjgCghy6Q
> +Gd6RgbO5EE+4TM073cCbEQ=
> =Simt
> -----END PGP SIGNATURE-----
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.torproject.org/pipermail/tor-talk/attachments/20071004/58d095c3/attachment.htm>


More information about the tor-talk mailing list