NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

https://tor.stackexchange.com/questions/2006/how-to-run-multiple-tor-browsers-with-different-ips/6401#6401

migrated from stackoverflow.com Apr 24 '14 at 16:03

This question came from our site for professional and enthusiast programmers.



If you mean different Tor exit addresses, I think the easiest (and only?) option is to run different Tor instances on different ports, and to have for each Tor instance a different browser (or a different browser profile, for example with Firefox) configured to use that instance. – Pierre Apr 24 '14 at 17:39


If someone could explain how to get the other Tor browsers working with the first one's ControlPort, that would be very cool. – mirimir Jul 22 '14 at 20:17


You can achieve this by running multiple Whonix instances: gateway and workstation VMs. – user3273 Jul 27 '14 at 11:46


Non-browser version: superuser.com/questions/188994/… – Ciro Santilli 六四事件 法轮功 包卓轩 Nov 17 '15 at 21:30
add a comment |
4 Answers
active oldest votes
up vote 6 down vote


Install the first Tor browser as directed. Then change the folder name, perhaps adding "a" or "1" to the end. Now install the second Tor browser, and change its folder name, continuing whatever pattern you've chosen.

Open the second Tor browser, and browse about:config. Search for "torlauncher", and double-click the extensions.torlauncher.start_tor (whichs value is set to true) to toggle it to false. See Tor ticket 6009. I got that reference from the Whonix documentation, by the way.

Now edit ..DataTortorrc-defaults in the first Tor browser folder, and add additional SocksPort lines: for example, SocksPort 9152, SocksPort 9153 etc. Save changes and exit the editor. Then start the first Tor browser. Its Tor instance will now handle your other Tor browsers.

Now open the second Tor browser then TorButton Preferences. Select "Use custom settings" then change the SOCKS Port to 9152 and click OK. Browse https://check.torproject.org/ and verify that you're using Tor.

Now close both the first and second Tor browsers. Install the third Tor browser, and change its folder name, continuing whatever pattern you've chosen.

Start the third Tor browser, and browse about:config. Search for "torlauncher", and double-click the extensions.torlauncher.start_tor line to set it to false. Then change its SOCKS Port to 9153, and close it.

Now start the first Tor browser, and then the third Tor browser. In the third Tor browser, browse https://check.torproject.org/ and verify that you're using Tor.

Repeat the previous four paragraphs as desired.
share|improve this answer

edited Jun 9 '15 at 13:04
Jens Kubieziel♦
5,19821166

answered Jul 22 '14 at 4:03
mirimir
2,309723



I tried whatever you said in your answer, but unfortunately,mirimir, it didn't work. – user6682 Feb 8 '15 at 11:32


Just change the SOCKS port. Do not set extensions.torlauncher.start_tor=false. That's only if you use a system Tor, which requires setting a control port password too. – Jeff Burdges May 11 '15 at 20:36
add a comment |
up vote 4 down vote


This method launches multiple Tor instances, each with its own SocksPort and ControlPort. This ensures that the Tor Browsers are fully functional, portable, and self-contained. However, someone should confirm that I haven't missed anything that could compromise TBs security.

Optional: Download, verify, and install Tor Browser.
Make copies of the Tor Browser folder with different names (eg. Number them)
Launch Tor Browser
Edit about:config
Modify extensions.torlauncher.control_port to a new ControlPort (eg. 9052 for Tor Browser 2)
Edit TorButton Preferences (without the GUI [removed in 4.5 update])
Modify extensions.torbutton.custom.socks_port to a new port (eg. 9152 for Tor Browser 2)
Modify extensions.torbutton.custom.socks_host to 127.0.0.1
Modify extensions.torbutton.proxies_applied to false
Modify extensions.torbutton.use_privoxy to false
Modify network.proxy.socks_port to the same port (eg. 9152 for Tor Browser 2)
Close Tor Browser
Edit torrc-defaults in TorBrowserDataTor
Change SocksPort to what you set in step 5
Change ControlPort to what you set in step 4
Launch Tor Browser, and check that everything was configured correctly
Homepage (about:tor) should say "Congratulations!"
Click "Test Tor Network Settings". check.torproject.org should say "Congratulations."
Go to ip-check.info. Test should be all green and orange except Tab name. Authentication should be "protected". Note: It may not say that you are using Tor, but this is incorrect.
Optional: Go to ipleak.net for IP, DNS, Geolocation, Browser and other info
Optional: Test your browser fingerprint at panopticlick.eff.org
Optional: Edit about:config
Type “banned" and modify the ports of the two entries. Add all the new SocksPort and ControlPort to the list (Copy the ports from other Tor Browsers)
Optional: Turn on “Forbid Scripts Globally” in NoScript for further security and privacy (also reduces browser fingerprint)
Repeat 3-10 for each Tor Browser folder

Alternatively, this might be possible with a single Tor instance as the SocksPort and ControlPort. This would require the use of the control_auth_cookie (CookieAuthentication) or HashedControlPassword, and about:config extensions.torlauncher.start_tor=false. However, the browsers would not be self-contained and portable, as they would require a process that isn’t in their own directory.

Inspired by mirimir's answer which seemed to compromise TB's security.
share|improve this answer

edited Jun 4 '15 at 12:23
PoorBob
245

answered Mar 11 '15 at 6:03
TorUser
805



Please Help on Step 7 Step 7- Edit torrc-defaults in TorBrowserDataTor Change SocksPort to what you set in step 5 Change ControlPort to what you set in step 4 When i open this folder , i can't see "Socksport" and "ControlPort" all i see is file with Type:File ,no one can edit them! – user7598 Jun 7 '15 at 9:50
add a comment |
up vote 1 down vote


Tor use default proxy port 8118. now you want multiple browser using same Tor instance. you have to download Privoxy click here this is use to enable the Proxy port.
To chain Privoxy and Tor, both running on the same system. change the browser Proxy setting like :

ip adrress : 127.0.0.1
port : 8118


now check proxy port is running check here if running now you can make Tor request using multiple browsers

if any issue let me know..
thank's
share|improve this answer

edited Aug 4 '14 at 8:16
Roya
2,2982528

answered Apr 29 '14 at 7:48
Nemi
4614


add a comment |
up vote 1 down vote


Inspired in TorUser's answer, here is a bash script to automate that.

#!/bin/bash

usage() { echo "Usage: $0 [-n <number of copies>] [-p <path to default TBB>]" 1>&2; exit 1; }

print_userjs(){
local socksport=${1}
local controlport=${2}
local dest=${3}
echo "user_pref("extensions.torlauncher.control_port",$controlport);" > $dest
echo "user_pref("extensions.torbutton.custom.socks_port",$socksport);" >> $dest
echo "user_pref("extensions.torbutton.custom.socks_host","127.0.0.1");" >> $dest
echo "user_pref("extensions.torbutton.proxies_applied",false);" >> $dest
echo "user_pref("extensions.torbutton.use_privoxy",false);" >> $dest
echo "user_pref("network.proxy.socks_port",$socksport);" >> $dest
}

while getopts ":n:p:" o; do
case "${o}" in
n)
n=${OPTARG}
;;
p)
p=${OPTARG}
;;
*)
usage
exit 0
;;
esac
done
if [ -z "$n" ] || [ -z "$p" ];
then
usage
exit 0
fi
for i in `seq 1 $n`;
do
CONTROL_PORT=$((9151+$i*2))
SOCKS_PORT=$((9150+$i*2))
echo "$i) Copying $p to TBB$i"
cp -r $p TBB$i
echo "$i) Creating user.js with SocksPort $SOCKS_PORT and ControlPort $CONTROL_PORT"
print_userjs $SOCKS_PORT $CONTROL_PORT "./TBB$i/Browser/TorBrowser/Data/Browser/profile.default/user.js"
echo "$i) Modifying torrc-default"
TORRC="./TBB$i/Browser/TorBrowser/Data/Tor/torrc-defaults"
sed -i "s/SocksPort 9150/SocksPort $SOCKS_PORT/g" $TORRC
sed -i "s/ControlPort 9151/ControlPort $CONTROL_PORT/g" $TORRC
done

share|improve this answer

answered Jun 6 '15 at 21:43
TorUser
111


add a comment |
protected by Community♦ Jun 9 '15 at 13:05
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.