[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: tor-ctrl v1 - setting bandwidthrate from commandline and many, many other possibilites...
- To: or-talk@xxxxxxxxxxxxx
- Subject: Re: tor-ctrl v1 - setting bandwidthrate from commandline and many, many other possibilites...
- From: "Kyle Williams" <kyle.kwilliams@xxxxxxxxx>
- Date: Thu, 4 Oct 2007 18:28:17 -0700
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: or-talk-outgoing@xxxxxxxx
- Delivered-to: or-talk@xxxxxxxx
- Delivery-date: Thu, 04 Oct 2007 21:28:36 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=giMK1jfPXig6UwgXTtqruVPfDG6mfp9x6dRi+cEDKeY=; b=JC2goDUGx0EgsTdTrQWaLGCmWeEaDE9vGlSrQdAeCRCSMhQf5gQR72xDekE0almK8edx4RINPYUIhgRlBvejJrEkebHDe1iB9K428WuyFfUTTRaSHY6zwC7dnTiPH2j8BHfM4BtFnXKNBRwTnJ7fPyfqeVRnQPgeaPagnDWs4Ig=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=r9ikiEfX1RziVAZNdij18qoUWeUB2fJ1A1sxPvBa/tgAGBvnANnu0IXZqVdhJOv4WXGoBOIpwg3GYbY/XwSxMkcuiz2Topbj7pwzT0qou6PxnIX6Gk8fph+7+WQoBwyvyTq4qV8jphzX/LUUMUo3a+JAaC19pII9qQThYZqyNns=
- In-reply-to: <470588C2.9070404@xxxxxxx>
- References: <47042388.1010206@xxxxxxxxx> <470552EF.5010707@xxxxxxxxxx> <470588C2.9070404@xxxxxxx>
- Reply-to: or-talk@xxxxxxxxxxxxx
- Sender: owner-or-talk@xxxxxxxxxxxxx
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@xxxxxxx> 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-----