- generate your wireguard keypair and send your public key as a reply to this post or this gist
- input your address to the config file (that I will reply with)
- save the config file as wgnostr.conf
- install wireguard if you haven't already
wg-quick up ./wgnostr.conf
- make a new directory,
npm init
andnpm install nostr
- put udp-nostr.mjs there
- run
node udp-nostr.mjs 127.0.0.1 5555 5556 wg:<name I gave you>
how to generate your wireguard keypair:
wg genkey
to generate your private keywg pubkey
, copy-paste your private key and do Ctrl+D (EOF)- outputted line is your public key
there is firewalling set up on the wireguard interface to prevent people from sending packets to each other and the configuration here also blocks all inbound packets not related to a connection initiated by you.