KaringX / karing

Simple & Powerful proxy utility, Support routing rules for clash/sing-box
https://karing.app
2.78k stars 236 forks source link

Enhancing GeoSite and GeoIP Support for Iran #183

Closed AmirhosseinBrooklyn closed 2 months ago

AmirhosseinBrooklyn commented 2 months ago

Dear Karing Development Team,

I hope this message finds you well. I have previously had extensive discussions with the esteemed developer, GooRingX, regarding the improvement of routing, Geosite, and Geoip for Iran in the Karing app. The current implementation is significantly refined compared to its initial state. However, many Iranian websites are still not covered, which can be addressed with some minor adjustments.

Addition of New Resources for Iranian Users to Karing:

  1. https://github.com/Chocolate4U/Iran-v2ray-rules/releases

    Quote: The above link includes both Geosite and Geoip for Iran and is updated almost weekly. Please add both to Karing with the default auto-update resources.

  2. https://github.com/bootmortis/iran-hosted-domains

    Quote: The above link covers domains hosted in Iran with weekly updates. Please add both to Karing with the default auto-update resources.

Addition of the Following Rules to Karing if the User is Iranian:

  1. Direct Domain Detection for .ir using Regex:

    regexp:^.+\.ir$
    regexp:.*\\.ir$
  2. Enable the Following Rules as Direct:

    ext:iran.dat:ir
    ext:iran.dat:other
    geosite:category-ir
    geoip:ir
    geoip:private
  3. Block Iranian Ads:

    ext:iran.dat:ads

By implementing the above default changes for Iranian users of Karing, it can be said that Karing will have the most comprehensive and straightforward automatic routing rules for Iran.

Additionally, the above points have been written considering the Sing-box and Streisand programs. If needed, the esteemed developer can implement them in Karing with a few modifications in the best possible way.

Thank you very much to the esteemed developers of the outstanding Karing client.

Best regards, Brooklyn.

Phoenix-999 commented 2 months ago

@KaringX

Firstly, congratulations on the amazing application. We greatly appreciate your efforts to enhance and improve it.


Auto-Presets Section on the Routing Page:

Given that most users facing extreme censorship are from China, Iran, and Russia, I suggest adding a basic auto-presets section on the Routing Page. This feature would benefit users who may not know how to create custom rules by allowing them to select their desired country easily.

Auto-Presets Section


Custom-made Geo Site & IP Assets:

Adding the ability to include geo assets would be a great improvement. Users could press the '+' sign to add custom-made geo assets files via an active web link (for example, from a GitHub page). An 'Auto Update' button would be beneficial, allowing us to update the active geo assets weekly or daily. Given that most geo assets directories are constantly being updated and changed for each country, this feature would ensure users always have the most current information.

Geo Assets Addition

Here are some resources that might come in handy. I am sure the Chinese and Russian communities also have similar databases.

https://github.com/Chocolate4U/Iran-v2ray-rules https://github.com/bootmortis/iran-hosted-domains


Many of us would be glad to participate and help you create and improve this section.

oldchiken commented 2 months ago

Very interesting and useful

GooRingX commented 2 months ago

Please submit rule additions to https://github.com/KaringX/karing-ruleset