psanford / wormhole-william

End-to-end encrypted file transfer. A magic wormhole CLI and API in Go (golang).
MIT License
1.08k stars 55 forks source link

Tor support? #45

Open kortschak opened 3 years ago

kortschak commented 3 years ago

The python implementation offers optional support for transport via tor. Is there an intention to add this to wormhole-william?

psanford commented 3 years ago

I've avoided tor support as it add a lot of complexity for a feature most users do not use.

Ideally it would be possible to use the wormhole-william library to support third-party clients that want tor. Unfortunately right now I don't think the library can be used with tor in a privacy preserving manner. The main issue is that under the non-tor mode, the clients try to connect directly to each other so they share their IP address with each other as part of the encrypted rendezvous protocol.

At a minimum, the library would need an option to specify tor-tcp-v1 transit instead of direct-tcp-v1 or relay-v1. I'd be open to doing this if it can be done in such a way that doesn't add a lot of additional complexity.

kortschak commented 3 years ago

Thanks. If you can point me to the areas where changes would be required, I'm happy to look into this.

omnivagant commented 1 year ago

Could you use torsocks?

ihubgit commented 1 year ago

upping request for optional Tor integration, f.ex. thru Torsocks.