TG工具-MTProxy

作者:matrix 被围观: 18,579 次 发布时间:2018-08-29 分类:零零星星 | 4 条评论 »

这是一个创建于 2073 天前的主题,其中的信息可能已经有所发展或是发生改变。

MTProxy是专门给Telegram作加密代理的工具,避免平时打开「酸酸乳」之类工具,经常使用TG都订阅了好多消息类的bot,有这样的代理自己搭建更方便打开即用,搭好了之后可以直接点击tg链接即可完成配置。
要搭建此工具需要有一台国外可以正常访问telegram的vps

环境

root@BareInstructive-VM:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 14.04 LTS
Release:    14.04
Codename:   trusty

安装

git clone https://github.com/TelegramMessenger/MTProxy.git
cd MTProxy
make && cd objs/bin
curl -s https://core.telegram.org/getProxySecret -o proxy-secret #获取连接tg的密钥
curl -s https://core.telegram.org/getProxyConfig -o proxy-multi.conf #获取tg服务器ip列表 建议每天定时更新
 head -c 16 /dev/urandom | xxd -ps #使用linux系统创建伪随机数 32长度字符
#生成随机数密钥 31c3f028f2faf77e9ab45d5c209aa02c

开启

./mtproto-proxy -u nobody -p 8888 -H 8181 -S 31c3f028f2faf77e9ab45d5c209aa02c --aes-pwd proxy-secret proxy-multi.conf -M 1

说明:
31c3f028f2faf77e9ab45d5c209aa02c为前面的随机密钥
8888为本地监听的端口 用于查看统计数据: curl localhost:8888/stats
8181为对外提供服务的端口(使用的客户端填写的端口)

图片4050-TG工具-MTProxy

出现main loop就是正常开启

测试

tg中打开链接 OPEN:
https://t.me/proxy?server=tg.hhtjim.com&port=8181&secret=31c3f028f2faf77e9ab45d5c209aa02c

tg://proxy?server=tg.hhtjim.com&port=8181&secret=31c3f028f2faf77e9ab45d5c209aa02c

错误

make编译遇见的问题

  • fatal error: openssl/rand.h: No such file or directory

缺少OpenSSL开发包导致的问题

sudo apt-get install libssl-dev

by:https://linux.cn/article-4147-1.html

  • Makefile:94: recipe for target 'objs/bin/mtproto-proxy' failed
sudo apt-get install zlib1g-dev

by:https://github.com/TelegramMessenger/MTProxy/issues/4

参考:
https://www.jianshu.com/p/d40209b94586
https://github.com/TelegramMessenger/MTProxy
https://liball.me/mtproxy/

一键脚本:https://doub.io/shell-jc7/

其他文章:
本文固定链接:https://www.hhtjim.com/tg-tools-mtproxy.html
matrix
本文章由 matrix 于2018年08月29日发布在零零星星分类下,目前没有通告,你可以至底部留下评论。
转载请注明:TG工具-MTProxy-HHTjim'S 部落格
关键字:,

有4 条评论 »

  1. 不认识 不认识 2018-11-3 23:50:41 +0800#3

    备案的网站你发这个东西,有点不科学啊

    • matrix matrix Moderator 2018-11-7 0:15:32 +0800

      😳 😳 让IM更加科学 :mrgreen:

  2. Mr.ChengPing Mr.ChengPing 2018-9-5 8:02:52 +0800#2

    技术型的博客就是厉害! 😉 😉 😉 😉 😉

  3. 1949啦网 1949啦网 2018-8-31 4:25:35 +0800#1

    这个连接转换工具好强大,有没有可以转换网易云音乐的MV的呢 麻烦大神看看 嘿嘿

添加新评论 »

 🙈 😱 😂 😛 😭 😳 😀 😆 👿 😉 😯 😮 😕 😎 😐 😥 😡 😈 💡

插入图片

NOTICE: You should type some Chinese word (like “你好”) in your comment to pass the spam-check, thanks for your patience!