Code Monkey home page Code Monkey logo

iran-sing-box-rules's Introduction

a logo for iran sing-box rules in both dark and light mode

GitHub Workflow Status GitHub release GitHub Release Date License

فارسی

✍️ Introduction

This is an Enhanced and All-in-One set of geo-location routing files optimized for Iranian users to use in sing-box and all its compatible clients.

💡 For V2Ray geolocation rules please refer to Iran V2Ray Rules
💡 For Clash geolocation rules please refer to Iran Clash Rules

⬇️ How to download

github logo in dark and light mode. From GitHub

Rule-Set

New Geo-Assets format introduced in sing-box v1.8.0+ in order to replace GeoIP and GeoSite.
For more information visit rule-set

See here for a list of all supported rule-set assets.

Warning

GeoIP, GeoSite and all .db files in general are deprecated in sing-box v1.8.0+ and you should use Rule-Set instead. Only use .db assets if you are using sing-box v1.7.x and lower.

💡 Rule-Set assets are in these formats: geoip-xx.srs and geosite-xx.srs. Replace xx with your desired category. For example:

Rule-Set https://raw.githubusercontent.com/Chocolate4U/Iran-sing-box-rules/rule-set/geoip-ir.srs
Rule-Set https://raw.githubusercontent.com/Chocolate4U/Iran-sing-box-rules/rule-set/geosite-ir.srs

DB

GeoIP https://raw.githubusercontent.com/Chocolate4U/Iran-sing-box-rules/release/geoip.db
GeoSite https://raw.githubusercontent.com/Chocolate4U/Iran-sing-box-rules/release/geosite.db

GeoIP-Lite https://raw.githubusercontent.com/Chocolate4U/Iran-sing-box-rules/release/geoip-lite.db
GeoSite-Lite https://raw.githubusercontent.com/Chocolate4U/Iran-sing-box-rules/release/geosite-lite.db

Security-IP https://raw.githubusercontent.com/Chocolate4U/Iran-sing-box-rules/release/security-ip.db
Security https://raw.githubusercontent.com/Chocolate4U/Iran-sing-box-rules/release/security.db

github logo in dark and light mode. From jsdelivr CDN

Rule-Set

Rule-Set https://cdn.jsdelivr.net/gh/chocolate4u/Iran-sing-box-rules@rule-set/geoip-ir.srs
Rule-Set https://cdn.jsdelivr.net/gh/chocolate4u/Iran-sing-box-rules@rule-set/geosite-ir.srs

DB

GeoIP https://cdn.jsdelivr.net/gh/chocolate4u/Iran-sing-box-rules@release/geoip.db
GeoSite https://cdn.jsdelivr.net/gh/chocolate4u/Iran-sing-box-rules@release/geosite.db

GeoIP-Lite https://cdn.jsdelivr.net/gh/chocolate4u/Iran-sing-box-rules@release/geoip-lite.db
GeoSite-Lite https://cdn.jsdelivr.net/gh/chocolate4u/Iran-sing-box-rules@release/geosite-lite.db

Security-IP https://cdn.jsdelivr.net/gh/chocolate4u/Iran-sing-box-rules@release/security-ip.db
Security https://cdn.jsdelivr.net/gh/chocolate4u/Iran-sing-box-rules@release/security.db

💻 Usage

sing-box core

Using Rule-Set (Requires sing-box v1.8.0+)

Add the following to your sing-box client configuration:

"outbounds": [
  {
    "type": "direct",
    "tag": "direct"
  },
  {
    "type": "block",
    "tag": "block"
  }
],
"route": {
    "rules": [
      {
        "ip_is_private": true,
        "outbound": "direct"
      },
      {
        "rule_set": [
          "geosite-category-ads-all",
          "geosite-malware",
          "geosite-phishing",
          "geosite-cryptominers",
          "geoip-malware",
          "geoip-phishing"
        ],
        "outbound": "block"
      },
      {
        "rule_set": [
          "geosite-ir",
          "geoip-ir"
        ],
        "outbound": "direct"
      }
    ],
    "rule_set": [
      {
        "tag": "geosite-ir",
        "type": "remote",
        "format": "binary",
        "url": "https://raw.githubusercontent.com/Chocolate4U/Iran-sing-box-rules/rule-set/geosite-ir.srs"
      },
      {
        "tag": "geosite-category-ads-all",
        "type": "remote",
        "format": "binary",
        "url": "https://raw.githubusercontent.com/Chocolate4U/Iran-sing-box-rules/rule-set/geosite-category-ads-all.srs"
      },
      {
        "tag": "geosite-malware",
        "type": "remote",
        "format": "binary",
        "url": "https://raw.githubusercontent.com/Chocolate4U/Iran-sing-box-rules/rule-set/geosite-malware.srs"
      },
      {
        "tag": "geosite-phishing",
        "type": "remote",
        "format": "binary",
        "url": "https://raw.githubusercontent.com/Chocolate4U/Iran-sing-box-rules/rule-set/geosite-phishing.srs"
      },
      {
        "tag": "geosite-cryptominers",
        "type": "remote",
        "format": "binary",
        "url": "https://raw.githubusercontent.com/Chocolate4U/Iran-sing-box-rules/rule-set/geosite-cryptominers.srs"
      },
      {
        "tag": "geoip-ir",
        "type": "remote",
        "format": "binary",
        "url": "https://raw.githubusercontent.com/Chocolate4U/Iran-sing-box-rules/rule-set/geoip-ir.srs"
      },
      {
        "tag": "geoip-malware",
        "type": "remote",
        "format": "binary",
        "url": "https://raw.githubusercontent.com/Chocolate4U/Iran-sing-box-rules/rule-set/geoip-malware.srs"
      },
      {
        "tag": "geoip-phishing",
        "type": "remote",
        "format": "binary",
        "url": "https://raw.githubusercontent.com/Chocolate4U/Iran-sing-box-rules/rule-set/geoip-phishing.srs"
      }
    ]
  },
  "experimental": {
    "cache_file": {
      "enabled": true
    }
  }
Using DB Files

Add the following to your sing-box client configuration:

"outbounds": [
  {
    "type": "direct",
    "tag": "direct"
  },
  {
    "type": "block",
    "tag": "block"
  }
],
"route": {
  "geoip": {
      "download_url": "https://raw.githubusercontent.com/Chocolate4U/Iran-sing-box-rules/release/geoip.db"
  },
  "geosite": {
    "download_url": "https://raw.githubusercontent.com/Chocolate4U/Iran-sing-box-rules/release/geosite.db"
  },
  "rules": [
    {
      "geosite": [
        "category-ads-all",
        "malware",
        "phishing",
        "cryptominers"
      ],
      "outbound": "block"
    },
    {
      "geoip": [
        "malware",
        "phishing"
      ],
      "outbound": "block"
    },
    {
      "geosite": "ir",
      "outbound": "direct"
    },
    {
      "geoip": [
        "ir",
        "private"
      ],
      "outbound": "direct"
    }
  ]
}

📃 Categories

GeoIP

Categories in geoip.db
  • Contains IP Addresses of all countries from Maxmind and IP2Location databases.

  • geoip:ir
    Contains Iran IP addresses from Maxmind and IP2Location databases, IP addresses of Iranian messengers such as eitaa, rubika, etc. and IP addresses of arvancloud, derakcloud, iranserver and parspack CDNs.

  • geoip:private
    Contains a list of local (LAN) IP addresses.

  • geoip:arvancloud
    Contains the IP addresses of ArvanCloud.ir CDN. ℹ️ Integrated in geoip:ir and no longer needed to be written as a separate rule.

  • geoip:derakcloud
    Contains the IP addresses of Derak.cloud CDN. ℹ️ Integrated in geoip:ir and no longer needed to be written as a separate rule.

  • geoip:iranserver
    Contains the IP addresses of IranServer.com CDN. ℹ️ Integrated in geoip:ir and no longer needed to be written as a separate rule.

  • geoip:parspack
    Contains the IP addresses of ParsPack.com CDN. ℹ️ Integrated in geoip:ir and no longer needed to be written as a separate rule.

  • geoip:cloudflare
    Contains the IP addresses of Cloudflare CDN.

  • geoip:google
    Contains the IP addresses of Google, GoogleCloud and GoogleBot.

  • geoip:amazon
    Contains the IP addresses of Amazon and Amazon Web Services (AWS).

  • geoip:microsoft
    Contains the IP addresses of Microsoft and Azure Platform.

  • geoip:bing
    Contains the IP addresses of Bing and Bingbot.

  • geoip:github
    Contains the IP addresses of GitHub.

  • geoip:facebook
    Contains the IP addresses of the Meta ecosystem, including Facebook, Instagram and WhatsApp.

  • geoip:twitter
    Contains the IP addresses of Twitter (now called X!).

  • geoip:telegram
    Contains the IP addresses of Telegram Messenger.

  • geoip:oracle
    Contains the IP addresses of Oracle Cloud.

  • geoip:digitalocean
    Contains the IP addresses of DigitalOcean-related services.

  • geoip:linode
    Contains the IP addresses of Linode-related services.

  • geoip:openai
    Contains the IP addresses of OpenAI and ChatGPT.

  • geoip:phishing
    Contains Phishing IP addresses.

  • geoip:malware
    Contains Active Malware IP addresses.

Categories in geoip-lite.db
  • geoip:ir
    Contains Iran IP addresses from Maxmind and IP2Location databases, IP addresses of Iranian messengers such as eitaa, rubika, etc. and IP addresses of arvancloud, derakcloud, iranserver and parspack CDNs.

  • geoip:private
    Contains a list of local (LAN) IP addresses.

Categories in security-ip.db
  • geoip:phishing
    Contains Phishing IP addresses.

  • geoip:malware
    Contains Active Malware IP addresses.

Categories in geoip-services.db
  • geoip:arvancloud
    Contains the IP addresses of ArvanCloud.ir CDN.

  • geoip:derakcloud
    Contains the IP addresses of Derak.cloud CDN.

  • geoip:iranserver
    Contains the IP addresses of IranServer.com CDN.

  • geoip:parspack
    Contains the IP addresses of ParsPack.com CDN.

  • geoip:cloudflare
    Contains the IP addresses of Cloudflare CDN.

  • geoip:google
    Contains the IP addresses of Google, GoogleCloud and GoogleBot.

  • geoip:amazon
    Contains the IP addresses of Amazon and Amazon Web Services (AWS).

  • geoip:microsoft
    Contains the IP addresses of Microsoft and Azure Platform.

  • geoip:bing
    Contains the IP addresses of Bing and Bingbot.

  • geoip:github
    Contains the IP addresses of GitHub.

  • geoip:facebook
    Contains the IP addresses of the Meta ecosystem, including Facebook, Instagram and WhatsApp.

  • geoip:twitter
    Contains the IP addresses of Twitter (now called X!).

  • geoip:telegram
    Contains the IP addresses of Telegram Messenger.

  • geoip:oracle
    Contains the IP addresses of Oracle Cloud.

  • geoip:digitalocean
    Contains the IP addresses of DigitalOcean-related services.

  • geoip:linode
    Contains the IP addresses of Linode-related services.

  • geoip:openai
    Contains the IP addresses of OpenAI and ChatGPT.

GeoSite

Categories in geosite.db
  • All categories from domain-list-community are supported, plus the following categories:

  • geosite:ir
    Contains non-ir TLD Iranian domains (e.g. .com .net .org etc.) and rules to bypass all .ir domains.

  • geosite:ads
    Contains a list of Persian advertisement and tracking domains.

  • geosite:category-ads-all
    Contains a curated list of Persian and Foreign advertisement and tracking domains based on multiple sources. It is optimized to have as low as possible false positives while also retaining a small size and efficiency.

  • geosite:malware
    Contains a list of active malware domains.

  • geosite:phishing
    Contains a list of scam and phishing domains.

  • geosite:cryptominers
    Contains a list of cryptocurrency miners that run in the background of a web browser and affect system performance.

  • geosite:social
    Contains Domain Addresses of popular social media platforms, including Facebook, Instagram, Whatsapp, Twitter, LinkedIn, MySpace, Pinterest, Tumblr, Reddit, TikTok, clubhouse.

  • geosite:nsfw Contains a list of porn and gambling websites.

Categories in geosite-lite.db
  • geosite:ir
    Contains non-ir TLD Iranian domains (e.g. .com .net .org etc.) with dead domains removed and rules to bypass all .ir domains.
    All IR domains from normal GeoSite get checked every 24 hours and after the removal of non-active domains, will get in this category.
    The test may not be very accurate, so I recommend updating this list daily or regularly.
  • geosite:ads
    Contains a list of Persian advertisement and tracking domains.
Categories in security.db
  • geosite:category-ads-all
    Contains a curated list of Persian and Foreign advertisement and tracking domains based on multiple sources. It is optimized to have as low as possible false positives while also retaining a small size and efficiency.

  • geosite:malware
    Contains a list of active malware domains.

  • geosite:phishing
    Contains a list of scam and phishing domains.

  • geosite:cryptominers
    Contains a list of cryptocurrency miners that run in the background of a web browser and affect system performance.

💁 How is this made?

geoip.db,geoip-lite.db are generated using source code from my fork of sing-geoip. It uses Country.mmdb,Country-lite.mmdb from Iran V2Ray Rules to generate geoip.db,geoip-lite.db.
geosite.db,geosite-lite.db are generated using source code from my fork of sing-geosite. It uses geosite.dat,geosite-lite.dat from Iran V2Ray Rules to generate geosite.db,geosite-lite.db.

🤝 Contribution

All contributions are welcome and appreciated. You can contribute to this project in 2 ways:

  1. Contribute to its upstream sources
    Do you know a Domain that should be bypassed? report it to Iran Hosted Domains
    Do you know a Persian advertisement domain that should be blocked or a false positive? report it to PersianBlocker
    Do you know... OK, you got the idea!
  2. Contribute directly to this project
    Report issues, open pull requests, suggest new sources or categories or any idea, in general, to make this repository more useful for everyone.

🙋‍♂️ Also one more thing, if this repository was useful to you, kindly leave a ⭐ up there so this project can be seen by more people.

©️ License

This project, except for upstream sources, is licensed under the GNU GPLv3 License - see the LICENSE file for details.

All rights are reserved for All upstream sources used in this project according to their respective licenses. Please refer to Sources section for more details.

📦 Sources

GeoIP

Source Maintainer Home Page License Category
GeoLite2 MaxMind Home Page CC BY-SA 4.0 Country IPs
IP2Location LITE IP2Location Home Page CC BY-SA 4.0 Country IPs
ITO GOV ITO GOV Home Page N/A ir(messenger IPs)
V2ray-rules-dat Loyalsoldier Home Page GPL-3.0 cn
Arvan Cloud Arvan Cloud Home Page All rights reserved arvancloud
Derak Cloud Derak Cloud Home Page All rights reserved derakcloud
IranServer IranServer Home Page All rights reserved iranserver
ParsPack ParsPack Home Page All rights reserved parspack
Cloudflare Cloudflare Home Page All rights reserved cloudflare
Telegram Telegram Home Page All rights reserved Telegram
URLhaus abuse.ch Home Page CC0 malware
Phishing URL Blocklist malware-filter Group Home Page MIT phishing
IPRanges lord-alfred Home Page CC0 1.0 everything else

GeoSite

Source Maintainer Home Page License Category
Iran Hosted Domains bootmortis Home Page MIT ir
PersianBlocker MasterKia Home Page AGPL-3.0 ads
DNS Blocklists Hagezi Home Page All rights reserved ads
Ad and tracking server list Peter Lowe Home Page McRae GPL ads
GoodbyeAds jerryn70 Home Page MIT ads
AdGuard DNS filter Adguard Team Home Page GPL-3.0 ads
URLhaus abuse.ch Home Page CC0 malware
Phishing URL Blocklist malware-filter Group Home Page MIT phishing
NoCoin adblock list hoshsadiq Home Page MIT cryptominers
Unified Hosts StevenBlack Home Page MIT social, nsfw
Domain list community Domain list community Home Page MIT everything else

⚠️ Disclaimer

This repository is not affiliated, associated, authorized, endorsed by, or in any way officially connected to any of the aforementioned resources, websites, services, or any entity to which this may concern, in any way.
The data in this repository is gathered from publicly available resources and is provided as-is, intended for informational purposes only with no guarantee of accuracy, liability or availability We are not responsible for any harm or damage that may arise from using the data in this repository. Please do your research before using any data from this repository.

🙏 Special Thanks

  • All maintainers that are mentioned in this project.
  • Project S

iran-sing-box-rules's People

Contributors

chocolate4u avatar hawshemi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

iran-sing-box-rules's Issues

Geoip Af for bypass

با درود
از انجایی که بسیاری از سایت های خبری خارجی در افعانستان مسدود شده است‌، به هنگام استفاده از فیلترشکن آیپی خارجی کاربر برای سایت های دولتی قابل رصد و مشاهده است‌ ، بنابراین در صورت امکان geoip:af را به فایل خود اضافه کنید تا آیپی های داخلی افغانستان در صورت انتخاب کاربر بای پس شود

لازم به ذکر است که مخرن فایل های db شما در هیدیفای نکست قرار گرفته و اگر geoip:af را به فایل geoip.db و geoip.dat اضافه کنید، کمک شایان و بزرگی به مردمان افغانستان در جهت حفظ حریم خصوصی و امنیت آنها خواهید کرد
تعداد آیپی های داخلی این کشور نسبت به ایران کمتر است و طبیعتا حجم زیادی را اشغال نخواهد کرد.

با سپاس از توجه و زحمات شما

درخواست بر مبنای فرمت جدید

درود
در صورت امکان با فرمت جدید srs، موارد زیر را ایجاد و اضافه کنید:
geoip-af
geoip تمام کشور ها
geosite تمام کشور ها
geoip-private

سپاس

Critical request

سه کلاینت زیر منوی انتخاب شکلات در تنظیمات را دارند اما به خاطر هسته‌ی جدید سینگ، فایل های srs شکلات را ندارند و بنابراین کرش می کنند یا با اررور مواجه می شویم. لطفا تغییرات لازمه را به دو ریپو زیر pull request بزنید چرا که من برنامه نویس نیستم و از طرفی کلاینت های جدید با مشکلات و باگ‌های کمتری مواجهند. دو ریپو به شرح ذیل است:

https://github.com/xchacha20-poly1305/husi

https://github.com/maskedeken/NekoBoxForAndroid

https://github.com/MatsuriDayo/NekoBoxForAndroid

لازم به ذکر است کلاینت دوم به دلیل داشتن فرگمنت مورد استفاده بسیاری قرار می گیرد بنابراین پول ریکوئست کلاینت های دوم و سوم یکسان خواهد بود و زحمت آن را متقبل شوید

سپاس بی کران

افزوده شدن geosite google

درود
از انجا که Gemini و NotebookLm گوگل با ایپی امریکا برای کاربران در دسترس است، از شما خواهشمندم geosite:google را به فایل db اضافه کنید چرا که geoip:Google کافی نیست به تنهایی!

سپاس

جئو ایپی افغانستان ظاهرا در فایل db کار می کند

⚠️[Attention] Changes to "geosite:ads"

With the help of some 99% chocolate bars, I realized that after this commit which was mainly for compatibility reasons, and also because people used to category-ads-all for blocking all ads, the new geosite:category-ads-all which was simply a duplicate of geosite:ads is causing the file to become too large. to address this problem I have made the following changes:

👉 geosite:ads will only block Persian Ads now.
👉 geosite:category-ads-all will block All Ads now. Including Persian Ads.

Also I have added new lite edition of files for devices with extremely limited storage space.

Sorry for any inconveniences and please update your configurations accordingly.

عدم بای پس شدن دیجی‌کالا

با فایل های srs شکلات، امروز در باز استفاده کردن از سایت نامبرده با مشکل مواجه شدم چرا که پس از باز شدن سایت، محتوای داخل آن ناقص لود شده و خطای "خطا در دریافت اطلاعات، باشه" را مکررا دیدم تا اینکه سینگ باکس را قطع کردم

Pars Pack

این مورد میشه اضافه بشه؟:
cl.parspack.ir/clpanel

اضافه کردن رنج ای پی های ایران اپدیت 2024

ip Iran 2024.txt
این فایل رنج تمامی ای پی های ایران تا به امروز هست خواستی اپدیت کنی به سایت ip2loctaion مراجعه کن

یه این ادرس تمامی ای پی های ورژن 6 و 4 ایران را به روز میده بهتون
ممنون میشم اپدیت کنی چون بعضی از اپ ها هنوز با اینکه این دیتا رو بهش دادیم ولی میشناسن و باز نمیکنن.
فدات

موقع استفاده از rule set، سایت های ایرانی بالا نمیان

درود، آقا من چندین روزه دارم با این رول ست جدید سر و کله میزنم که فقط سایت های ایرانی رو بایپس کنه ولی نمیشه!

بدون ارور وصل میشه سینگ باکس، ولی سایت های ایرانی رو نمیتونه لود کنه مثل tamin.ir ikco.ir و...

کانفیگم برای برنامه سینگ باکس هست، 2 تا کانکشن هست که خودکار با تست بین این کانفیگ ها انتخاب میکنه، ولی قسمت بایپس کردن سایت های ایرانی کار نمیکنه در صورتی که با مدل قدیمی رول های geoip کار میکرد.

خواهش میکنم لطف کنید یک نگاهی به فایل json من بندازید و اشتباهم رو بهم بگین

example.json

بینهایت متشکرم

GeoIP-Lite and IR CDNs

سلام دوست عزیز.
خسته نباشی.
برام سوال ایجاد شده بود که با توجه به اینکه تو دیتابیس GeoIP هر کدوم از CDN های ایرانی جدا شدن، تو دیتابیس GeoIP-Lite دسته ir شامل IP های مربوط به CDN های ایرانی میشه یا نه؟

مشکل در هنگام استفاده از fake-dns

fake-dns
رو فعال کردم ولی موقع استفاده از رول ست ها به مشکل میخوره
بدون رول ست ها بدون مشکل کار میکنه و فکر کنم مشکل از dns باشه ولی نتونستم مشکل رو حل کنم
config:

{
    "dns": {
        "fakeip": {
            "enabled": true,
            "inet4_range": "198.18.0.0/15",
            "inet6_range": "fc00::/18"
        },
        "independent_cache": true,
        "rules": [
            {
                "domain_suffix": ".ir",
                "server": "dns-direct"
            },
            {
                "rule_set": [
                  "geosite-ir"
                ],
                "server": "dns-direct"
            },
            {
                "disable_cache": true,
                "inbound": [
                    "tun-in"
                ],
                "server": "dns-fake"
            }
        ],
        "servers": [
            {
                "address": "https://8.8.8.8/dns-query",
                "address_resolver": "dns-direct",
                "tag": "dns-remote"
            },
            {
                "address": "1.1.1.1",
                "address_resolver": "dns-local",
                "detour": "direct",
                "tag": "dns-direct"
            },
            {
                "address": "local",
                "detour": "direct",
                "tag": "dns-local"
            },
            {
                "address": "rcode://success",
                "tag": "dns-block"
            },
            {
                "address": "fakeip",
                "address_resolver": "dns-remote",
                "tag": "dns-fake"
            }
        ]
    },
    "experimental": {
        "cache_file": {
            "enabled": true,
            "store_fakeip": true
        },
        "clash_api": {
            "external_controller": "127.0.0.1:9090",
            "external_ui": "fx505",
            "external_ui_download_detour": "direct",
            "external_ui_download_url": "https://github.com/MetaCubeX/metacubexd/archive/gh-pages.zip"
        }
    },
    "inbounds": [
        {
            "listen": "127.0.0.1",
            "listen_port": 6450,
            "override_address": "8.8.8.8",
            "override_port": 53,
            "tag": "dns-in",
            "type": "direct"
        },
        {
            "auto_route": true,
            "exclude_package": [
                "com.android.captiveportallogin",
                "com.biglybt.android.client",
                "org.openobservatory.ooniprobe",
                "org.proninyaroslav.libretorrent"
            ],
            "inet4_address": "172.19.0.1/30",
            "inet6_address": "fdfe:dcba:9876::1/126",
            "platform": {
                "http_proxy": {
                    "enabled": true,
                    "server": "127.0.0.1",
                    "server_port": 2080
                }
            },
            "sniff": true,
            "stack": "gvisor",
            "strict_route": true,
            "type": "tun",
            "tag": "tun-in"
        },
        {
            "domain_strategy": "prefer_ipv4",
            "listen": "127.0.0.1",
            "listen_port": 2080,
            "sniff": true,
            "sniff_override_destination": true,
            "tag": "mixed-in",
            "type": "mixed"
        }
    ],
    "log": {
        "level": "info"
    },
    "outbounds": [
        {
            "tag": "proxy",
            "type": "selector",
            "interrupt_exist_connections": true,
            "outbounds": [
                .....
            ]
        },
        {
            "tag": "🚀 Fastest",
            "type": "urltest",
            "outbounds": [
                ....
            ],
            "idle_timeout": "40m",
            "interval": "20m",
            "url": "https://www.google.com/generate_204",
            "interrupt_exist_connections": true
        },
        {
            "tag": "direct",
            "type": "direct"
        },
        {
            "tag": "bypass",
            "type": "direct"
        },
        {
            "tag": "block",
            "type": "block"
        },
        {
            "tag": "dns-out",
            "type": "dns"
        },
        ....
    ],
    "route": {
        "auto_detect_interface": true,
        "rule_set": [
            {
                "type": "remote",
                "tag": "geosite-ir",
                "format": "binary",
                "download_detour": "bypass",
                "url": "https://cdn.statically.io/gh/chocolate4u/Iran-sing-box-rules@rule-set/geosite-ir.srs"
            },
            {
                "download_detour": "bypass",
                "format": "binary",
                "tag": "geoip-ir",
                "type": "remote",
                "url": "https://cdn.statically.io/gh/chocolate4u/Iran-sing-box-rules@rule-set/geoip-ir.srs"
            },
            {
                "download_detour": "bypass",
                "format": "binary",
                "tag": "geoip-private",
                "type": "remote",
                "url": "https://cdn.statically.io/gh/chocolate4u/Iran-sing-box-rules@rule-set/geoip-private.srs"
            }
        ],
        "rules": [
            {
                "outbound": "dns-out",
                "port": [
                    53
                ]
            },
            {
                "inbound": [
                    "dns-in"
                ],
                "outbound": "dns-out"
            },
            {
                "ip_cidr": [
                    "224.0.0.0/3",
                    "ff00::/8"
                ],
                "outbound": "block",
                "source_ip_cidr": [
                    "224.0.0.0/3",
                    "ff00::/8"
                ]
            },
            {
                "ip_is_private": true,
                "outbound": "direct"
            },
            {
                "domain_suffix": ".ir",
                "outbound": "bypass"
            },
            {
                "rule_set": [
                  "geosite-ir",
                  "geoip-ir"
                ],
                "outbound": "direct"
            }
        ]
    }
}

log:

FATAL[0000] start service: initialize rule-set[2]: initial rule-set: geoip-ir: Get "https://cdn.statically.io/gh/chocolate4u/Iran-sing-box-rules@rule-set/geoip-ir.srs": context canceled>
sing-box.service: Main process exited, code=exited, status=1/FAILURE
sing-box.service: Failed with result 'exit-code'.

درخواست مهم

درود
خواهشمندم لیست اپ های ایرانی در rule-provider کلش به کار گرفته می شوند را در فرمت srs برای سینگ باکس مهیا سازی. در ذیل، نمونه ای به صورت جیسون برای شما اورده شده :
https://github.com/senzyo/sing-box-rules/blob/sing/bm7/Download.json

ودر ادامه با فرمت srs به شرح ذیل است:
"tag": "bm7-Download",
"type": "remote",
"format": "binary",
"url": "https://raw.githubusercontent.com/senzyo/sing-box-rules/sing/bm7/Download.srs",
"download_detour": "direct",
"update_interval": "3d"

    نکته: بخش update_interval به تازگی اضافه شده پس حتی الامکان در مستندات خود بیفزایید تا کاربران به اپدیت خودکار دسترسی داشته باشند.

سپاس

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.