question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Discussion] should tor.streamisolation be used?

See original GitHub issue

in v1.7.0 LND had a dedicated Tor instance to solve this issue: https://github.com/rootzoll/raspiblitz/issues/1604#issuecomment-923240959 for which we found that reloading, instead of restarting the tor instance solves the problem too so removed the dedicated tor@lnd instance in this PR: https://github.com/rootzoll/raspiblitz/pull/2536 for the sake simplification and to help #2419.

If there are further stability issues it can be reintroduced together with one for C-lightning.

Nb: LND has a tor.streamisolation option https://github.com/lightningnetwork/lnd/blob/9264185f5b3e446b101a09eb371634ac5ba0daf4/sample-lnd.conf#L847


; Enable Tor stream isolation by randomizing user credentials for each
; connection. With this mode active, each connection will use a new circuit.
; This means that multiple applications (other than lnd) using Tor won't be mixed
; in with lnd's traffic.
;
; This option may not be used while direct connections are enabled, since direct
; connections compromise source IP privacy by default.
; tor.streamisolation=true

have seen some reports that disabling streamisolation helped some stability problems for some users on non-raspiblitz or custom nodes, so just keeping an eye on it. From v1.7.1 tor.streamisolation=true is configured in the lnd.conf and reintroduced on every lnd restart by lnd.check.sh so to switch it off for tests would need to comment it out there.

If we would decide to not use tor.streamisolation in LND a dedicated Tor instance should be reintroduced to avoid using the same circuit as all other services over Tor. This is also applicable to C-lightning now. It has less significance if there are no Tor services shard publicly (e.g the Lightning is the only public Tor service).

As for Bitcoin Core (the other public Tor service running on the node - see bitcoin-cli getnetworkinfo) it uses Tor streamisolation by default since v0.11.0: https://bitcoin.org/en/release/v0.11.0#privacy-stream-isolation-for-tor

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:1
  • Comments:15 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
nyxnorcommented, Dec 14, 2021

I mailed the creator of stem to see if there is a way to show the circuit final destination, so it would be similar to torbrowser circuit button, but on the terminal. lets see.

edit: Response linked to this https://stem.torproject.org/tutorials/examples/exit_used.html also check https://stem.torproject.org/tutorials/examples/list_circuits.html

1reaction
openomscommented, Oct 26, 2021

It’s not an issue since we are reloading tor instead of restarting.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Signal NEWNYM vs Stream isolation - Tor Stack Exchange
Context. I am working a Bitcoin privacy technology that depends on a user to have two separate identity to the server (Alice and...
Read more >
Stream Isolation - Whonix
New illustrative Whonix ™ stream isolation image with 4 Tor relays. ... In other words, Whonix-Gateway by default can be used as a...
Read more >
Expose stream isolation information to controllers (#19859)
See the discussion on the "How to integrate an external name resolver ... Use child items to prioritize tasks that your team should...
Read more >
Tor - Gentoo Wiki
2.10 Stream isolation; 2.11 Rules for Tor circuits; 2.12 Sandbox ... If you only need to browse the Web via Tor, an easy...
Read more >
Optimal Configuration of a Routing Node - Builder's Guide
In this article we will discuss various configuration options for LND in the ... Configurations such as tor stream isolation can also affect...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found