stashapp / stash

An organizer for your porn, written in Go. Documentation: https://docs.stashapp.cc
https://stashapp.cc/
GNU Affero General Public License v3.0
8.78k stars 778 forks source link

Enhancing Routing for Iranian Users in Stash #5084

Open AmirhosseinBrooklyn opened 1 month ago

AmirhosseinBrooklyn commented 1 month ago

Dear Stash Development Team,

Thank you for providing easy access to free internet for people worldwide. I have a few requests to improve the routing in Stash, specifically for Iranian users.

Addition of New Resources for Iranian Users to Stash:

  1. Iran-v2ray-rules

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

  2. iran-hosted-domains

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

Addition of the Following Rules to Stash 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, Stash can provide the most comprehensive and straightforward automatic routing rules for Iran.

Additionally, these points have been considered with the programs Sing-box, Streisand, and Karing in mind. If needed, the esteemed developer can implement them in Stash with a few modifications to achieve the best possible results.

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

Best regards.

feederbox826 commented 1 month ago

Stash is not updated frequently enough for this to be useful, it would be more effective for it to be added at the layer of your vpn or proxy (v2ray) where it is supported, can update frequently and will optimize your routing.