How to "flush tor circuit"

8

2

On Windows I have used XBBrowser, which provides a custom version of Firefox suited to using Tor.

XBBrowser provides a button, flush tor circuit, which will setup an entirely new connection and exit node.

I am wondering how to do the equivalent thing on Linux. ALl I can do is restart tor, which does not seem to make any difference.

So, on Linux, how would I flush the circuit?

Jack

Posted 2010-05-06T10:34:34.500

Reputation: 1 621

Answers

7

The solution is to enable the control port in torrc

It is also important to set a password for the control port with tor --hash-password password

You can then connect to the control port and issue a NEWNYM commands.

printf "AUTHENTICATE \"password\"\r\nSIGNAL NEWNYM\r\n" | nc 127.0.0.1 9051

Jack

Posted 2010-05-06T10:34:34.500

Reputation: 1 621

Does this really close all circuits? On Windows at least, if I do "SIGNAL NEWNYM" followed by "getinfo circuit-status" I often find old open circuits. I have to use the "closecircuit" command to be sure all circuits are closed. – Ogglas – 2015-09-30T16:35:48.977

2

If you use the Vidalia GUI, you can use the Network map to close all circuits. It's not as fast, but does the same thing.

user1686

Posted 2010-05-06T10:34:34.500

Reputation: 283 655

Nope, no GUI... – Jack – 2010-05-06T21:04:22.497