Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ”’ 1984 VPN β€” Open Source VPN Infrastructure

Freedom of information. Privacy by design. Named after George Orwell's dystopian novel as a symbol of resistance against censorship.

License: MIT Marzban Protocol Hetzner


πŸ“– About

1984 VPN is a self-hosted commercial VPN service infrastructure built for the Russian-speaking market. This repository contains the complete documentation, configuration templates, and deployment guides for running a production-ready VPN business using:

  • Marzban β€” open source VPN panel
  • VLESS + Reality (XRay) β€” DPI-resistant protocol that bypasses Roskomnadzor blocking
  • Hetzner β€” European hosting infrastructure
  • Telegram β€” distribution channel and admin interface

Why VLESS+Reality?

WireGuard and OpenVPN are actively blocked by Russian DPI (Deep Packet Inspection). VLESS+Reality masks VPN traffic as regular HTTPS, making it virtually undetectable and unblockable.


🌐 Ecosystem & Integrations

Service Purpose Link
Tegro.Money Payment processing & balance top-up tegro.money
Libermall Marketplace VPN key distribution & sales libermall.com
Tegro.money Business portal tegro.money

πŸ’³ Balance top-up is available via Tegro.Money API β€” supporting TON, USDT, and other cryptocurrencies without KYC.

πŸ›’ VPN key distribution is available through Libermall Marketplace β€” buy and sell activation codes.


πŸ—οΈ Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                  CLIENT LAYER                    β”‚
β”‚  Telegram Bot  β”‚  Web Dashboard  β”‚  API          β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                         β”‚
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚              MASTER SERVER (Hetzner)             β”‚
β”‚  Marzban Panel  β”‚  Caddy Proxy  β”‚  SQLite DB     β”‚
β”‚  panel.1984vpn.com                               β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                         β”‚ Marzban Node Protocol
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚               EDGE NODE (Hetzner)                β”‚
β”‚  XRay Core  β”‚  VLESS+Reality  β”‚  No Logs        β”‚
β”‚  "Dirty transit" β€” expendable if compromised     β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Three-Server Design Philosophy

Server Role What it runs
Master Brain Marzban panel, SQLite DB, Caddy reverse proxy
Telegram Bot Sales Customer bot on Railway (aiogram 3)
Edge Node Traffic XRay, VLESS+Reality, zero logs

The Edge Node is intentionally isolated β€” it never knows who users are, only passes encrypted traffic. If seized, no user data is exposed.


⚑ Quick Start

See the full deployment guide in the Wiki.

Prerequisites

  • 2Γ— Hetzner VPS (CX22, Ubuntu 24.04, Helsinki)
  • Domain name (e.g. 1984vpn.com) on Cloudflare
  • Telegram Bot token from @BotFather

1. Deploy Master Server

# Install Marzban
sudo bash -c "$(curl -sL https://github.com/Gozargah/Marzban-scripts/raw/master/marzban.sh)" @ install

# Create admin
marzban cli admin create --sudo

# Install Caddy
apt install -y caddy

2. Configure Caddy (SSL Reverse Proxy)

cat > /etc/caddy/Caddyfile << 'EOF'
panel.yourdomain.com {
    reverse_proxy localhost:8000
}
EOF
systemctl restart caddy

3. Configure Marzban

Add to /opt/marzban/.env:

TELEGRAM_API_TOKEN = "your_bot_token"
TELEGRAM_ADMIN_ID = your_telegram_id

4. Deploy Edge Node

sudo bash -c "$(curl -sL https://github.com/Gozargah/Marzban-scripts/raw/master/marzban-node.sh)" @ install

Place the SSL client certificate from your Marzban panel (Download certificate button) at:

/var/lib/marzban-node/ssl_client_cert.pem

5. Configure VLESS+Reality

Generate keys on master:

docker exec marzban-marzban-1 xray x25519

Add to Marzban Core Settings (JSON):

{
  "inbounds": [{
    "tag": "VLESS TCP REALITY",
    "listen": "0.0.0.0",
    "port": 2053,
    "protocol": "vless",
    "streamSettings": {
      "network": "tcp",
      "security": "reality",
      "realitySettings": {
        "dest": "yahoo.com:443",
        "serverNames": ["yahoo.com"],
        "privateKey": "YOUR_PRIVATE_KEY",
        "shortIds": ["abcd1234"]
      }
    }
  }]
}

πŸ’° Monetization

Payment Options

Business Model

  • Free trial β†’ Paid subscription (monthly/yearly)
  • Referral program (2-level)
  • White-label for partners (custom bot token)
  • Promo codes for marketplace distribution

πŸ“± Client Apps

Platform App Protocol
iOS V2Box / Streisand VLESS+Reality
Android V2RayNG VLESS+Reality
Windows v2rayN / Hiddify VLESS+Reality
macOS FoXray / V2Box VLESS+Reality

πŸ—‚οΈ Repository Structure

1984vpn/
β”œβ”€β”€ docs/               # Documentation
β”‚   β”œβ”€β”€ deployment.md   # Full deployment guide
β”‚   β”œβ”€β”€ node-setup.md   # Edge node setup
β”‚   └── bot-setup.md    # Telegram bot setup
β”œβ”€β”€ configs/            # Configuration templates
β”‚   β”œβ”€β”€ Caddyfile       # Caddy reverse proxy config
β”‚   β”œβ”€β”€ xray-config.json # XRay/VLESS configuration
β”‚   └── marzban.env     # Environment variables template
β”œβ”€β”€ bot/                # Customer Telegram bot (Railway)
β”‚   β”œβ”€β”€ bot.py          # Main bot file
β”‚   β”œβ”€β”€ requirements.txt
β”‚   └── Procfile
└── README.md

πŸ“Š Capacity Planning

CX22 Edge Node (~€7/mo) Users
Light users (5 GB/mo) ~4000
Average users (30 GB/mo) ~650
Heavy users (100 GB/mo) ~200

Scale horizontally by adding edge nodes in different locations.


πŸ” Security Notes

  • Edge nodes are "dirty transit" β€” no user data, expendable
  • Master server should never be the edge node
  • Use Cloudflare proxy for panel domain (hides real IP)
  • Rotate edge node IPs periodically if blocked
  • SSL certificates auto-renewed via Caddy + Let's Encrypt

πŸ“„ License

MIT License β€” see LICENSE


πŸ”— Links

🌐 Website tegro.money
πŸ’³ Payments tegro.money
πŸ›’ Marketplace libermall.com
πŸ“’ Telegram @defiton

About

Complete self-hosted VPN setup with Telegram bot monetization. VLESS+Reality protocol, Marzban panel, Hetzner deployment, Telegram & Tegro + Crypto payments. Start your own VPN business in one day

Topics

Resources

Stars

5 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors