fraction / oasis

Free, open-source, peer-to-peer social application that helps you follow friends and discover new ones on Secure Scuttlebutt (SSB).
http://oasis-demo.fraction.io
GNU Affero General Public License v3.0
287 stars 42 forks source link

Add UX for toggling on Tor routing for ssb-server #88

Open georgeowell opened 4 years ago

georgeowell commented 4 years ago

As discussed in this thread on Scuttlebutt: %ln9EHC+3OjnF8cqata0AWnt58clkeC96eSwqHVAD/dM=.sha256

We could add UX for routing the ssb-server backend through Tor. This would serve the same function as for example running oasis --tor on the command line.

You should also be able to select the SOCKS proxy port. Port 9150 is the default local port for Tor Browser. This could also be useful for people who use a VPN with Scuttlebutt.

The goal is to make it easy for people who require location privacy to obscure their IP Address without needing to use the command line.

christianbundy commented 4 years ago

Cool! Do you think this should just enable Tor, or disable other types of networking? Personally, I'd love to use Tor as an overlay network, but I'd be bummed if it killed all of my other networking. I'm sure that others would feel the exact opposite. :smile:

georgeowell commented 4 years ago

I think for now it should just route anything going over the internet through Tor. Basically it would just allow users to obscure their IP address from remote peers. We might also need the ability for users to select a different SOCKS5 port if necessary.

This is reminiscent of Briar which is also P2P and also does LAN (and Bluetooth syncing). Unlike that project, we would obviously be defaulting to not using Tor.

121 would allow for more nuanced networking settings in the future.

christianbundy commented 4 years ago

Cool. I think the first step for this would be researching SSB-CONN and seeing if this is even a possibility. If we can do it, I'm happy to solve it, but I don't think that we can do this in Oasis until we know how to do it with SSB-CONN.