Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need help to bootstrap sing-box version 1.12.0-alpha.13 with new config changes #2660

Open
nibytes opened this issue Mar 1, 2025 · 0 comments

Comments

@nibytes
Copy link

nibytes commented Mar 1, 2025

Hi guys, it's not a bug, just request for help, I am trying to use new version with new config structure, but can't bootstrap it for work, does anybody help me? What am I doing wrong.

sing-box version 1.12.0-alpha.13

Environment: go1.24.0 windows/amd64
Tags: with_gvisor,with_quic,with_dhcp,with_wireguard,with_utls,with_reality_server,with_acme,with_clash_api,with_tailscale
Revision: d1b7bf80ea1ff9921cf51e8f97d5c926316cc788
CGO: disabled
{
  "log": {
    "disabled": false,
    "level": "info",
    "timestamp": true
  },
  "dns": {
    "independent_cache": true,
    "rules": [
      {
        "domain": ["<Formatted> here I use domain from VLESS config for first touch"],
        "server": "dns-direct"
      }
    ],
    "servers": [
      {
        "tag": "dns-local",
        "type": "local",
        "detour": "direct"
      },
      {
        "tag": "dns-remote",
        "type": "https",
        "server": "1.1.1.1",
        "detour": "proxy"
      },
      {
        "tag": "dns-direct",
        "type": "https",
        "server": "8.8.8.8",
        "detour": "direct"
      }
    ],
    "strategy": "ipv4_only"
  },

  "inbounds": [
    {
      "auto_route": true,
      "domain_strategy": "ipv4_only",
      "endpoint_independent_nat": true,
      "address": ["172.19.0.1/28"],
      "interface_name": "sing-tun",
      "mtu": 9000,
      "sniff_override_destination": false,
      "stack": "gvisor",
      "strict_route": false,
      "tag": "tun-in",
      "type": "tun"
    }
  ],
  "outbounds": [
    {
      "type": "vless",
      "tag": "proxy",
      "server": "<Formatted>",
      "server_port": 443,
      "uuid": "<Formatted>",
      "flow": "xtls-rprx-vision",
      "tls": {
        "enabled": true,
        "server_name": "<Formatted>",
        "utls": {
          "enabled": true,
          "fingerprint": "chrome"
        },
        "reality": {
          "enabled": true,
          "public_key": "<Formatted>",
          "short_id": "<Formatted>"
        }
      }
    },
    {
      "type": "direct",
      "tag": "direct"
    }
  ],
  "route": {
    "rules": [
      {
        "action": "sniff"
      },
      {
        "protocol": "dns",
        "action": "hijack-dns"
      },
      {
        "action": "route",
        "outbound": "proxy",
        "inbound": ["tun-in"],
        "domain": ["google.com"]
      }
    ],
    "default_domain_resolver": "dns-local",
    "auto_detect_interface": true
  }
}

I see this logs

0300 2025-03-01 15:14:13 ←[36mINFO←[0m [←[38;5;85m2801633349←[0m 5.64s] dns: exchanged A ipv4only.arpa. 16353 IN A 192.0.0.171
+0300 2025-03-01 15:14:12 ←[36mINFO←[0m [←[38;5;172m58038940←[0m 5.52s] dns: exchanged A www.google.com. 58 IN A 64.233.162.103
+0300 2025-03-01 15:14:13 ←[36mINFO←[0m [←[38;5;172m58038940←[0m 6.13s] dns: exchanged A www.google.com. 58 IN A 64.233.162.106
+0300 2025-03-01 15:14:13 ←[36mINFO←[0m [←[38;5;172m58038940←[0m 6.13s] dns: exchanged A www.google.com. 58 IN A 64.233.162.105
+0300 2025-03-01 15:14:13 ←[36mINFO←[0m [←[38;5;172m58038940←[0m 6.13s] dns: exchanged A www.google.com. 58 IN A 64.233.162.99
+0300 2025-03-01 15:14:13 ←[36mINFO←[0m [←[38;5;172m58038940←[0m 6.13s] dns: exchanged A www.google.com. 58 IN A 64.233.162.147
+0300 2025-03-01 15:14:13 ←[36mINFO←[0m [←[38;5;172m58038940←[0m 6.13s] dns: exchanged A www.google.com. 58 IN A 64.233.162.104
+0300 2025-03-01 15:14:13 ←[36mINFO←[0m [←[38;5;147m971674755←[0m 5.1s] outbound/direct[direct]: outbound packet connection to 185.179.2.11:53

But internet doesn't work.

If someone could help me and describe what I did wrong in config I will be very appreciate.

Or may be some one can share config for vless reality?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant