108010861087

编译源码

通过SSH链接到自己的服务器

ssh root@140.61.22.18

更新软件包

yum update -y # For Debian/Ubuntu:
apt update -y # For On CentOS/RHEL:

安装对应的依赖包
Debian/Ubuntu:

apt install git curl build-essential libssl-dev zlib1g-dev

CentOS/RHEL

Telegram MTproxy代理搭建完全指南 yum install openssl-devel zlib-devel
yum groupinstall "Development Tools"

获取MTProxy源代码

git clone https://github.com/TelegramMessenger/MTProxy
cd MTProxy # to source directory

编译源代码生成可以执行文件,这里使用make进行编译

make && cd objs/bin
make clean

运行

获取用于链接Telegram服务器的secret

curl -s https://core.telegram.org/getProxySecret -o proxy-secret

获取telegram配置文件

curl -s https://core.telegram.org/getProxyConfig -o proxy-multi.conf

生成一个32位16进制secret用于客服端链接

head -c 16 /dev/urandom | xxd -ps

运行mtproto-proxy

chmod +x mtproto-proxy
./mtproto-proxy -u nobody -p 8888 -H 443 -S <secret> --aes-pwd proxy-secret proxy-multi.conf -M 1
-p 8888-H 443-S 

Telegram客服端链接代理

ServerPortSecret
阅读剩余 0%
本站所有文章资讯、展示的图片素材等内容均为注册用户上传(部分报媒/平媒内容转载自网络合作媒体),仅供学习参考。 用户通过本站上传、发布的任何内容的知识产权归属用户或原始著作权人所有。如有侵犯您的版权,请联系我们反馈本站将在三个工作日内改正。