Oddbean new post about | logout
 So after running my citrine relay like this for a bit but I found out it was quickly being used by more people than just me and for more than just a DM inbox and found events stored on my phone that I dident want (ai porn, bot posts and the like)  

I tryed setting citrine to only accept events from me and to only allow events refering to me (in the hope of not blocking DMs) but thats seems to not be working. 

Gonna close off citrine again but its fun to know that i can open it up. Might open it up again if I can filter what gets in the relay better but for now I prefer to have it as a local backup. 

If you use nostrudel on your phone you can go to your relays add citrine, click on it and nostrudel will show you what notes are coming from the relay (if I understand the feature corectly)  I was also able to kind of double check and confirm that it wasn't just me using the relay because I told Citrine to delete anything that was more than a day old but to keep posts from me and my kind 1 stored events went from like 2,500 to around a thousand

So just a heads up for people out there if you start using your phone relay as a DM inbox relay. Very quickly can become used by people you don't want it to.
 

nostr:nevent1qqs2eqnj7xtae25qr252px0jm8mr2xfly30tsp0rvtdwryrkaua0c7gpzfmhxue69uhkummnw3eryvfwvdhk6tczyrkmgup8z2t6cknp7fml8ng5me2vvl44enfqauxemu5muxrgtwcqgqcyqqqqqqg3nz9ws
nostr:nevent1qqs2eqnj7xtae25qr252px0jm8mr2xfly30tsp0rvtdwryrkaua0c7gpzfmhxue69uhkummnw3eryvfwvdhk6tczyrkmgup8z2t6cknp7fml8ng5me2vvl44enfqauxemu5muxrgtwcqgqcyqqqqqqg3nz9ws 
 Latest Citrine has ability to add your npub s owner seperate from the "add this npub" nostr:nprofile1qqs827g8dkd07zjvlhh60csytujgd3l9mz7x807xk3fewge7rwlukxgpz4mhxue69uhhyetvv9ujuerpd46hxtnfduhszrnhwden5te0dehhxtnvdakz7qgswaehxw309ahx7um5wghx6mmd9usjfpck 
 Im on v1.3.6 
 I am on 0.4.3 
 Oh, I'm a total dumbass. I was looking at the amber version. 
 Yeah 0.4.3 is the most recent for citrine.  
 I expect that Vitor & greenart will have a more complete solution to this soon, to make it more secure and private. This is just a proof that it works really. 

 
 /shrug. It's pretty dope that this works in general, but I was just pointing out in case people hadn't noticed this yet. 
 When I first realized this was possible I noted this possibility, and pointed out that you might want to secure your citrine. Hopefully there will be some WoT implemented. Having it so just people you follow can post to your relay would be a good start.

nostr:nevent1qqsqd5u525g036y77hq6rf7r2lkymhk5uh52zrqwx67zp9hw6dnrmdcpz3mhxw309ucnydewxqhrqt338g6rsd3e9upzph4t08d058ptuj62d5av5y6hkm92pd6yhar26556ttjxg2y908ngqvzqqqqqqy6c7k0p 
 yes, i was wondering about this, citrine gonna need ACLs.. did it get picked up by blastr/nostrwatch i wonder.?. 🤔 pretty cool tho for sure.   
 There are settings on Citrine that say "only allow signed events from" and "only accept events referencing" And then I think you put your Npub in there. But that dident seem to be wroking right. Although when I did the event deletion, it did seem to only keep the ones specifically from me. As that's another setting you can set. 
 Funny to see my phone tor citrine relay listed as a relay on your list. 
 Lool thats funny. Yet on Amethyst, we seem to be communicating through the forest. 😅 
 I think we both AUTH to forest. I never quite understood the way that Amethyst shows the relays as #/# on your profile tabs.

Did you add my relay or do my relays populate there to compare to yours? 
 I definitely didn't manually add your relay.  
 Local relay should only be for drafts, ephemeral events, and maybe certain replaceable events like follow lists and profile metadata. As well as an inbox for DMs. Anything more and it's probably more than what should be on a phone relay.  
 How did you browse the events that are stored on your phone? My citrine is wide open so this is a bit concerning 😳 
 Nostrudel can do it. If you use it on your phone make sure your citrine relay is in your relay list. Then just click on it and find the tab that says "notes" If I understand the feature correctly, that's just notes coming from that relay. 
 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:nprofile1qqsq2fx2vfwusjykq0d58mlga7zhaukxvvdw0u8jqjczzl8yfh6q3qspr9mhxue69uhhyetvv9ujuumwdae8gtnnda3kjctv9uxztxx9 
 Thanks for the detailed instructions, I did not have a clue how it worked.
But do you fill your own Nostr pubkey in the relay owner and relay contact fields?
I filled them both in with my Nostr pubkey, but now there are two different ones showing. 
 nostr:nevent1qqsxchyvxmd8fcseamlvyjt2cstfmpc2l34amkc74de9krfrhqljgzcppemhxue69uhkummn9ekx7mp0qgsda2memtapc2lykjnd8t9px4ake2stw39lg6k49xj6u3jz3pteu6qrqsqqqqqp58c9e6 
 Thanks, I'll look into it.  
 nostr:nevent1qqsxchyvxmd8fcseamlvyjt2cstfmpc2l34amkc74de9krfrhqljgzcpzemhxue69uhhwmm59eek7anzd96zu6r0wd6z7q3qm64hnkh6rs47fd9x6wk2zdtmdj4qkazt734d22d94ery9zzhne5qxpqqqqqqz9ev8uy