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

sing-box can not download rule-set from GitHub and JS Delivr #2142

Closed
4 of 5 tasks
dexedrine-01 opened this issue Sep 27, 2024 · 1 comment
Closed
4 of 5 tasks

sing-box can not download rule-set from GitHub and JS Delivr #2142

dexedrine-01 opened this issue Sep 27, 2024 · 1 comment
Labels
from end user An end user is asking a developer to fix their problem for free invalid This doesn't seem right

Comments

@dexedrine-01
Copy link

Operating system

iOS

System version

iOS 16.5.1

Installation type

sing-box for iOS Graphical Client

If you are using a graphical client, please provide the version of the client.

1.9.5

Version

No response

Description

IMG_0108

Sing-box can’t download rule-set from GitHub or JS Delivr. This error occurs periodically on some devices.

Reproduction

Just start sing-box with rule-set routing.

Configuration:

{
    "log": {
        "disabled": false,
        "level": "info",
        "timestamp": false
    },
    "dns": {
        "servers": [
            {
                "tag": "local-dns",
                "address": "1.1.1.1",
                "detour": "direct"
            },
            {
                "tag": "cloudflare",
                "address": "https://1.1.1.1/dns-query",
                "address_resolver": "local-dns",
                "detour": "proxy"
            }
        ],
        "rules": [
            {
                "outbound": "any",
                "server": "local-dns"
            }
        ],
        "final": "cloudflare",
        "strategy": "ipv4_only",
        "disable_cache": false
    },
    "inbounds": [
        {
            "type": "tun",
            "tag": "tun-in",
            "inet4_address": "172.16.0.1/30",
            "mtu": 1400,
            "auto_route": true,
            "strict_route": true,
            "stack": "mixed",
            "sniff": true,
            "sniff_override_destination": true
        }
    ],
    "outbounds": [
        {
            "type": "urltest",
            "tag": "proxy",
            "outbounds": [
                "Vultr",
                "OVH",
                "Selectel"
            ],
            "url": "",
            "interval": "3m",
            "tolerance": 50,
            "idle_timeout": "15m",
            "interrupt_exist_connections": false
        },
        {
            "type": "vless",
            "tag": "Vultr",
            "server": "",
            "server_port": 8443,
            "flow": "xtls-rprx-vision",
            "tls": {
                "enabled": true,
                "server_name": "",
                "reality": {
                    "enabled": true,
                    "public_key":  ""
                },
                "utls": {
                    "enabled": true,
                    "fingerprint": "chrome"
                }
            },
            "multiplex": {
                "enabled": false,
                "protocol": "h2mux",
                "max_streams": 8
            },
            "uuid": ""
        },
        {
            "type": "vless",
            "tag": "OVH",
            "server": "",
            "server_port": 8443,
            "flow": "xtls-rprx-vision",
            "tls": {
                "enabled": true,
                "server_name": "",
                "reality": {
                    "enabled": true,
                    "public_key": ""
                },
                "utls": {
                    "enabled": true,
                    "fingerprint": "chrome"
                }
            },
            "multiplex": {
                "enabled": false,
                "protocol": "h2mux",
                "max_streams": 8
            },
            "uuid": ""
        },
        {
            "type": "vless",
            "tag": "Selectel",
            "server": "",
            "server_port": 8443,
            "flow": "xtls-rprx-vision",
            "tls": {
                "enabled": true,
                "server_name": "",
                "reality": {
                    "enabled": true,
                    "public_key": ""
                },
                "utls": {
                    "enabled": true,
                    "fingerprint": "chrome"
                }
            },
            "multiplex": {
                "enabled": false,
                "protocol": "h2mux",
                "max_streams": 8
            },
            "uuid": ""
        },
        {
            "type": "direct",
            "tag": "direct"
        },
        {
            "type": "block",
            "tag": "block"
        },
        {
            "type": "dns",
            "tag": "dns-out"
        }
    ],
    "route": {
        "rules": [
            {
                "protocol": "dns",
                "outbound": "dns-out"
            },
            {
                "ip_is_private": true,
                "outbound": "direct"
            },
            {
                "rule_set": "geosite-youtube",
                "outbound": "proxy"
            },
            {
                "rule_set": "geosite-telegram",
                "outbound": "direct"
            },
            {
                "rule_set": "geosite-whatsapp",
                "outbound": "direct"
            },
            {
                "rule_set": "geoip-ru",
                "outbound": "direct"
            },
            {
                "rule_set": "geoip-kz",
                "outbound": "direct"
            },
            {
                "rule_set": "geosite-alibaba",
                "outbound": "proxy"
            },
            {
                "domain_keyword": [
                    "theins.ru",
                    "habr.com",
                    "theins.ru",
                    "tvrain.ru",
                    "echo.msk.ru",
                    "the-village.ru",
                    "snob.ru",
                    "novayagazeta.ru",
                    "play.google.com"
                ],
                "outbound": "proxy"
            },
            {
                "domain_regex": [
                    "\\.(ru|kz)$",
                    "purr",
                    "vscale",
                    "avito",
                    "wildberries",
                    "ozon",
                    "tonapi",
                    "walletteam",
                    "miradres",
                    "hdrezka",
                    "apple",
                    "termius",
                    "coinomi"
                ],
                "outbound": "direct"
            },
            {
                "rule_set": "geosite-google",
                "outbound": "direct"
            },
            {
                "rule_set": "geosite-yandex",
                "outbound": "direct"
            },
            {
                "rule_set": "geosite-vk",
                "outbound": "direct"
            },
            {
                "rule_set": "geosite-apple",
                "outbound": "direct"
            },
            {
                "rule_set": "geosite-itunes",
                "outbound": "direct"
            },
            {
                "rule_set": "geosite-pinterest",
                "outbound": "direct"
            },
            {
                "rule_set": "geosite-tencent",
                "outbound": "direct"
            },
            {
                "rule_set": "geosite-category-gov-ru",
                "outbound": "direct"
            },
            {
                "rule_set": "geosite-category-cryptocurrency",
                "outbound": "direct"
            },
            {
                "rule_set": "geosite-category-ads-all",
                "outbound": "block"
            }
        ],
        "rule_set": [
            {
                "tag": "geoip-ru",
                "type": "remote",
                "format": "binary",
                "url": "https://cdn.jsdelivr.net/gh/SagerNet/sing-geoip@rule-set/geoip-ru.srs",
                "download_detour": "direct"
            },
            {
                "tag": "geoip-kz",
                "type": "remote",
                "format": "binary",
                "url": "https://cdn.jsdelivr.net/gh/SagerNet/sing-geoip@rule-set/geoip-kz.srs",
                "download_detour": "direct"
            },
            {
                "tag": "geosite-yandex",
                "type": "remote",
                "format": "binary",
                "url": "https://cdn.jsdelivr.net/gh/SagerNet/sing-geosite@rule-set/geosite-yandex.srs",
                "download_detour": "direct"
            },
            {
                "tag": "geosite-google",
                "type": "remote",
                "format": "binary",
                "url": "https://cdn.jsdelivr.net/gh/SagerNet/sing-geosite@rule-set/geosite-google.srs",
                "download_detour": "direct"
            },
            {
                "tag": "geosite-youtube",
                "type": "remote",
                "format": "binary",
                "url": "https://cdn.jsdelivr.net/gh/SagerNet/sing-geosite@rule-set/geosite-youtube.srs",
                "download_detour": "direct"
            },
            {
                "tag": "geosite-whatsapp",
                "type": "remote",
                "format": "binary",
                "url": "https://cdn.jsdelivr.net/gh/SagerNet/sing-geosite@rule-set/geosite-whatsapp.srs",
                "download_detour": "direct"
            },
            {
                "tag": "geosite-apple",
                "type": "remote",
                "format": "binary",
                "url": "https://cdn.jsdelivr.net/gh/SagerNet/sing-geosite@rule-set/geosite-apple.srs",
                "download_detour": "direct"
            },
            {
                "tag": "geosite-telegram",
                "type": "remote",
                "format": "binary",
                "url": "https://cdn.jsdelivr.net/gh/SagerNet/sing-geosite@rule-set/geosite-telegram.srs",
                "download_detour": "direct"
            },
            {
                "tag": "geosite-category-gov-ru",
                "type": "remote",
                "format": "binary",
                "url": "https://cdn.jsdelivr.net/gh/SagerNet/sing-geosite@rule-set/geosite-category-gov-ru.srs",
                "download_detour": "direct"
            },
            {
                "tag": "geosite-itunes",
                "type": "remote",
                "format": "binary",
                "url": "https://cdn.jsdelivr.net/gh/SagerNet/sing-geosite@rule-set/geosite-itunes.srs",
                "download_detour": "direct"
            },
            {
                "tag": "geosite-pinterest",
                "type": "remote",
                "format": "binary",
                "url": "https://cdn.jsdelivr.net/gh/SagerNet/sing-geosite@rule-set/geosite-pinterest.srs",
                "download_detour": "direct"
            },
            {
                "tag": "geosite-category-cryptocurrency",
                "type": "remote",
                "format": "binary",
                "url": "https://cdn.jsdelivr.net/gh/SagerNet/sing-geosite@rule-set/geosite-category-cryptocurrency.srs",
                "download_detour": "direct"
            },
            {
                "tag": "geosite-vk",
                "type": "remote",
                "format": "binary",
                "url": "https://cdn.jsdelivr.net/gh/SagerNet/sing-geosite@rule-set/geosite-vk.srs",
                "download_detour": "direct"
            },
            {
                "tag": "geosite-alibaba",
                "type": "remote",
                "format": "binary",
                "url": "https://cdn.jsdelivr.net/gh/SagerNet/sing-geosite@rule-set/geosite-alibaba.srs",
                "download_detour": "direct"
            },
            {
                "tag": "geosite-tencent",
                "type": "remote",
                "format": "binary",
                "url": "https://cdn.jsdelivr.net/gh/SagerNet/sing-geosite@rule-set/geosite-tencent.srs",
                "download_detour": "direct"
            },
            {
                "tag": "geosite-category-ads-all",
                "type": "remote",
                "format": "binary",
                "url": "https://cdn.jsdelivr.net/gh/SagerNet/sing-geosite@rule-set/geosite-category-ads-all.srs",
                "download_detour": "direct"
            }
        ],
        "final": "proxy",
        "auto_detect_interface": true,
        "override_android_vpn": true
    },
    "experimental": {
        "cache_file": {
            "enabled": true
        }
    }
}

Logs

Service logs are empty.

Supporter

Integrity requirements

  • I confirm that I have read the documentation, understand the meaning of all the configuration items I wrote, and did not pile up seemingly useful options or default values.
  • I confirm that I have provided the server and client configuration files and process that can be reproduced locally, instead of a complicated client configuration file that has been stripped of sensitive data.
  • I confirm that I have provided the simplest configuration that can be used to reproduce the error I reported, instead of depending on remote servers, TUN, graphical interface clients, or other closed-source software.
  • I confirm that I have provided the complete configuration files and logs, rather than just providing parts I think are useful out of confidence in my own intelligence.
@dexedrine-01
Copy link
Author

image

Some Android devices also have this issue.

@dyhkwong dyhkwong added invalid This doesn't seem right from end user An end user is asking a developer to fix their problem for free labels Oct 1, 2024
@dyhkwong dyhkwong closed this as not planned Won't fix, can't repro, duplicate, stale Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
from end user An end user is asking a developer to fix their problem for free invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants