安装
首先安装一下 tar
yum install tar
使用脚本安装 trojan
1
| source <(curl -sL https://git.io/trojan-install)
|
输入证书
切换为 trojan-go
trojan
1
7
开启 udp 支持
修改文件
1
| vim /usr/local/etc/trojan/config.json
|
新增 websocked 支持
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
| "websocket": { "enabled": true, "path": "/djdlanhdaio11hdnh", "hostname": " 域名 & quot;, "obfuscation_password": "", "double_tls": true, "ssl": { "verify": true, "verify_hostname": true, "cert": "/root/.acme.sh/dasdasdasdas111.bigtail.monster_ecc/fullchain.cer", "key": "/root/.acme.sh/dasdasdasdas111.bigtail.monster_ecc/dasdasdasdas111.bigtail.monster.key", "key_password": "", "prefer_server_cipher": false, "sni": " 域名 & quot;, "session_ticket": true, "reuse_session": true, "plain_http_response": "" } }
|
修改服务端的 yaml 文件
1 2 3
| proxies: - {name: hellow.bigtail.monster:36101, server: hellow.bigtail.monster, port: 36101, type: trojan, password: zl5ZwEhS, sni: hellow.bigtail.monster, network: ws, udp: true, ws-opts: {path: /dasdnjsakdnjksandklsandkla}}
|
启动 cloudflare 代理 记得开启 ssl 为严格模式
安装 warp 加速
用于访问 gpt
bash <(curl -fsSL git.io/warp.sh) d