IranTalk node kit
=================
Built from IranTalk's signed list, version 11.

A node is a small server outside Iran that gives people one more door into the IranTalk
network. This folder is everything needed to set one up, to keep, and to pass on.


WHAT IS IN THIS FOLDER

  node.sh                 installs a relay with an Offline Inbox: a volunteer's node
  relay.sh                installs a relay only: it passes traffic on and holds nothing
  manifest.json           IranTalk's signed list of addresses, as these scripts were built from
  manifest.json.minisig   its signature
  irantalk.pub            the key that signs it
  SHA256SUMS              the checksum of every file here
  README.txt              this file


WHAT YOU NEED

  - A server OUTSIDE Iran: a fresh Ubuntu 24.04 (or Debian 13), one public IPv4, root access.
    A server inside Iran is never listed; see "Without listing it" below.
  - TCP port 4242 open inbound in the provider's firewall.
  - The server must reach its own package mirror and pypi.org. It does not need irantalk.com.


INSTALL A NODE (a relay with an Offline Inbox)

  1. Copy node.sh to the server. From this folder, on your own computer:

         scp node.sh root@SERVER:

     SERVER is the server's address, as your provider shows it.

  2. On the server:

         sudo bash node.sh


INSTALL A RELAY ONLY

         sudo bash relay.sh


WITHOUT LISTING IT

  It runs, but nothing is sent to IranTalk and it is never published. This is the only form
  for a server inside Iran. People reach it only if you give them its address yourself.

         sudo bash relay.sh --private


AFTERWARDS, ON THE SERVER

         sudo irantalk-relay status       the service, its links, the Offline Inbox, the listing
         sudo irantalk-relay register     sign and submit again now (a timer does it every week)
         sudo irantalk-relay uninstall    stop and remove it (--purge also deletes its keys)


OPTIONS

  --port N            listen on another TCP port (default 4242)
  --host NAME         list it under a DNS name that points at this server
  --private           run it without listing it (--listed turns listing back on)
  --inbox             add an Offline Inbox to a relay (--no-inbox takes it away)

  sudo bash node.sh --help prints the whole text. Run the file again to change an option or
  to update.


WHAT HAPPENS NEXT

  The node registers itself with IranTalk's dashboard: it signs a one-time text with the keys
  it made on first start. A maintainer reviews it. Once approved, the server's address and
  port are published in IranTalk's signed list, where anyone can see them. The signature is
  renewed every week by a timer; there is nothing to remember.

  If the dashboard cannot be reached, the node still runs. Register later with:

         sudo irantalk-relay register


WHAT A NODE SEES

  A relay sees the IP addresses of the people who connect through it, never their messages.
  It writes none of them down. An Offline Inbox holds messages for people who are offline;
  they are encrypted to the person they are for, and it cannot read them.


CHECK THIS KIT

         sha256sum -c SHA256SUMS

  The fingerprint of IranTalk's key is 8D29 B837 BC5C D076 4F64 E3CF 59DB AE8B
  Compare it with the one printed on irantalk.com and in the apps. With minisign installed:

         minisign -Vm manifest.json -p irantalk.pub

  Read the scripts before you run them: they are plain text.


-----------------------------------------------------------------------------------------------

بستهٔ گرهٔ ایران تاک
====================
ساخته‌شده از فهرست امضاشدهٔ ایران تاک، نسخهٔ 11.

گره یک سرور کوچک بیرون از ایران است که یک درِ دیگر به شبکهٔ ایران تاک باز می‌کند. هر چه برای
راه‌اندازی آن لازم است در همین پوشه است: برای نگه داشتن، و برای دادن به دیگران.

آنچه لازم دارید
  - یک سرور بیرون از ایران: Ubuntu 24.04 تازه (یا Debian 13)، یک IPv4 عمومی، دسترسی root.
    سروری که داخل ایران است هرگز فهرست نمی‌شود («بدون فهرست شدن» را ببینید).
  - درگاه TCP شمارهٔ 4242 در دیوار آتش ارائه‌دهنده باز باشد.
  - سرور باید به مخزن بسته‌های خودش و به pypi.org برسد. به irantalk.com نیازی ندارد.

نصب گره (رله همراه با صندوق آفلاین)
  ۱. پروندهٔ node.sh را از همین پوشه روی سرور کپی کنید:

         scp node.sh root@SERVER:

     به جای SERVER نشانی سرور را بگذارید، همان که ارائه‌دهنده نشان می‌دهد.

  ۲. روی سرور:

         sudo bash node.sh

نصب فقط رله

         sudo bash relay.sh

بدون فهرست شدن
  اجرا می‌شود، ولی چیزی برای ایران تاک فرستاده نمی‌شود و هرگز منتشر نمی‌شود. برای سروری که
  داخل ایران است فقط همین شکل درست است.

         sudo bash relay.sh --private

بعد از نصب، روی سرور

         sudo irantalk-relay status       وضعیت سرویس، لینک‌ها، صندوق آفلاین و فهرست
         sudo irantalk-relay register     همین حالا دوباره امضا و ثبت کن
         sudo irantalk-relay uninstall    توقف و حذف

بعد چه می‌شود
  گره خودش را در داشبورد ایران تاک ثبت می‌کند. یکی از نگه‌دارندگان آن را بررسی می‌کند و پس از
  تأیید، نشانی و درگاه سرور در فهرست امضاشدهٔ ایران تاک منتشر می‌شود و همه آن را می‌بینند.
  امضا هر هفته خودکار تمدید می‌شود.

بررسی این بسته

         sha256sum -c SHA256SUMS

  اثر انگشت کلید ایران تاک: 8D29 B837 BC5C D076 4F64 E3CF 59DB AE8B
  آن را با اثر انگشتی که روی irantalk.com و در برنامه‌ها آمده مقایسه کنید.
  پیش از اجرا اسکریپت‌ها را بخوانید: متن ساده‌اند.
