I activate torsocks in my .bashrc, so that every command I run by default gets routed through tor:
# ~/.bashrc: executed by bash(1) for non-login shells.
# ...
. torsocks on
This works fine, except that it causes the Tor Browser not to be able to connect to the Tor network anymore -- I now get the following error in the logs:
<Some timestamp> [WARN] Proxy Client: unable to connect OR connection (handshaking (proxy)) with <Some IP>:443 ID=<Some ID> RSA_ID=<Some ID> ("Connection refused")
If I remove the line from my .bashrc it works fine.
I already tried opening a terminal, deactivating torsocks with . torsocks off and running the Tor Browser from there (either through the torbrowser-launcher, or directly by calling the executable), which didn't change anything.
Is there a way to have torsocks active in the terminal by default, while still being able to use the Tor Browser?
My torbrowser-launcher has the version 0.3.3-6, torsocks has 2.3.0-3, I use Debian GNU/Linux 11 (bullseye) x86_64 with the Kernel 5.10.0-23-amd64.