sing-box icon indicating copy to clipboard operation
sing-box copied to clipboard

GeoIP and GeoSite Download Issue

Open AmirhosseinBrooklyn opened this issue 1 year ago • 3 comments

Operating system

iOS

System version

17.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.3

Version

No response

Description

Dear Sing-box Development Team,

I hope this message finds you well. I am writing to bring to your attention an issue I have encountered with the Sing-box iOS client while adding a profile for the first time. The error message displayed is as follows:

Service Error (packet-tunnel) error: start service: initialize rule-set[1]: initial rule-set: geoip-ir: Get "https://raw.githubusercontent.com/Chocolate4U/Iran-sing-box-rules/rule-set/geoip-ir.srs": exchange4: context canceled | exchange6: context canceled | initialize rule-set[1]: initial rule-set: geosite-ir: Get "https://raw.githubusercontent.com/Chocolate4U/Iran-sing-box-rules/rule-set/geosite-ir.srs": context canceled

I am utilizing the popular Hiddify panel in Iran, which requires the download of geoip-ir and geosite-ir for better functionality. However, due to the filtered nature of the download links, I encounter the aforementioned error.

Previously, this issue could be resolved by enabling the "includeAllNetworks" option. However, in the new version 1.9.3, this option is no longer available, and another error links to this issue.

I kindly request that you consider finding a solution for this issue in future versions. Possible solutions could include:

  1. Incorporating geoip-ir and geosite-ir internally within the app.
  2. Resolving the problem with enabling "includeAllNetworks."
  3. Adding a new rule where, if the download links for geosite and geoip encounter an error, the connection to the configs is established globally to allow the download, and then the default Rule Mode is used.

Your assistance in this matter would be greatly appreciated. Thank you for your time and continued support.

Best regards.

IMG_4124

Reproduction

Steps to Reproduce the Issue:

  1. Adding a new remote profile using the Hiddify panel link.
  2. Turning on the VPN service.
  3. The VPN service fails to start and displays the above error.

Logs

No response

Supporter

Integrity requirements

  • [X] 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.
  • [X] 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.
  • [X] 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.
  • [X] 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.

AmirhosseinBrooklyn avatar Jul 20 '24 03:07 AmirhosseinBrooklyn

You don't have your config posted so I'm taking a guess here:

Did you have "route.rule_set[].download_detour" set for your rule-sets? If you don't, try set "download_detour" to be a proxy outbound, and see if it works.

Looks like includeAllNetworks isn't going to be fixed in the near future, and incorporating geosites into sing-box just doesn't fit the logic. You need to tinker your config to make things work.

simplerick-simplefun avatar Jul 20 '24 14:07 simplerick-simplefun

Dear @simplerick-simplefun , Yes, the issue can be resolved by changing the configuration, but I do not want to remove the routing rules from my configuration. However, if a change in the configuration can resolve this problem, please provide your Telegram ID or email so I can send you the configuration. I will also report this issue to the Hiddify panel to have it addressed.

The main issue is that this problem was previously resolved easily with the includeAllNetworks option, as it only required downloading this link once to avoid seeing this error again. Perhaps the Sing-box team can come up with another solution for this matter.

Thank you for your attention to this issue.

AmirhosseinBrooklyn avatar Jul 22 '24 10:07 AmirhosseinBrooklyn

Dear @simplerick-simplefun , Yes, the issue can be resolved by changing the configuration, but I do not want to remove the routing rules from my configuration. However, if a change in the configuration can resolve this problem, please provide your Telegram ID or email so I can send you the configuration. I will also report this issue to the Hiddify panel to have it addressed.

The main issue is that this problem was previously resolved easily with the includeAllNetworks option, as it only required downloading this link once to avoid seeing this error again. Perhaps the Sing-box team can come up with another solution for this matter.

Thank you for your attention to this issue.

I have already said in previous post: Use route.rule_set[].download_detour https://sing-box.sagernet.org/configuration/rule-set/#download_detour This option does not require you to remove/delete any routing rules. Specify which outbound you use for downloading the rule-set files, which should be a proxy outbound if you have problem with downloading the files with direct outbound.

simplerick-simplefun avatar Jul 22 '24 12:07 simplerick-simplefun