Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
Trac
Trac
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 246
    • Issues 246
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Create a new issue
  • Issue Boards

GitLab is used only for code review, issue tracking and project management. Canonical locations for source code are still https://gitweb.torproject.org/ https://git.torproject.org/ and git-rw.torproject.org.

  • Legacy
  • TracTrac
  • Issues
  • #9137

Closed
Open
Opened Jun 25, 2013 by cypherpunks@cypherpunks

Changing the value for SocksPort requires 2 edit cycles.

Many TBB-users have complained about "The proxy server is refusing connections". I MAY have found the root cause, but this is certainly a bug.

How to reproduce the bug:

Start with two edited torrc files. (Caveat/note [1] and [2] below). Make sure that TBB starts and connects to the internet properly using one of torrc files. In the Vidalia Control Panel press "Stop Tor" -> "Settings" -> "Advanced". Change the value for "Tor Configuration File" to point to the other torrc. Press "OK" to close window. Press "Start Tor". Wait... Open a link in TBB to, say: https://www.torproject.org/ Here I get "The proxy server is refusing connections".

I solve the problem by:

  1. stopping Tor.
  2. opening the torrcfile.
  3. check the value for SocksPort: it is ALWAYS 9050 !!!
  4. edit the value to SocksPort 9150.
  5. save the torrcfile.
  6. start Tor again.
  7. try to open https://www.torproject.org/ in TBB.
  8. FAIL again with "The proxy server is refusing connections".
  9. stop Tor.
  10. edit torrcfile, set SocksPort 9150. save torrcfile.
  11. start Tor.
  12. Open https://www.torproject.org/ = SUCCESS.

What is interesting is, when I:

  1. stop Tor.
  2. change settings to point to the different torrc file.
  3. start again. the result is THE SAME!!! "The proxy server is refusing connections". So I check the value for SocksPort in the currently active file, it is: 9050 !!!

[1] Not sure it is required for these two torrc files to have different settings at all, would need several hours more to find out. [2] Not sure if these torrc files need to contain the old values SocksPort 9050 or not. In my experience it doesn't matter, everytime I edit and save the values to 9150 - something "behind my back" changes it to the wrong value.

Conclusion: Switching back and forth between two or more torrc files results in failure to connect to the internet. Despite always editing and writing the correct SocksPort values back. Something inside TBB or Vidalia defaults to the wrong value, and neccessitates two edit cycles.

Don't tell me it is supposed to behave like this. Do tell me if you can't reproduce this behaviour. I'll check back in a week or so.

To upload designs, you'll need to enable LFS and have admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: legacy/trac#9137