[tor-bugs] #13150 [Tor Launcher]: Windows Tor Launcher trying to connect 9151 control port always, instead of using settings
Tor Bug Tracker & Wiki
blackhole at torproject.org
Sat Sep 13 18:11:18 UTC 2014
#13150: Windows Tor Launcher trying to connect 9151 control port always, instead of
using settings
-------------------------------+----------------------------------
Reporter: VasiliyPetrov | Owner: brade
Type: defect | Status: new
Priority: normal | Milestone:
Component: Tor Launcher | Version:
Resolution: | Keywords: ControlPort, windows
Actual Points: | Parent ID:
Points: |
-------------------------------+----------------------------------
Comment (by VasiliyPetrov):
(!) (!) (!) OK, it is done (!) (!) (!)
Finally I found the solution how to configure a fresh copy (NOT STARTED
YET! ONLY INSTALLED)
For example, we want to have the second (2) instance with ports: Socks -
9250 instead of 9150; Control - 9251 instead of 9151; FlashProxy - 9100
instead of 9000
[1]. Editing ".\Data\Tor\torrc-defaults" (correcting exist strings)
SocksPort 9250
ControlPort 9251
ClientTransportPlugin flashproxy exec Tor\PluggableTransports\flashproxy-
client --register :0 :9100
[2]. Copying ".\Data\Tor\torrc-defaults" to ".\Data\Tor\torrc" file
(overwriting)
[3]. Editing ".\Data\Browser\profile.default\preferences\extension-
overrides.js"
[3.a]. Adding following strings (they does not exist; 9251 = ControlPort,
9250 = SocksPort; Firefox Settings *must* *much* TorButton settings, or it
will not work):
# Tor Launcher Preferences:
pref("extensions.torlauncher.control_port", 9251);
# Firefox ESR Network Settings (to use "Manual" proxy the same as Tor
Button)
pref("network.proxy.type", 1); // 1 - manual, see here:
https://developer.mozilla.org/en-
US/docs/Mozilla/Preferences/Mozilla_networking_preferences
pref("network.proxy.socks_port", 9250);
pref("extensions.torbutton.settings_method", "custom");
[3.b]. Correcting exist strings (9150 -> 9250):
pref("extensions.torbutton.socks_port", 9250);
THAT'S ALL!
Now you can start TBB in a common way and it will WORK PERFECTLY with the
first run with required ControlPort (9251), SocksPort (9250) and
FlashProxy Port (9100)!
THAT'S ALL!
I'm attaching in .zip archive a sample of changes with original files to
compare/diff.
I'm sure(!) that developers MUST include following strings to a default
repository file ".\Data\Browser\profile.default\preferences\extension-
overrides.js":
=============================
# Tor Launcher Preferences:
pref("extensions.torlauncher.control_port", 9151);
# Firefox ESR Network Settings (to use "Manual" proxy the same as Tor
Button)
pref("network.proxy.type", 1); // 1 - manual, see here:
https://developer.mozilla.org/en-
US/docs/Mozilla/Preferences/Mozilla_networking_preferences
pref("network.proxy.socks_port", 9150);
pref("extensions.torbutton.settings_method", "custom");
=================================
In this case any guy will be able to change all settings just by searching
"9150" and "9151" inside files, without so long story like I wrote here to
solve this issue!
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/13150#comment:8>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list