A relay in one command
By the end of this page a server of yours is one more door into the IranTalk network. Outside Iran it is installed, registered on the dashboard, and renewing itself. Inside Iran it is installed and running, and listed nowhere.
Tier 2: open internet · Needs internet.
A relay passes traffic and does nothing else. It is a Reticulum transport node: people connect to it over TCP, and it carries their encrypted packets to the rest of the network and back. It answers nothing itself, cannot read what it carries, holds none of the project's keys and keeps no log. When IranTalk's own entry is blocked or down, people still get in through the relays.
A relay is listed only when its server is outside Iran. Once a maintainer approves it, the server's IP address and port are public: they go into the signed list that every channel shows. A relay inside Iran is never registered and never listed, because a public address inside Iran leads to the person who runs the server: install it with --private (section 2). A relay sees the IP addresses of the people who connect through it, never their messages. The script writes none of them down; do not add logging that does.
1. The server
- A fresh Ubuntu 24.04 (or Debian 13), one public IPv4, root access. The smallest server a provider sells is enough.
- At the provider's firewall: TCP port 4242 open inbound. Nothing else is needed.
- For a server abroad: some providers' address ranges are filtered inside Iran and are useless as a door; ask in the
helproom before renting.
2. One command
On the server:
curl -fsSLO https://irantalk.com/relay.sh && sudo bash relay.sh
The first half downloads one file; the second runs it as root. It is a plain text script, and you can read it before you run it (less relay.sh). It carries everything it needs: the entry points of the signed list, and the hash of every package it installs. It does five things:
- Installs Reticulum in a folder of its own, each package checked against its hash.
- Writes one config: a public TCP entry on port 4242, links to IranTalk's own entry points, and links to three public transport nodes so relays reach each other when IranTalk's server is down.
- Runs it as a service, under its own user.
- Registers the relay on the dashboard. The relay signs with the key it made on its first start, and the dashboard lists the address the request came from, after checking that the port answers from outside. No account, nothing to copy or paste.
- Sets a weekly timer that renews the signature. There is nothing to remember every 90 days.
When it ends with "Registered as" and your address, you are done. A maintainer approves it, and it appears in the next signed list as a volunteer relay.
Inside Iran: the same command, unlisted
curl -fsSLO https://irantalk.com/relay.sh && sudo bash relay.sh --private
It installs and runs the same relay, and stops after step 3: nothing is sent to the dashboard, and the relay appears in no list. It ends with "Not listed". Give the server's address and the port yourself, to people you trust; they add it in their app like any other TCP entry. When the link to the outside is cut and the network inside still works, the people connected to your relay still reach each other.
The provider and the network can see that the server is running and what it connects to. Decide first whose name the server is in, and read Before you switch on a radio.
Options, kept for later runs:
sudo bash relay.sh --port 4343: another port, if 4242 is taken.sudo bash relay.sh --host relay.example.org: list it under a DNS name that points at this server, not under its IP.sudo bash relay.sh --private: run the relay without listing it. People reach it only if you give them the address.
With an Offline Inbox: a node
The same script, served as node.sh, also runs an Offline Inbox next to the relay: it holds messages for people who are offline until their app asks for them. It cannot read them. The inbox gets a key of its own, is named "Volunteer Offline Inbox", and is registered next to the relay.
curl -fsSLO https://irantalk.com/node.sh && sudo bash node.sh
On a relay that already runs, sudo bash relay.sh --inbox adds it and --no-inbox takes it away.
Keep a copy
irantalk-node-kit.zip holds both scripts, the signed list they were built from, the instructions and a checksum of each file. Keep it for the day this site cannot be reached, or pass it on: an install from it needs the server's own package mirror and pypi.org, not irantalk.com.
3. Afterwards
sudo irantalk-relay status: the service, its links, and the listing. All links should sayUp. A line likeViolatns. : 200 protocolon the three public links is normal: other programs on the wider network send requests in an older form, and Reticulum counts them and still handles them.- To update, download the file again and run it again. It keeps the relay's key and your options.
sudo irantalk-relay uninstall: stop and remove it. The listing ends when a maintainer retires it, or by itself 90 days after the last renewal.
If it says "nothing answers on TCP port 4242"
The relay runs, but the dashboard could not reach it from outside: a firewall is closed. Open TCP 4242 inbound at the provider, then:
sudo irantalk-relay register
The one secret on the server is the relay's own key, under /var/lib/irantalk-relay. Losing it only means the relay registers again as a new one.
Want the server to offer more than transit, such as an Offline Inbox or a NomadNet node? That is the longer guide: Run and register a node outside Iran.