Oddbean new post about | logout
 How to run a private DM relay over Tor. 
#Amethyst #Citrine #Orbot

-- Citrine setup

Go to the settings tab. https://i.nostr.build/ex9B7IdQK1q0AerO.jpg Fill things in as appropriate. Leave the network related settings default.

https://i.nostr.build/NtvIB1gQFxiTTc47.jpg Under "Accept events that refer to" add your npub. This will keep extraneous events from clogging your relay, but still allow DM to function. Note: If you add your npub to "Accept events signed by" your DM partner will not be able to send messages to your relay. You would need to add their npub as well. Maybe a security feature?

-- Orbot setup

In orbot got to more > hosted onion services.

Add a new service.

Citrine uses port 4869, so set that for both ports. Name it anything. "Nostr" will do.

You will need to restart orbot after you save. 

Then you can go back and copy your onion service address. You'll need it for the next step.

-- Amethyst Setup

Add ws://ONIONADDRESS:4869 as Outbox and DM relays in Amethyst.

https://i.nostr.build/UhKC9mEknjHF7BJ2.jpg
Also add ws://127.0.0.1:4869 as a local relay.

https://i.nostr.build/vnvHQEEHAn4e3Kl5.jpg

You should be able to check the relay info in Amethyst by clicking on the icon. It should now reflect what you have set in Citrine!

https://i.nostr.build/44jF543FWwEQiz1r.jpg

NOTE:
This requires running Tor at all times! 

Anyone on the other end will also need to be running Tor to communicate with you over this relay, but not have the relay & service running. It would be better if they did though, then both sides of a DM conversation can be hosted on a private relay.

nostr:nevent1qqsqnnpdn90qdxe9yfyr9hkl4uzqepdzz0p4jfzmqtz053c6759fmscpz3mhxw309ucnydewxqhrqt338g6rsd3e9upzq3xurskmnslm67lwjft7e66jhc7033qt4aak8arw266c5ycuwnctqvzqqqqqqydes96c

😎👌

Software required
https://github.com/vitorpamplona/amethyst
https://github.com/greenart7c3/Citrine
https://github.com/guardianproject/orbot 
 Fantastic details!
 
 Thanks, I played with things a bit to work out the kinks, mostly foolproof now. I can't for the life of me take screenshots of Tor though, even when toggling the setting for it 😂 Once Vitor has Tor up and running 💯 in Amethyst I'll post a proper long form note. His posts today excite me for the future. 
 I am still not sure if I need to run Amethyst App thru Orbot app if I have Tor connected in Amethyst.  
 You can run Orbot in expert mode, it doesn't function as a VPN then, just a proxy server. Activate the Tor mode in Amethyst and it will use the proxy. You don't need to use the VPN feature of Orbot necessarily. This is how I use Tor in tandem with a standard VPN. 
 This is the way ⤵️
nostr:nevent1qqsxchyvxmd8fcseamlvyjt2cstfmpc2l34amkc74de9krfrhqljgzcppemhxue69uhkummn9ekx7mp0qgsda2memtapc2lykjnd8t9px4ake2stw39lg6k49xj6u3jz3pteu6qrqsqqqqqp58c9e6 
 nostr:nevent1qqsxchyvxmd8fcseamlvyjt2cstfmpc2l34amkc74de9krfrhqljgzcppemhxue69uhkummn9ekx7mp0qgsda2memtapc2lykjnd8t9px4ake2stw39lg6k49xj6u3jz3pteu6qrqsqqqqqp58c9e6 
 Thanks, I'll look into it.  
 Thanks, I'll look into it.