跳至正文
大神K

编程技术 / Web开发 / AI学习笔记

大神K

编程技术 / Web开发 / AI学习笔记

  • 首页
  • AI
  • 运维
  • 漏洞
  • 安全
  • 逆向
  • 工具
  • 资源
    • 科学上网
  • 资讯
  • 🛒大神商城
  • ✨ 项目展示
  • 👋 关于我
  • 首页
  • AI
  • 运维
  • 漏洞
  • 安全
  • 逆向
  • 工具
  • 资源
    • 科学上网
  • 资讯
  • 🛒大神商城
  • ✨ 项目展示
  • 👋 关于我
关

搜索

大神K

编程技术 / Web开发 / AI学习笔记

大神K

编程技术 / Web开发 / AI学习笔记

  • 首页
  • AI
  • 运维
  • 漏洞
  • 安全
  • 逆向
  • 工具
  • 资源
    • 科学上网
  • 资讯
  • 🛒大神商城
  • ✨ 项目展示
  • 👋 关于我
  • 首页
  • AI
  • 运维
  • 漏洞
  • 安全
  • 逆向
  • 工具
  • 资源
    • 科学上网
  • 资讯
  • 🛒大神商城
  • ✨ 项目展示
  • 👋 关于我
关

搜索

家/网络与科学上网/2026年 搭建 – sing-box
网络与科学上网

2026年 搭建 – sing-box

作者 大神K
2026年4月30日 1 分钟阅读
0

安装

ARCH=$(dpkg --print-architecture)
VERSION=$(curl -fsSL https://api.github.com/repos/SagerNet/sing-box/releases/latest | grep tag_name | cut -d '"' -f 4 | sed 's/v//')
wget -O /tmp/sing-box.deb "https://github.com/SagerNet/sing-box/releases/download/v${VERSION}/sing-box_${VERSION}_linux_${ARCH}.deb"
dpkg -i /tmp/sing-box.deb
sing-box version


开启 BBR 加速

echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf
sysctl -p
sysctl net.ipv4.tcp_congestion_control

生成自签名 TLS 证书

mkdir -p /etc/sing-box/cert
openssl ecparam -genkey -name prime256v1 -out /etc/sing-box/cert/private.key
openssl req -new -x509 -days 36500 -key /etc/sing-box/cert/private.key -out /etc/sing-box/cert/cert.pem -subj "/CN=www.bing.com"
chown -R sing-box:sing-box /etc/sing-box/cert

生成节点密码

openssl rand -base64 16

写入 sing-box 配置文件

cat > /etc/sing-box/config.json <<'EOF'
{
  "log": {
    "level": "warn",
    "timestamp": true
  },
  "inbounds": [
    {
      "type": "hysteria2",
      "tag": "hy2-in",
      "listen": "::",
      "listen_port": 33443,
      "users": [
        {
          "password": "tIIQoFMAtJNc/Pb/3xguHA=="
        }
      ],
      "masquerade": "https://www.bing.com",
      "tls": {
        "enabled": true,
        "alpn": ["h3"],
        "certificate_path": "/etc/sing-box/cert/cert.pem",
        "key_path": "/etc/sing-box/cert/private.key"
      }
    }
  ],
  "outbounds": [
    {
      "type": "direct",
      "tag": "direct"
    }
  ]
}

配置说明:

  • 端口 33443 可以改成其他值(建议 10000-65535 之间的随机数)
  • masquerade 是伪装地址,外人探测时会看到 Bing 首页
  • listen: “::” 表示同时监听 IPv4 和 IPv6

使用

sing-box check -c /etc/sing-box/config.json
systemctl enable --now sing-box
systemctl status sing-box
systemctl restart sing-box
ss -ulnp | grep 33443

配置客户端

按你的实际信息拼接这个链接(密码里的 + 要编码成 %2B,= 要编码成 %3D):
hysteria2://你的密码@你的IP:33443/?sni=www.bing.com&insecure=1#DMIT-LAX-Hy2
示例(假设密码是 tfnS+sRV5AHrT12iCt1Pww==,IP 是 154.21.94.7):
hysteria2://tfnS%2BsRV5AHrT12iCt1Pww%3D%[email protected]:33443/?sni=www.bing.com&insecure=1#DMIT-LAX-Hy2

小火箭右上角 + → 类型选 Hysteria2,依次填:
字段 值     类型 Hysteria2   备注 DMIT-LAX-Hy2   地址 你的 VPS IP   端口 33443   密码 你生成的密码   SNI www.bing.com   允许不安全 ⚠️ 必须开启(自签名证书)
📌 版权声明

文章作者:大神K

原文链接:https://dashenk.com/2026/04/30/2026%e5%b9%b4-%e6%90%ad%e5%bb%ba-sing-box/

版权说明:本文为原创内容,转载请注明出处。

标签:

sing-box搭建教程梯子
作者

大神K

我是一个长期在技术与赚钱之间反复横跳的人。 做过网站、搞过SEO、写过程序,也踩过币圈的坑。 现在在做的事情很简单: 用 AI + 技术,把复杂的事情变简单,把一个人变成一支队伍。 这个网站,不是教程站,而是我的「操作记录」。 一个站长如何做 SEO 和流量 一个开发者如何用 AI 提高效率 一个交易者如何系统性构建赚钱模型 只讲能落地的方案,分享: 真实经验 + 踩过的坑 在这个时代,一个人,也可以是一家公司。

关注我
其他文章
上一个

2026年3X-UI面板搭建教程:一键安装Xray科学上网,轻松自建VPS节点全攻略!🚀

下一个

2026年 搭建 – Hysteria2

暂无评论!成为第一个。

发表回复 取消回复

您的邮箱地址不会被公开。 必填项已用 * 标注

广告 × 广告
广告 × 广告
广告 × 广告
广告 × 广告

Agent AI利用 AI变现 AI大模型 AI工具 API中转站 ChatGPT Claude Cloudflare CVE Epusdt Gemma4 GEO技术 GitHub GPT GPT-Image-2 Hermes Image-2 Linux MacOS系统 OpenClaw POC RackNerd Skills VPS Windows WordPress 下载利器 两性 免费工具 免费模型 大龙虾 小红书 工具使用 开源免费 提示词 搭建 教学 教程 本地运行 梯子 漏洞 爬虫工具 社工库 资源下载

大神K
🚀 AI工具|建站教程|副业变现
用技术改变收入结构
免费获取AI工具合集 →
© 2026 大神K · AI Tools & Growth System