登录 注册
网络与基础设施开发者工具数据分析与数据处理
6,948
Stars
1,148
Forks
269
Watchers
339
Open Issues
未知
许可证
C
语言
2018-05-29
创建时间
2026-10-29
最近更新

项目能做什么

MTProxy 是由 Telegram 官方开源的简易 MT-Proto 协议代理服务端。它主要解决客户端连接 Telegram 服务器的代理访问问题。核心功能包括支持配置多个访问密钥、多 Worker 工作进程、内置本地运行状态统计,以及支持通过添加 `dd` 前缀启用随机填充(Random padding)模式来应对特定网络检测。
来源:AI 基于仓库事实生成 · 内容以仓库实际 README 为准

使用说明 查看原始 README 原仓库文档

中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
# MTProxy
Simple MT-Proto proxy

## Building
Install dependencies, you would need common set of tools for building from source, and development packages for `openssl` and `zlib`.

On Debian/Ubuntu:
```bash
apt install git curl build-essential libssl-dev zlib1g-dev
```
On CentOS/RHEL:
```bash
yum install openssl-devel zlib-devel
yum groupinstall "Development Tools"
```

Clone the repo:
```bash
git clone https://github.com/TelegramMessenger/MTProxy
cd MTProxy
```

To build, simply run `make`, the binary will be in `objs/bin/mtproto-proxy`:

```bash
make && cd objs/bin
```

If the build has failed, you should run `make clean` before building it again.

## Running
1. Obtain a secret, used to connect to telegram servers.
```bash
curl -s https://core.telegram.org/getProxySecret -o proxy-secret
```
2. Obtain current telegram configuration. It can change (occasionally), so we encourage you to update it once per day.
```bash
curl -s https://core.telegram.org/getProxyConfig -o proxy-multi.conf
```
3. Generate a secret to be used by users to connect to your proxy.
```bash
head -c 16 /dev/urandom | xxd -ps
```
4. Run `mtproto-proxy`:
```bash
./mtproto-proxy -u nobody -p 8888 -H 443 -S <secret> --aes-pwd proxy-secret proxy-multi.conf -M 1
```
... where:
- `nobody` is the username. `mtproto-proxy` calls `setuid()` to drop privileges.
- `443` is the port, used by clients to connect to the proxy.
- `8888` is the local port. You can use it to get statistics from `mtproto-proxy`. Like `wget localhost:8888/stats`. You can only get this stat via loopback.
- `<secret>` is the secret generated at step 3. Also you can set multiple secrets: `-S <secret1> -S <secret2>`.
- `proxy-secret` and `proxy-multi.conf` are obtained at steps 1 and 2.
- `1` is the number of workers. You can increase the number of workers, if you have a powerful server.

Also feel free to check out other options using `mtproto-proxy --help`.

5. Generate the link with following schema: `tg://proxy?server=SERVER_NAME&port=PORT&secret=SECRET` (or let the official bot generate it for you).
6. Register your proxy with [@MTProxybot](https://t.me/MTProxybot) on Telegram.
7. Set received tag with arguments: `-P <proxy tag>`
8. Enjoy.

## Random padding
Due to some ISPs detecting MTProxy by packet sizes, random padding is
added to packets if such mode is enabled.

It's only enabled for clients which request it.

Add `dd` prefix to secret (`cafe...babe` => `ddcafe...babe`) to enable
this mode on client side.

## Systemd example configuration
1. Create systemd service file (it's standard path for the most Linux distros, but you should check it before):
```bash
nano /etc/systemd/system/MTProxy.service
```
2. Edit this basic service (especially paths and params):
```bash
[Unit]
Description=MTProxy
After=network.target

[Service]
Type=simple
WorkingDirectory=/opt/MTProxy
ExecStart=/opt/MTProxy/mtproto-proxy -u nobody -p 8888 -H 443 -S <secret> -P <proxy tag> <other params>
Restart=on-failure

[Install]
WantedBy=m
阅读完整原文

商业机会分析 AI 生成

MTProxy 节点托管与付费连接服务

产品构想搭建高可用、多地域的 MTProxy 节点网络,提供防封锁(带 random padding 特征)的优质专线代理连接。
核心功能动态节点下发、自动更新代理秘钥、多IP轮询防封禁、客户端一键配置直连。
目标用户伊朗、俄罗斯等常态化限制 Telegram 访问地区的个人用户或出海办公团队。
难度/周期中等 · 2-4 周 · 成本:每月数十至数百美元服务器及带宽成本(视规模而定)。
收费模式按月订阅制付费会员,或按流量阶梯收费。
竞争风险IP 地址被网络监管机构屏蔽封锁风险;不同司法管辖区的网络合规与法律风险。
依据 已验证事实

MTProxy 推广位赞助与流量分发平台

产品构想利用 MTProxy 原生支持的 Sponsored Channel(推广频道)功能,提供免运维的代理节点网络,并向需要引流的 Telegram 频道主出租置顶广告位。
核心功能与 @MTProxybot 对接管理 proxy tag、广告展示排期系统、点击与留存效果追踪后台。
目标用户Telegram 内容创作者、加密货币社区、独立出海品牌运营者。
难度/周期低 · 2-3 周 · 成本:节点服务器基础设施成本,获客营销成本。
收费模式按天/周/月收取频道推广赞助费(CPM/固定费率)。
竞争风险官方客户端对 Sponsored Channel 策略的调整;代理被封禁导致流量突然下滑。
依据 已验证事实

商业级 MTProxy 运维管理面板(SaaS 或私有部署)

产品构想针对原生项目仅有 CLI 和简单 HTTP /stats 接口的痛点,开发可视化的节点监控、多密钥权限控制与流量计费管理系统。
核心功能Web 控制台、批量多端口/多 Secret 管理、基于 Prometheus/Grafana 的流量监控告警、自动化证书与配置更新脚本。
目标用户中小型代理服务商、企业 IT 管理员、社群网络管理员。
难度/周期中等 · 1-2 个月 · 成本:开发环境与测试服务器成本。
收费模式商业授权许可费(私有化买断/年订阅)或云端控制台 SaaS 订阅费。
竞争风险原仓库技术栈古老且长期无活跃维护,新特性可能需要直接修改 C 底层代码。
依据 数据支持的判断
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心

竞品与相似项目 GitHub Search 真实检索

项目中文简介Stars语言
telemt/telemt 中文介绍暂未生成
MTProxy for Telegram on Rust + Tokio
5,794 Rust
9seconds/mtg 中文介绍暂未生成
Highly opinionated MTPROTO proxy for Telegram
3,685 Go
sleep3r/mtproto.zig 中文介绍暂未生成
Keep the people you love connected — a tiny self-hosted Tele
2,200 Zig
alexbers/mtprotoproxy 中文介绍暂未生成
Async MTProto proxy for Telegram
2,177 Python
ellermister/mtproxy 中文介绍暂未生成
MTProxyTLS一键安装绿色脚本
1,701 Shell
Mekotofeuka/MTPROTO_FIX_By_MEKO 中文介绍暂未生成
Universal VPN and MTProto/WEB proxy installer & fix - one‑cl
1,548 Shell
以上为通过 GitHub 官方 Search API 检索的相似项目,功能差异与优劣势需进一步人工确认,配置 AI 后可生成对比分析。

项目优势与风险

技术成熟度创建于 2018-05-29,近 30 天仍在推送,发布过 1 个 Release
社区活跃Star 6,948 / Fork 1,148 / Issue 339(数据支持,可自行核实)
许可证未检测到(需人工确认)
主要风险上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价

安装与使用

快速开始(以仓库 README 为准)
git clone https://github.com/TelegramMessenger/MTProxy.git
cd MTProxy
# 请阅读仓库 README 获取确切安装步骤(依赖、配置、启动命令)
阅读原仓库文档
术语说明:Docker=应用容器(把程序和依赖打包运行);API Key=调用外部服务的密钥;Git Clone=把仓库代码下载到本地。常见错误:API Key 未配置 / 端口占用 / 数据库连接失败,多数项目在 README 的 Troubleshooting 章节有说明。