Skip to content

le0nus/mtproxy-setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

mtproxy-setup

One-liner installer for Telemt — a fast Rust-based MTProto proxy for Telegram with Fake TLS support.

Quick Start

curl -fsSL https://raw.githubusercontent.com/le0nus/mtproxy-setup/master/install.sh | sudo bash

Or install with all defaults (no questions asked):

curl -fsSL https://raw.githubusercontent.com/le0nus/mtproxy-setup/master/install.sh | sudo bash -s -- --quick

The interactive installer will ask for:

  • Port (default: 443)
  • TLS masking domain (default: api.vk.com) — makes traffic look like regular HTTPS to this site

After installation, you'll get a ready-to-use tg://proxy?... link.

What it does

  1. Checks that port 443 is free (offers to stop nginx/angie/apache if needed)
  2. Installs Docker if not present (via get.docker.com)
  3. Generates a random 32-byte secret
  4. Creates config files in /opt/telemt/
  5. Pulls and starts the telemt-docker container
  6. Runs health checks
  7. Outputs connection links with ee-prefixed secret (Fake TLS mode)

Requirements

  • Linux (Debian/Ubuntu/CentOS/Fedora)
  • Root access
  • Free port 443

Secret format

The installer generates secrets in EE-TLS format:

ee<32-hex-secret><domain-in-hex>

For example, with domain api.vk.com:

ee90016bf9b326136641e186f21b2d14366170692e766b2e636f6d
^^                                ^^^^^^^^^^^^^^^^^^^^^^
ee prefix                         "api.vk.com" in hex

This tells Telegram clients to use Fake TLS obfuscation, making proxy traffic indistinguishable from regular HTTPS.

Management

# View logs
docker compose -f /opt/telemt/docker-compose.yml logs -f

# Restart
docker compose -f /opt/telemt/docker-compose.yml restart

# Stop
docker compose -f /opt/telemt/docker-compose.yml down

Config files

File Description
/opt/telemt/telemt.toml Telemt configuration
/opt/telemt/docker-compose.yml Docker Compose stack

About

One-liner MTProto proxy (Telemt) installer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages