# Conduit Manager ``` ██████╗ ██████╗ ███╗ ██╗██████╗ ██╗ ██╗██╗████████╗ ██╔════╝██╔═══██╗████╗ ██║██╔══██╗██║ ██║██║╚══██╔══╝ ██║ ██║ ██║██╔██╗ ██║██║ ██║██║ ██║██║ ██║ ██║ ██║ ██║██║╚██╗██║██║ ██║██║ ██║██║ ██║ ╚██████╗╚██████╔╝██║ ╚████║██████╔╝╚██████╔╝██║ ██║ ╚═════╝ ╚═════╝ ╚═╝ ╚═══╝╚═════╝ ╚═════╝ ╚═╝ ╚═╝ M A N A G E R ```      A powerful management tool for deploying and managing Psiphon Conduit nodes on Linux servers. Help users access the open internet during network restrictions. ## Quick Install ```bash curl -sL https://raw.githubusercontent.com/SamNet-dev/conduit-manager/main/conduit.sh | sudo bash ``` Or download and run manually: ```bash wget https://raw.githubusercontent.com/SamNet-dev/conduit-manager/main/conduit.sh sudo bash conduit.sh ``` ## What's New in v1.1 - **Multi-Container Support** — Run up to 5 Conduit containers on a single server for higher throughput - **Background Traffic Tracker** — Continuous tcpdump-based tracker service with per-country GeoIP stats - **Advanced Stats Page** — Live dashboard with top countries by peers, download, upload, and unique IPs (bar charts, auto-refresh) - **Live Dashboard Overhaul** — Side-by-side active clients and top upload by country with real-time bars - **Per-Container Settings** — Configure max-clients and bandwidth individually for each container - **Container Manager** — Add or remove containers on the fly with auto-refreshing status view - **Smart Install** — Detects CPU cores and RAM, recommends container count for your hardware - **Info & Help Hub** — Multi-page guide covering the tracker, stats, containers, privacy, and about - **Service Auto-Recovery** — Automatically restarts failed conduit.service on script launch - **Seamless Upgrade** — Existing v1.0.x users can run the new script without reinstalling; old containers are recognized automatically ## Features - **One-Click Deployment** — Automatically installs Docker and configures everything - **Multi-Container Scaling** — Run 1–5 containers to maximize your server's capacity - **Multi-Distro Support** — Works on Ubuntu, Debian, CentOS, Fedora, Arch, Alpine, openSUSE - **Auto-Start on Boot** — Supports systemd, OpenRC, and SysVinit - **Live Dashboard** — Real-time connection stats with CPU/RAM monitoring and per-country client breakdown - **Advanced Stats** — Top countries by connected peers, download, upload, and unique IPs with bar charts - **Live Peer Traffic** — Real-time traffic table by country with speed, total bytes, and IP/client counts - **Background Tracker** — Continuous traffic monitoring via systemd service with GeoIP resolution - **Per-Container Settings** — Configure max-clients and bandwidth per container - **Easy Management** — Powerful CLI commands or interactive menu - **Backup & Restore** — Backup and restore your node identity keys - **Health Checks** — Comprehensive diagnostics for troubleshooting - **Info & Help** — Built-in multi-page guide explaining how everything works - **Complete Uninstall** — Clean removal of all components ## Supported Distributions | Family | Distributions | |--------|---------------| | Debian | Ubuntu, Debian, Linux Mint, Pop!_OS, Kali, Raspbian | | RHEL | CentOS, Fedora, Rocky Linux, AlmaLinux, Amazon Linux | | Arch | Arch Linux, Manjaro, EndeavourOS | | SUSE | openSUSE Leap, openSUSE Tumbleweed | | Alpine | Alpine Linux | ## CLI Reference After installation, use the `conduit` command: ### Status & Monitoring ```bash conduit status # Show current status and resource usage conduit stats # View live statistics (real-time dashboard) conduit logs # View raw Docker logs conduit health # Run health check diagnostics conduit peers # Live peer traffic by country (GeoIP) ``` ### Rewards ```bash conduit qr # Show QR code to claim rewards via Ryve app ``` ### Container Management ```bash conduit start # Start all Conduit containers conduit stop # Stop all Conduit containers conduit restart # Restart all Conduit containers conduit update # Update to the latest Conduit image ``` ### Configuration ```bash conduit settings # Change max-clients and bandwidth per container conduit menu # Open interactive management menu ``` ### Backup & Restore ```bash conduit backup # Backup your node identity keys conduit restore # Restore node identity from backup ``` ### Maintenance ```bash conduit uninstall # Remove all components conduit version # Show version information conduit help # Show help message ``` ## Interactive Menu The interactive menu (`conduit menu`) provides access to all features: | Option | Description | |--------|-------------| | **1** | View status dashboard — real-time stats with active clients and top upload by country | | **2** | Live connection stats — streaming stats from Docker logs | | **3** | View logs — raw Docker log output | | **4** | Live peers by country — per-country traffic table with speed and client counts | | **5** | Start Conduit | | **6** | Stop Conduit | | **7** | Restart Conduit | | **8** | Update Conduit image | | **9** | Settings & Tools — max-clients, bandwidth, QR code, backup, restore, health check, uninstall | | **c** | Manage containers — add or remove containers (up to 5) | | **a** | Advanced stats — top 5 charts for peers, download, upload, unique IPs | | **i** | Info & Help — multi-page guide with tracker, stats, containers, privacy, about | | **0** | Exit | ## Configuration Options | Option | Default | Range | Description | |--------|---------|-------|-------------| | `max-clients` | 200 | 1–1000 | Maximum concurrent proxy clients per container | | `bandwidth` | 5 | 1–40, -1 | Bandwidth limit per peer (Mbps). Use -1 for unlimited. | **Recommended values based on server hardware:** | CPU Cores | RAM | Recommended Containers | Max Clients (per container) | |-----------|-----|------------------------|-----------------------------| | 1 Core | < 1 GB | 1 | 100 | | 2 Cores | 2 GB | 1–2 | 200 | | 4 Cores | 4 GB+ | 2–3 | 400 | | 8+ Cores | 8 GB+ | 3–5 | 800 | ## Installation Options ```bash # Standard install sudo bash conduit.sh # Force reinstall sudo bash conduit.sh --reinstall # Uninstall everything sudo bash conduit.sh --uninstall # Show help sudo bash conduit.sh --help ``` ## Upgrading from v1.0.x Just run the new script. When prompted, select **"Open management menu"** — your existing container is recognized automatically. No reinstall needed. The background tracker service starts when you next start/restart from the menu. ## Requirements - Linux server (any supported distribution) - Root/sudo access - Internet connection - Minimum 512MB RAM (1GB+ recommended for multi-container) ## How It Works 1. **Detection** — Identifies your Linux distribution and init system 2. **Docker Setup** — Installs Docker if not present 3. **Hardware Check** — Detects CPU/RAM and recommends container count 4. **Container Deployment** — Pulls and runs the official Psiphon Conduit image 5. **Auto-Start Configuration** — Sets up systemd/OpenRC/SysVinit service 6. **Tracker Service** — Starts background traffic tracker with GeoIP resolution 7. **CLI Installation** — Creates the `conduit` management command ## Claim Rewards (OAT Tokens) Conduit node operators can earn OAT tokens for contributing to the Psiphon network. To claim rewards: 1. **Install the Ryve app** on your phone 2. **Create a crypto wallet** within the app 3. **Link your Conduit containers** by scanning the QR code: - From the menu: Select Settings & Tools **Option 6 → Show QR Code & Conduit ID** - From Manage Containers: press **[q]** to display QR code - CLI: `conduit qr` 4. **Scan the QR code** with the Ryve app to link your node 5. **Monitor & earn** — the app shows your last 48 hours of connection activity and OAT token rewards > Each container has its own unique Conduit ID and QR code. If running multiple containers, you'll need to link each one separately. ## Security - **Secure Backups**: Node identity keys are stored with restricted permissions (600) - **No Telemetry**: The manager collects no data and sends nothing externally - **Local Tracking Only**: Traffic stats are stored locally and never transmitted ---