Sign inSign up

superxiao666/singbox

By superxiao666

•Updated 3 months ago

通用开箱即用!V1.13.14 Go 1.25.10 带Web-UI

Image
0

6.3K

superxiao666/singbox repository overview

⁠通用版!开箱即可使用!无需多余配置!

⁠自带UI功能,直接启动即可使用!

⁠自带配置文件,直接启动即可自动加载!

⁠Docker 运行命令:

docker run -d \
  --name ros-proxy \
  --restart unless-stopped \
  --network sdwanDNSL3 \
  --ip x.x.x.x \
  --cap-add NET_ADMIN \
  --cap-add NET_RAW \
  --device /dev/net/tun:/dev/net/tun \
  --sysctl net.ipv4.ip_forward=1 \
  --sysctl net.ipv6.conf.all.disable_ipv6=0 \
  superxiao666/singbox

⁠推荐保存路径:/etc/sing-box/config.json

{
  "log": {
    "level": "info",
    "timestamp": true
  },
  "dns": {
    "servers": [
      {
        "tag": "remote",
        "address": "tls://8.8.8.8",
        "detour": "direct"
      },
      {
        "tag": "local",
        "address": "223.5.5.5",
        "detour": "direct"
      },
      {
        "tag": "block",
        "address": "rcode://success"
      }
    ],
    "rules": [
      {
        "outbound": "any",
        "server": "local"
      }
    ],
    "final": "remote"
  },
  "inbounds": [
    {
      "type": "mixed",
      "tag": "mixed-in",
      "listen": "0.0.0.0",
      "listen_port": 1080,
      "sniff": true,
      "sniff_override_destination": true
    }
  ],
  "outbounds": [
    {
      "type": "direct",
      "tag": "direct"
    },
    {
      "type": "block",
      "tag": "block"
    }
  ],
  "route": {
    "rules": [
      {
        "ip_is_private": true,
        "outbound": "direct"
      }
    ],
    "final": "direct",
    "auto_detect_interface": true
  }
}

⁠Routeros容器使用:

/container add name=xiao-singbox \
    remote-image=superxiao666/singbox:latest \
    interface=你的veth接口 \
    logging=yes \
    start-on-boot=yes

⁠常用完整示例(TUN 模式常用):

/container add name=singbox \
    remote-image=superxiao666/singbox \
    interface=veth-singbox \
    root-dir=usb1/singbox \
    logging=yes start-on-boot=yes

⁠启动后检查:

/container print
/container logs 0   # 或你的编号

⁠特别注意,如果socks5不支持udp,请添加如下配置

⁠解决方案,加上udp block即可

"rules": [
  {
    "network": "udp",
    "outbound": "block"
  },

  {
    "protocol": "dns",
    "action": "hijack-dns"
  }
]

Tag summary

Content type

Image

Digest

sha256:34034dcb7…

Size

55.6 MB

Last updated

3 months ago

docker pull superxiao666/singbox