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

服务端屏蔽 geoip CN 命中 1.1.1.1 #2025

Closed
4 of 5 tasks
lvii opened this issue Aug 13, 2024 · 2 comments
Closed
4 of 5 tasks

服务端屏蔽 geoip CN 命中 1.1.1.1 #2025

lvii opened this issue Aug 13, 2024 · 2 comments

Comments

@lvii
Copy link

lvii commented Aug 13, 2024

Operating system

Linux

System version

CentOS

Installation type

Original sing-box Command Line

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

No response

Version

sing-box version 1.9.3

Environment: go1.22.3 linux/amd64
Tags: with_gvisor,with_quic,with_dhcp,with_wireguard,with_ech,with_utls,with_reality_server,with_acme,with_clash_api
Revision: 085f60337799afc906069b540a38368968c123e4
CGO: disabled

Description

服务端屏蔽 CN GEOIP 会将 1.1.1.1 请求 block 掉 ;如果增加 1.1.1.1 直连规则是可以的。

服务端配置:

  "outbounds": [
    {
      "type": "direct",
      "tag": "direct"
    },
    {
      "type": "dns",
      "tag": "dns-out"
    },
    {
      "type": "block",
      "tag": "block"
    }
  ],
  "route": {
    "rules": [
      {
        "protocol": "dns",
        "outbound": "dns-out"
      },
      // {
      //   "ip_cidr": [ "1.1.1.1" ],
      //   "outbound": "direct"
      // },
      {
        "rule_set": [ "geoip-cn" ],
        "domain_suffix": [ ".cn" ],
        "outbound": "block"
      }
    ],
    "rule_set": [
      {
        "tag": "geoip-cn",
        "type": "remote",
        "format": "binary",
        "url": "https://raw.githubusercontent.com/SagerNet/sing-geoip/rule-set/geoip-cn.srs",
        "download_detour": "direct"
      }
    ]
  }

Reproduction

日志:

INFO[0051] [3880622932 0ms] inbound/tuic[0]: [home] inbound connection to 1.1.1.1:443
DEBUG[0051] [3880622932 0ms] router: match[1] domain_suffix=.cn rule_set=geoip-cn => block
INFO[0051] [3880622932 0ms] outbound/block[block]: blocked connection to 1.1.1.1:443

Logs

No response

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.
@scplay
Copy link

scplay commented Oct 9, 2024

1.1.1.1 在 geoip 中的 Location 不是空吗?为什么会被会到 cn 里面呢

@dyhkwong
Copy link
Contributor

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

3 participants