前言
Telegram的几种内置代理,SOCKS5就不用说了,明文传输一用就被封
MTProxy原来也还好,可惜现在被识别了,不管是官方版还是go语言版,基本没有坚持挺过24小时就被阻断端口,虽然可以换端口,虽然有65535个端口可以换,但还是麻烦。于是在网上找寻解决办法,最后找到了这个 MTG
介绍
MTG 是基于 MTProxy 的一个分支,基于代理的重放攻击的预防,在理论上是不会被干掉的
MTG 代理遵循 ShadowSocks 的方式,并且 MTG 非常的轻量,无论安装还是卸载都非常简单
Github:https://github.com/cutelua/mtg-dist
Github:https://github.com/9seconds/mtg
安装
bash <(wget -qO- https://git.io/mtg.sh)
卸载
systemctl stop mtg && systemctl disable mtg
rm -f /usr/local/bin/mtg /lib/systemd/system/mtg.service /etc/mtg.conf
安装过程
root@hk:~# bash <(wget -qO- https://git.io/mtg.sh)
Verifying archive integrity... 100% All good.
Uncompressing Bullshit-free MTPROTO proxy Bin package [build 2019-06-13] 100%
==================================================
>Random port generated, input another if wish to change, press Enter to continue
65535 #此处输入你要设置的端口号(随机的话直接回车)
>Random secret generated, input another if wish to change, press Enter to continue
#此处输入你要设置的密码,密码是32位(推荐随机,避免出错,直接回车)
#设置完这两项就OK,然后等待安装完成,在最后会给出你的TG代理连接
==================================================
> Using: PORT: 65535, SECRET: 4670a0882e6c3c9a4a7cf5f8e2951434
==================================================
2019-06-16 01:35:46 URL:https://github-production-release-asset-2e65be.s3.amazonaws.com/135544649/3d48d880-8c4f-11e9-961a-0cc88b3c8595?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20190616%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20190616T013543Z&X-Amz-Expires=300&X-Amz-Signature=44c6cba4ec8db288872c8ebbe2996320ab81c6bb4baf5d3ba872b6b77d465578&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dmtg-linux-amd64&response-content-type=application%2Foctet-stream [10776896/10776896] -> "/usr/local/bin/mtg" [1]
FINISHED --2019-06-16 01:35:46--
Total wall clock time: 4.6s
Downloaded: 1 files, 10M in 1.8s (5.82 MB/s)
==================================================
0.16 (go version go1.12.5 linux/amd64) [Tue, 11 Jun 2019 10:44:11 +0000]
Created symlink from /etc/systemd/system/multi-user.target.wants/mtg.service to /lib/systemd/system/mtg.service.
==================================================
>Installation Done. Waiting for service to load ...
>Use the followling url to setup mtproxy in telegram.
tg_url: tg://proxy?port=65535&secret=dd4670a0882e6c3c9a4a7cf5f8e2951434&server=35.220.XXX.XXX,
tme_url: https://t.me/proxy?port=65535&secret=dd4670a0882e6c3c9a4a7cf5f8e2951434&server=35.220.XXX.XXX
tg_url: ,
tme_url:
>Bye.
转载自:https://sunpma.com/151.html
文章评论