Loading... # 一、MTProxy > Highly-opinionated (ex-bullshit-free) MTPROTO proxy for [Telegram](https://telegram.org). > > 开源github:[https://github.com/missuo/MTProxy](https://github.com/missuo/MTProxy) ### Supportability - X86_64 - ARM_64 ### Installation ~~~shell bash <(curl -Ls https://qwq.mx/mtg) ~~~ **Due to the CDN cache, jsdelivr link may not be the latest.** ~~~shell bash <(curl -Ls https://cdn.jsdelivr.net/gh/missuo/MTProxy/mtproxy.sh) ~~~ # 二、MTProxy TLS 绿色版一键安装脚本 ### 安装 执行如下代码进行安装 ```bash ## 新建目录 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 bash mtproxy.sh start ``` 调试运行 ```bash bash mtproxy.sh debug ``` 停止服务 ```bash bash mtproxy.sh stop ``` 重启服务 ```bash bash mtproxy.sh restart ``` ### 卸载安装 因为是绿色版卸载极其简单,直接删除所在目录即可。 ```bash rm -rf /home/mtproxy ``` ### 开机启动 ```bash 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 ```bash wget -N --no-check-certificate https://github.com/whunt1/onekeymakemtg/raw/master/mtproxy_go.sh && chmod +x mtproxy_go.sh && bash mtproxy_go.sh ``` > 配置文件在 /usr/local/mtproxy-go/mtproxy.conf ,可以手动修改,配置项详细介绍参见 mtg 文档 go 安装目录在 /tmp/go ,可以手动删除 最后修改:2023 年 11 月 28 日 © 允许规范转载 赞 如果觉得我的文章对你有用,请随意赞赏
此处评论已关闭