Freedom of information. Privacy by design. Named after George Orwell's dystopian novel as a symbol of resistance against censorship.
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
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.
| 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.
βββββββββββββββββββββββββββββββββββββββββββββββββββ
β 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 β
βββββββββββββββββββββββββββββββββββββββββββββββββββ
| 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.
See the full deployment guide in the Wiki.
- 2Γ Hetzner VPS (CX22, Ubuntu 24.04, Helsinki)
- Domain name (e.g.
1984vpn.com) on Cloudflare - Telegram Bot token from @BotFather
# 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 caddycat > /etc/caddy/Caddyfile << 'EOF'
panel.yourdomain.com {
reverse_proxy localhost:8000
}
EOF
systemctl restart caddyAdd to /opt/marzban/.env:
TELEGRAM_API_TOKEN = "your_bot_token"
TELEGRAM_ADMIN_ID = your_telegram_idsudo bash -c "$(curl -sL https://github.com/Gozargah/Marzban-scripts/raw/master/marzban-node.sh)" @ installPlace the SSL client certificate from your Marzban panel (Download certificate button) at:
/var/lib/marzban-node/ssl_client_cert.pem
Generate keys on master:
docker exec marzban-marzban-1 xray x25519Add 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"]
}
}
}]
}- Telegram Stars β native Telegram payment, no KYC
- TON / USDT β crypto via Tegro.Money
- Activation codes β sell on Libermall Marketplace
- Free trial β Paid subscription (monthly/yearly)
- Referral program (2-level)
- White-label for partners (custom bot token)
- Promo codes for marketplace distribution
| Platform | App | Protocol |
|---|---|---|
| iOS | V2Box / Streisand | VLESS+Reality |
| Android | V2RayNG | VLESS+Reality |
| Windows | v2rayN / Hiddify | VLESS+Reality |
| macOS | FoXray / V2Box | VLESS+Reality |
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
| 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.
- 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
MIT License β see LICENSE
| π Website | tegro.money |
| π³ Payments | tegro.money |
| π Marketplace | libermall.com |
| π’ Telegram | @defiton |