脚本代码出处:

Highly-opinionated (ex-bullshit-free) MTPROTO proxy for Telegram.

开源github:https://github.com/missuo/MTProxy

Supportability

  • X86_64

  • ARM_64

Installation

bash <(curl -Ls https://qwq.mx/mtg)

Due to the CDN cache, jsdelivr link may not be the latest.

bash <(curl -Ls https://cdn.jsdelivr.net/gh/missuo/MTProxy/mtproxy.sh)

MTProxy TLS 绿色版一键安装脚本

安装

执行如下代码进行安装

mkdir /home/mtproxy && cd /home/mtproxy ## 新建目录

curl -s -o mtproxy.sh https://raw.githubusercontent.com/sunpma/mtp/master/mtproxy.sh && chmod +x mtproxy.sh && bash mtproxy.sh ## 开始安装

使用

运行服务 bash mtproxy.sh start

调试运行 bash mtproxy.sh debug

停止服务 bash mtproxy.sh stop

重启服务 bash mtproxy.sh restart

卸载安装

因为是绿色版卸载极其简单,直接删除所在目录即可。

rm -rf /home/mtproxy

开机启动

chmod 755 /home/mtproxy/mtproxy.sh

vi /etc/crontab

## 加入下面这条命令后保存即可;

@reboot root nohup bash /home/mtproxy/mtproxy.sh start > /dev/null 2>&1 &

Mtproto Proxy Go版

因为go版mtproxy代码更新了抗重放攻击等功能后,原作者没有直接放出编译好的程序,所以根据逗比原版一键脚本魔改,直接拉取最新代码进行编译,最新版已经支持 TLS 伪装

脚本说明: Mtproto Proxy Go版 一键编译安装管理脚本
系统支持: CentOS6+ / Debian7+ / Ubuntu14+
使用参考: https://doubibackup.com/es5fj9se.html