[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: Re: how to prevent Tor from auto-buiding circle?
- To: or-talk@xxxxxxxxxxxxx
- Subject: Re: Re: how to prevent Tor from auto-buiding circle?
- From: "John Kimble" <det.j.kimble@xxxxxxxxx>
- Date: Fri, 8 Dec 2006 10:48:49 +0800
- Delivered-to: archiver@seul.org
- Delivered-to: or-talk-outgoing@seul.org
- Delivered-to: or-talk@seul.org
- Delivery-date: Thu, 07 Dec 2006 21:49:01 -0500
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Ys87AhTQgKK2NJXdxqwsxX4a6nx/nP1t8BC2EkxJ7qSonDjOn7RMFy+LxgrSbg5vTRSYMn4jhG0fBSAt51cnnpnN5wRYNwJgJn0aIRAcTXl9hlUIdbrRvaseFhPCDm3IW5JxeNOk9duZudqj89XtU44YJIU5Q2phe/IrwwXZnfM=
- In-reply-to: <35130b5350df95.350df9535130b5@fudan.edu.cn>
- References: <35130b5350df95.350df9535130b5@fudan.edu.cn>
- Reply-to: or-talk@xxxxxxxxxxxxx
- Sender: owner-or-talk@xxxxxxxxxxxxx
On 12/8/06, xiangw@xxxxxxxxxxxx <xiangw@xxxxxxxxxxxx> wrote:
i c, just ignore. Thanks very much.
Yours,
jojo
> Thus spake xiangw@xxxxxxxxxxxx (xiangw@xxxxxxxxxxxx):
>
> > Hi,guys. I'm working on my own Tor controller recently. I
> want to
> > do full controlling on circle and stream, but i found that Tor
> keep
> > auto-buiding circles. How to prevent Tor from doing it?
>
> Unfortunately I think there is no tor option for this. In my case I
> ignore the circuit extends I didn't cause. You can build a table/list
> by watching for 250 EXTENDED ([\d]+) right after you send the
> EXTEND.. Any events for other circuit IDs you can then ignore.
>
> However, I'm guessing you want to completely avoid touching nodes that
> are known to be unreachable from your location? Is it bad if you
> try to connect to firewalled nodes?
>
>
> --
> Mike Perry
> Mad Computer Scientist
> fscked.org evil labs
>
>
If you want to make sure you have complete control over how streams
are attached to circuits, you also need to set
"__LeaveStreamsUnattached" to 1, either when your controller starts or
in the torrc file. And then use the SETEVENTS controller command to
subscribe to STREAM events, and attach new streams to your own
circuits as they arrive.
About preventing the auto-building of circuits - you'll have to modify
Tor source to do so. I think the most minimalist change that you can
make to achieve this is to edit circuituse.c and change "#define
MAX_UNUSED_OPEN_CIRCUITS 12" to "#define MAX_UNUSED_OPEN_CIRCUITS 0".
(Let's hope I don't get laughed / screamed at if this turns out to be
a bad idea.)
- John