Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Is there a way to change the IP address which is given by Tor from the terminal?

I have the Tor service, and I want to change the IP address which Tor gives me from the terminal. Or in other words: How do I request a new IP address from Tor on the command line?

share|improve this question
3  
an even better way to say it is how to "change identity" from a terminal –  mchid Jul 19 at 20:04
    
I added another command that I found for when running the tor daemon on Ubuntu in the background. –  mchid Jul 19 at 20:29

1 Answer 1

up vote 2 down vote accepted

For tor daemon running on Ubuntu, first try this:

killall -HUP tor

If that does not work, enable the control port in your torrc file.

Then, set a password for the control port with tor --hash-password password.

Open a telnet connection to the control port and issue the NEWNYM command:

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

sources:

http://superuser.com/questions/330064/how-do-i-tell-tor-from-the-command-line-to-give-me-a-new-identity

http://stackoverflow.com/questions/16987518/how-to-request-new-tor-identity-in-terminal

and

http://superuser.com/questions/138262/how-to-flush-tor-circuit

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.