Bitcoin Forum
May 28, 2024, 05:37:17 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Timeouts and other errors with Tor Browser, Cloudflare, Bitcointalk, and Alt-Svc  (Read 257 times)
suchmoon (OP)
Legendary
*
Offline Offline

Activity: 3682
Merit: 8935


https://bpip.org


View Profile WWW
October 11, 2020, 04:38:43 PM
 #1

Background sob story, you can safely skip to the next part

For the last few weeks I've been having a horrible time browsing Bitcointalk. It seemed like every other click would result in a random secure connection error, or a time out. I'm using a Tor Browser, which is otherwise excellent. Requesting a new a new Tor circuit usually helps for a few seconds. It got so bad that I would have to request a new circuit on e.g. the watchlist page, then open 10-20 threads in new tabs as quickly as I can so that I could read them. There was very little chance to get to the next page in a thread without getting a new circuit.

tl;dr:

I'd like to know if anyone has experienced any Tor issues lately. For me the problem went away when I disabled Alt-Svc in Tor Browser. I wouldn't recommend messing around with Alt-Svc unless you know exactly what you're doing. I'm just curious if this was some unique-to-me clusterfuck or a more widespread issue.

What is Alt-Svc?

The Alt-Svc HTTP response header is used to advertise alternative services through which the same resource can be reached. An alternative service is defined by a protocol/host/port combination.

That doesn't tell us anything interesting. The best I can figure out is that this can be useful in some load-balancing scenarios. One nasty thing that needs to be noted about this is that the URL in the browser doesn't change so you would never know that your browser is connecting to a different site than the one shown in the address field.

Enter Cloudflare

I know we all love Cloudflare like we love our families, i.e. we don't have a choice. It's essentially Internet 3.0 and it sits between us and many of the sites we use, including Bitcointalk. It also tends to fiddle with things that it shouldn't, such as DNS and yes, the Alt-Svc header. Basically: if Cloudflare thinks that you're coming from Tor it will send Alt-Svc header to your browser telling it to connect to a Cloudflare onion (<somerandomstring>.onion) site instead.

Onion sites are great in theory as they exist "inside" the Tor network so you can connect to them without using Tor exit nodes, thus avoiding some surveillance and attack vectors. However there seems to be something broken with the Cloudflare onion implementation or the way Tor Browser handles it or both, at least in my case. I can't think of anything wrong on my side though. It's a vanilla install of Tor Browser on an otherwise empty VM.

Solution

Unfortunately I don't know how to debug this issue or what the proper solution would be. Since I'm not concerned about exit nodes I simply disabled the Alt-Svc option in Tor Browser. It's a relatively new feature (I believe Cloudflare started doing it a couple of years ago but stable versions of Tor Browser had it initially disabled; not sure when the option was enabled) and I don't see any benefit for it when connecting to a known HTTPS site.

Anyone experiencing similar issues? With Tor Browser or without? Is it really onion-related or just some bizarre coincidence?
Timelord2067
Legendary
*
Offline Offline

Activity: 3682
Merit: 2219


💲🏎️💨🚓


View Profile
October 13, 2020, 03:33:08 AM
 #2

Yes, I have had errors connecting (time outs mainly) and as you have identified creating a new circuit has cleared the issue.

I find if I have the browser open for about 90 minutes, (or 90 minutes from the last new circuit) then the errors start again.

Perhaps it is to force the issue of reconnecting?

My IPS list shows one region far above the rest of the regions.

TheBeardedBaby
Legendary
*
Offline Offline

Activity: 2184
Merit: 3134


₿uy / $ell


View Profile
October 13, 2020, 06:26:51 AM
 #3

There's some weird trend in the past few days. The mobile Tor works fine but l the one in the PC is getting errors from time to time. Other thing is that if I'm idle for like 5 min the desktop Tor always comes with a "lost connection" error. If you refresh like 10 times you may get a connection back, but most of the time I just find a new exit node. Both my connections, pc and mobile go through the same fiber..

Timelord2067
Legendary
*
Offline Offline

Activity: 3682
Merit: 2219


💲🏎️💨🚓


View Profile
October 14, 2020, 02:54:35 PM
Last edit: May 16, 2023, 11:14:46 PM by Timelord2067
 #4

My Tor (recommended to me by suchmoon a few weeks ago) just updated:



[size=20pt]Version 10.0.0.1[/size]

suchmoon (OP)
Legendary
*
Offline Offline

Activity: 3682
Merit: 8935


https://bpip.org


View Profile WWW
October 14, 2020, 03:53:52 PM
 #5

There's some weird trend in the past few days. The mobile Tor works fine but l the one in the PC is getting errors from time to time. Other thing is that if I'm idle for like 5 min the desktop Tor always comes with a "lost connection" error. If you refresh like 10 times you may get a connection back, but most of the time I just find a new exit node. Both my connections, pc and mobile go through the same fiber..

Yeah that was pretty much like that for me too (on a PC). Very annoying when you type a new post and can't submit it or read something and can't merit it without requesting a new circuit. I don't know if Cloudflare changed something recently or Tor Browser version 10 did. It doesn't happen to sites that don't use Cloudflare, e.g. bpip.org or loyce.club.
suchmoon (OP)
Legendary
*
Offline Offline

Activity: 3682
Merit: 8935


https://bpip.org


View Profile WWW
November 23, 2020, 06:50:38 PM
 #6

Bump.

I had to reinstall Tor for unrelated reasons and a fresh install went into the this irritating connection-error-every-10-minutes mode. Disabled Alt-Svc and it's been fine since. So maybe this thread can help someone.
Timelord2067
Legendary
*
Offline Offline

Activity: 3682
Merit: 2219


💲🏎️💨🚓


View Profile
November 23, 2020, 11:09:54 PM
 #7

I had to reinstall Tor for unrelated reasons and a fresh install went into the this irritating connection-error-every-10-minutes mode. Disabled Alt-Svc and it's been fine since. So maybe this thread can help someone.

Version 10.0.0.2 is stable on my PC - I *was* using version 10.0.0.4 but it kept crashing so have rolled Tor back.

(And like Firefox both have updated BPIP without incident)

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!