PyBitmessage icon indicating copy to clipboard operation
PyBitmessage copied to clipboard

Add onlynet=onion config option

Open gousasin opened this issue 5 years ago • 7 comments

Please add an onlynet=onion configuration option like in Bitcoin Core to exclusively allow connections to Bitmessage nodes behind a Tor Onion Service for enhanced privacy at the network layer.

gousasin avatar Oct 06 '19 14:10 gousasin

Implemented by PR #1545.

sgj3 avatar Oct 28 '19 07:10 sgj3

Implemented by PR #1545.

Close but not exact implementation. In the future PR's consider to put closes # in the commit message.

g1itch avatar Oct 28 '19 08:10 g1itch

So, do you want this refactored to use literally "onlynet=onion"?

sgj3 avatar Feb 14 '20 04:02 sgj3

I don't really care about the syntax if the functionality is implemented. "onlynet=onion" is used by Bitcoin so I just copied it from there. I leave it up to you.

gousasin avatar Feb 14 '20 11:02 gousasin

OK, understood.

@g1itch What do you think? You left it open and assigned the refactoring label. Is this is what you had in mind?

sgj3 avatar Feb 15 '20 04:02 sgj3

@g1itch Bump

sgj3 avatar Mar 15 '20 05:03 sgj3

Besides the refactoring there is a new complaint from chan:

If onionservicesonly is enabled and there are no available onion bootstrap servers PyBitmessage will never connect to the network without connecting to bootstrapXXXX.

When onionservicesonly is enabled, the user expects PyBitmessage not to connect non-onion nodes at all. So if onion bootstrap nodes are not to be connected, PyBitmessage should stop bootstrapping and show error message. The user then decides not to use PyBitmessage for a while or to change his policy to connet to non-onion nodes. Security policy is more important than connectivity. ...

If onionservicesonly is enabled and there are no available onion bootstrap servers PyBitmessage will never connect to the network without connecting to bootstrapXXXX. ...

PyBitmessage should not connect to bootstrapXXXX when:

  • onionservicesonly is enabled, or
  • trusted mode is used. Currently there are no guards for these cases.

Thought it cannot be implemented right now because quzwelsuziwqgpt2.onion (sole onion bootstrap server) is down.

g1itch avatar Oct 05 '20 15:10 g1itch