diff --git a/.github/workflows/run.yml b/.github/workflows/run.yml index 9b6abd87..0e909bbe 100644 --- a/.github/workflows/run.yml +++ b/.github/workflows/run.yml @@ -67,13 +67,19 @@ jobs: cp -r ../meta-rules-dat/geo ./ bash ../workflow/resouces/merge_geo_ir.sh ./geo ../Iran-sing-box-rules/ - # - name: RU copy geo rules - # env: - # NO_SKIP: true - # run: | - # cd sing-rule || exit 1 + - name: RU copy geo rules + env: + NO_SKIP: true + run: | + cd sing-rule || exit 1 + curl -o geo/geoip/blocked@ru.srs -sSL https://github.com/runetfreedom/russia-v2ray-rules-dat/raw/refs/heads/release/sing-box/rule-set-geoip/geoip-ru-blocked.srs + curl -o geo/geoip/blocked-community@ru.srs -sSL https://github.com/runetfreedom/russia-v2ray-rules-dat/raw/refs/heads/release/sing-box/rule-set-geoip/geoip-ru-blocked-community.srs + curl -o geo/geoip/re-filter@ru.srs -sSL https://github.com/runetfreedom/russia-v2ray-rules-dat/raw/refs/heads/release/sing-box/rule-set-geoip/geoip-re-filter.srs + curl -o geo/geosite/blocked@ru.srs -sSL https://github.com/runetfreedom/russia-v2ray-rules-dat/raw/refs/heads/release/sing-box/rule-set-geosite/geosite-ru-blocked.srs + curl -o geo/geosite/available-only-inside@ru.srs -sSL https://github.com/runetfreedom/russia-v2ray-rules-dat/raw/refs/heads/release/sing-box/rule-set-geosite/geosite-ru-available-only-inside.srs # curl -o geo/geosite/antizapret@ru.srs -sSL https://github.com/savely-krasovsky/antizapret-sing-box/releases/latest/download/antizapret.srs + - name: maker karing built-in rule-set group env: NO_SKIP: true diff --git a/README.md b/README.md index 690bd3e1..22008080 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,8 @@ - @VPNBrooklynSup (🧑🏻‍💻 پشتیبانی بروکلین «دریچه») - [savely-krasovsky/antizapret-sing-box](https://github.com/savely-krasovsky/antizapret-sing-box/) - Lists of domain and IPs blocked in Russia in Rule Set form +- [runetfreedom/russia-v2ray-rules-dat](https://github.com/runetfreedom/russia-v2ray-rules-dat) + - Этот репозиторий содержит автоматически обновляемые правила маршрутизации V2Ray, основанные на данных о заблокированных доменах и адресах в России. ## Welcome to submit your preferred rule-set - [submit your preferred rule-set](https://github.com/KaringX/karing-ruleset/issues/2) @@ -26,7 +28,8 @@ # GeoIP/GeoSite ## russia -- howto use `antizapret.srs` in karing +- howto use [runetfreedom/russia-v2ray-rules-dat](https://github.com/runetfreedom/russia-v2ray-rules-dat) or [savely-krasovsky/antizapret-sing-box](https://github.com/savely-krasovsky/antizapret-sing-box/) in karing + - be like: `antizapret.srs` - Add New Diversion Group - -> fill in srs url - `https://github.com/savely-krasovsky/antizapret-sing-box/releases/latest/download/antizapret.srs` @@ -34,7 +37,21 @@ - return to Diversion Rules Page, Custom Diversion Group - -> select the newly created Diversion Group - -> Action selection is `Current Select` - - **Note** due to the current large size of the SRS file (about 5MB), it should only be used on **Windows**, there is a possibility of exceeding the memory limit on Android and iOS. + - **Note** Please pay attention to the size of the SRS file, such as being greater than **3M**, it should only be used on **Windows**, there is a possibility of exceeding the memory limit on Android and iOS. + +- The source files of Iran come from **russia-v2ray-rules-dat** + ``` + geoip/ + blocked@ru.srs + blocked-community@ru.srs + re-filter@ru.srs + + geosite + blocked@ru.srs + available-only-inside@ru.srs + + ``` + ## iran diff --git a/resouces/kr_builtin_ruleset.py b/resouces/kr_builtin_ruleset.py index 7c1e9169..6dd5e399 100644 --- a/resouces/kr_builtin_ruleset.py +++ b/resouces/kr_builtin_ruleset.py @@ -235,12 +235,15 @@ OPT_RULESET_GROUPS['cn'] = { ##end china ##start ru -# OPT_RULESET_GROUPS['ru'] = OPT_RULESET_GROUPS['default'].copy() -# OPT_RULESET_GROUPS['ru']['𐰁 antizapret'] = { -# 'default': 'on', -# 'outbound': 'selector_out', -# 'rules': ['geosite:antizapret@ru'], -# } +OPT_RULESET_GROUPS['ru'] = OPT_RULESET_GROUPS['default'].copy() +OPT_RULESET_GROUPS['ru']['🇷🇺 blocked'] = { + 'default': 'on', + 'outbound': 'selector_out', + 'rules': [ + 'geoip/blocked@ru', + 'geosite/blocked@ru', + ], +} ##end ru ##start iran