N的小屋

sing-box代理配置

  • 2026年04月06日 05:50:37
  • 访问次数:1
  • 运维
  • sing-box 代理
{
  "log": {
    "level": "info"
  },
  "dns": {
    "servers": [
      {
        "tag": "cfDns",
        "type": "udp",
        "server": "1.1.1.1"
      }
    ],
    "final": "cfDns",
    "strategy": "ipv4_only"
  },
  "inbounds": [
    {
      "tag": "mixed-in",
      "type": "mixed",
      "listen": "0.0.0.0",
      "listen_port": 12345
    }
  ],
  "outbounds": [
    {
      "type": "vless",
      "tag": "vless-out",
      "server": "your_server_ip",
      "server_port": your_server_port,
      "uuid": "uuid",
      "flow": "xtls-rprx-vision",
      "tls": {
        "enabled": true,
        "server_name": "www.icloud.com",
        "insecure": true,
        "utls": {
          "enabled": true,
          "fingerprint": "chrome"
        },
        "reality": {
          "enabled": true,
          "public_key": "your_public_key",
          "short_id": "your_short_id"
        }
      }
    }
  ],
  "route": {
    "auto_detect_interface": true,
    "final": "vless-out",
    "rules": [
      {
        "inbound": [
          "mixed-in"
        ],
        "action": "sniff"
      }
    ]
  }
}