blog icon indicating copy to clipboard operation
blog copied to clipboard

Telegram专用代理MTProxy脚本

Open realDuYuanChao opened this issue 7 years ago • 8 comments

写一个专门用于搭建Telegram代理MTProxy的脚本

https://github.com/shellhub/shellhub/blob/master/proxy/mt_proxy.sh

支持版本

  • Centos
  • Debian/Ubuntu

如何使用

复制到服务器中自动编译安装

wget -N --no-check-certificate https://raw.githubusercontent.com/shellhub/shellhub/master/proxy/mt_proxy.sh && chmod +x mt_proxy.sh && ./mt_proxy.sh

输入用于客服端连接的端口号,可以直接自动生成

Input server port (defalut: Auto Generated):

输入一个32位16进制的密码用于客服端用来验证服务器,回车自动生成

Input secret (defalut: Auto Generated):

完成安装


***************************************************
* Server : 140.82.22.61
* Port   : 1094
* Secret : 3c6c1efb0244e0285a4c3a28ebc6ce9c
***************************************************

Here is a link to your proxy server:
https://t.me/proxy?server=140.82.22.61&port=1094&secret=3c6c1efb0244e0285a4c3a28ebc6ce9c

And here is a direct link for those who have the Telegram app installed:
tg://proxy?server=140.82.22.61&port=1094&secret=3c6c1efb0244e0285a4c3a28ebc6ce9c
***************************************************

客服端链接到代理服务器

  • 可以手动输入ip地址,端口号,密钥进行链接
  • 可以复制https开头的链接到浏览器打开,浏览器自动打开Telegram配置
  • 可以在app里面直接打开tg:开头的链接

视频教程

IMAGE ALT TEXT HERE

realDuYuanChao avatar Jul 18 '18 16:07 realDuYuanChao

怎么卸载?

yangbows avatar Nov 04 '18 16:11 yangbows

怎么卸载?

这个没有安装到硬盘(从源码可知),只是暂时性运行在内存上,如果想停止可以重启服务器,如果不想重启就杀死对应的进程, 方式如下

ps -aux | grep mtproto-proxy

找到对应的pid 然后执行kill pid执行杀死对应进程

realDuYuanChao avatar Nov 05 '18 00:11 realDuYuanChao

刚搭建完成是可以使用的,但是重启VPS后就用不了了,是什么原因呢?

XXDNXB avatar Jan 21 '19 11:01 XXDNXB

刚搭建完成是可以使用的,但是重启VPS后就用不了了,是什么原因呢? 因为我的脚本没有支持开机自启,所以你得重新安装一次

realDuYuanChao avatar Jan 21 '19 11:01 realDuYuanChao

能升级一下吗,加入停止,重启功能,想换个端口。重复服务器太麻烦了。

60999 avatar Jan 23 '19 04:01 60999

后面看看!最近没时间

On Wed, Jan 23, 2019 at 12:12 PM 60999 [email protected] wrote:

能升级一下吗,加入停止,重启功能,想换个端口。重复服务器太麻烦了。

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/shellhub/blog/issues/12#issuecomment-456663641, or mute the thread https://github.com/notifications/unsubscribe-auth/AfEC16NZLPYU7uCT83qjIVod91-fIjbOks5vF-FHgaJpZM4VU6Um .

realDuYuanChao avatar Jan 23 '19 06:01 realDuYuanChao

为什么搭建完成的服务器IP不是我的服务器的呢?

xiaoxiao8868 avatar Jul 13 '19 12:07 xiaoxiao8868

你看看你的外网ip,在服务器上

On Sat, Jul 13, 2019 at 8:46 PM xiaoxiao8868 [email protected] wrote:

为什么搭建完成的服务器IP不是我的服务器的呢?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/shellhub/blog/issues/12?email_source=notifications&email_token=AHYQFV4CAPCWXH5C64CJTOTP7HFB5A5CNFSM4FKTUUTKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZ3RBDQ#issuecomment-511119502, or mute the thread https://github.com/notifications/unsubscribe-auth/AHYQFV3L3HIKRMIKFYQRUHLP7HFB5ANCNFSM4FKTUUTA .

realDuYuanChao avatar Jul 14 '19 01:07 realDuYuanChao