Replying to Avatar Ryan

How to run a private DM relay over Tor.

#Amethyst #Citrine #Orbot

-- Citrine setup

Go to the settings tab. Fill things in as appropriate. Leave the network related settings default.

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.

Also add ws://127.0.0.1:4869 as a local relay.

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!

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!

Reply to this note

Please Login to reply.

Discussion

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.