搭建 Hysteria2 教程

搭建 Hysteria2 教程 适用场景:搭建一个基于 QUIC 的 Hysteria2 代理服务端,利用 sing-box 的 ACME 功能自动签发 TLS 证书,无需手动管理证书文件。 1. 安装 sing-box bash <(curl -fsSL https://sing-box.app/deb-install.sh) 2. 设置开机自启 sudo systemctl enable sing-box 3. 编辑配置文件 cd /etc/sing-box vim config.json 4. Hysteria2 配置示例 { "log": { "disabled": false, "level": "error", "timestamp": true }, "inbounds": [ { "type": "hysteria2", "tag": "hysteria2-in", "listen": "::", "listen_port": 你的端口, "users": [ { "password": "你的密码" } ], "tls": { "enabled": true, "alpn": [ "h3" ], "certificate_path": "", "key_path": "", "acme": { "domain": [ "你的域名" ], "dns01_challenge": { "provider": "cloudflare", "api_token": "你的dns_token" } } } } ], "outbounds": [ { "type": "direct", "tag": "direct" } ] } 配置要点: ...

2026年4月4日

搭建 Naive Proxy

搭建 Naive Proxy 适用场景:搭建一个基于 HTTP/2 与 Chromium 网络栈的 NaiveProxy 代理服务端,客户端流量伪装为普通 HTTPS 访问。本文记录使用 sing-box 搭建的完整流程。 1. 安装 sing-box bash <(curl -fsSL https://sing-box.app/deb-install.sh) sudo systemctl enable sing-box 2. 生成自签证书 sing-box generate tls-keypair bing.com -m 1000 执行后会输出一份私钥和证书。你可以将输出内容分别保存到以下文件中: ...

2026年4月4日

使用 sing-box 搭建 Shadowsocks over ShadowTLS

使用 sing-box 搭建 Shadowsocks over ShadowTLS 适用场景:需要抗主动探测的代理传输方式,用 sing-box 同时提供 ShadowTLS 伪装层与 Shadowsocks 入站。你会学到原理、安装、服务端配置与客户端接入。 原理说明 这种方案本质上是通过 shadow-tls 传输 Shadowsocks 流量。 ...

2024年10月7日