基于 Arch Linux
可选:BBR
- 安装软件
1 | sudo pacman -S v2ray caddy |
- 配置 V2Ray
编辑配置文件 /etc/v2ray/vpoint_vmess_freedom.json,在 inbounds 里面加一段配置,path 对应的值自定义,供后续使用,这里用 /ws,id 可随便生成一个 UUID,比如通过 cat /proc/sys/kernel/random/uuid
1 | "streamSettings": { |
另外重要的一点,alterId 改成 0,原因自己查
开启服务:sudo systemctl enable --now v2ray@vpoint_vmess_freedom
- 配置 Caddy
新增配置文件 /etc/caddy/conf.d/xxx
1 | [域名] { |
开启服务:sudo systemctl enable --now caddy
(可选)启动 CDN,隐藏源站 IP(试过 Cloudflare,速度惨不忍睹)
v2rayA客户端配置
| Key | Value |
|---|---|
| Host | 域名 |
| Port | 443 |
| ID | UUID(上面的) |
| AlterID | 0 |
| Security | Auto |
| TLS | tls |
| SNI | 空 |
| uTLS fingerprint | 空 |
| AllowInsecure | 否 |
| Network | WebSocket |
| Host | 域名 |
| Alpn | 空 |
| Path | 上面的 WebSocket 路径 |