部署TG代理
- 更新组件
apt-get update
- 安装
swap
wget https://www.moerats.com/usr/shell/swap.sh && bash swap.sh
- 开启
bbr
echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf
sysctl -p
lsmod | grep bbr
- 安装
docker
wget -qO- get.docker.com | bash
systemctl enable docker # 设置开机自动启动
- 配置
docker-compose.yml
文件
version: "3"
services:
mtproxy:
container_name: mtproxy
restart: always
environment:
- domain=cloudflare.com
- secret=63c45ae7b9ad7f7af2432078bf7d3ed7
- ip_white_list=OFF
- provider=2
ports:
- 8080:80
- 8443:443
image: ellermister/mtproxy
项目地址:https://hub.docker.com/r/ellermister/mtproxy
32位16进制随机数,生成地址:https://www.bejson.com/math/hex_gen/