update configs
This commit is contained in:
@@ -13,7 +13,7 @@
|
|||||||
* **`clash/config/`**
|
* **`clash/config/`**
|
||||||
* `client.yaml` — основной конфиг для десктопных и мобильных клиентов.
|
* `client.yaml` — основной конфиг для десктопных и мобильных клиентов.
|
||||||
* `router.yaml` — конфигурация для роутеров.
|
* `router.yaml` — конфигурация для роутеров.
|
||||||
* `openwrt/` (`clashoo.yaml`) — профиль, адаптированный под OpenWRT.
|
* `openwrt/` (`clashoo.yaml`) — готовая настройка для утилиты **Clashoo** на OpenWRT.
|
||||||
* `wl/` (`full.yaml`, `lite.yaml`) — конфигурации для обхода белых списков.
|
* `wl/` (`full.yaml`, `lite.yaml`) — конфигурации для обхода белых списков.
|
||||||
* **`clash/rules/`**
|
* **`clash/rules/`**
|
||||||
* Кастомные наборы правил для маршрутизации.
|
* Кастомные наборы правил для маршрутизации.
|
||||||
|
|||||||
@@ -0,0 +1,115 @@
|
|||||||
|
{
|
||||||
|
"version": "1",
|
||||||
|
"rules": [
|
||||||
|
{
|
||||||
|
"name": "Browser Subscription",
|
||||||
|
"description": "System critical: do not delete or disable this rule.",
|
||||||
|
"enabled": true,
|
||||||
|
"operator": "AND",
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"headerName": "accept",
|
||||||
|
"operator": "CONTAINS",
|
||||||
|
"value": "text/html",
|
||||||
|
"caseSensitive": true
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"responseType": "BROWSER"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "OpenWRT Mihomo Clients",
|
||||||
|
"description": "Response with generated YAML config (Mihomo Template)",
|
||||||
|
"enabled": true,
|
||||||
|
"operator": "AND",
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"headerName": "user-agent",
|
||||||
|
"operator": "REGEX",
|
||||||
|
"value": "^(?:nikki)",
|
||||||
|
"caseSensitive": false
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"responseType": "MIHOMO",
|
||||||
|
"responseModifications": {
|
||||||
|
"subscriptionTemplate": "Router"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Mihomo Clients",
|
||||||
|
"description": "Response with generated YAML config (Mihomo Template)",
|
||||||
|
"enabled": true,
|
||||||
|
"operator": "AND",
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"headerName": "user-agent",
|
||||||
|
"operator": "REGEX",
|
||||||
|
"value": "^(?:flclash|flowvy|murge|mihomo|prizrak-box|koala-clash|clash(?:-verge|-nyanpasu|x meta|[-.]?meta))",
|
||||||
|
"caseSensitive": false
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"responseType": "MIHOMO",
|
||||||
|
"responseModifications": {
|
||||||
|
"subscriptionTemplate": "Client"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Stash (iOS, macOS)",
|
||||||
|
"description": "Response with generated YAML config (Stash Template)",
|
||||||
|
"enabled": true,
|
||||||
|
"operator": "AND",
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"headerName": "user-agent",
|
||||||
|
"operator": "REGEX",
|
||||||
|
"value": "^stash",
|
||||||
|
"caseSensitive": false
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"responseType": "STASH"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Sing-box clients",
|
||||||
|
"description": "Response with generated JSON config (Singbox template)",
|
||||||
|
"enabled": true,
|
||||||
|
"operator": "AND",
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"headerName": "user-agent",
|
||||||
|
"operator": "REGEX",
|
||||||
|
"value": "^sfa|sfi|sfm|sft|karing|singbox|inhive",
|
||||||
|
"caseSensitive": false
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"responseType": "SINGBOX",
|
||||||
|
"responseModifications": {
|
||||||
|
"subscriptionTemplate": "Client"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Clash Core Clients",
|
||||||
|
"description": "Response with generated YAML config (Clash Template)",
|
||||||
|
"enabled": true,
|
||||||
|
"operator": "AND",
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"headerName": "user-agent",
|
||||||
|
"operator": "REGEX",
|
||||||
|
"value": "^clash",
|
||||||
|
"caseSensitive": false
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"responseType": "CLASH",
|
||||||
|
"responseModifications": {
|
||||||
|
"subscriptionTemplate": "Client"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Fallback Base64",
|
||||||
|
"description": "System critical: do not delete or disable this rule.",
|
||||||
|
"enabled": true,
|
||||||
|
"operator": "AND",
|
||||||
|
"conditions": [],
|
||||||
|
"responseType": "XRAY_BASE64"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
File diff suppressed because one or more lines are too long
+47
-11
@@ -1,24 +1,60 @@
|
|||||||
## 📱 Клиенты
|
# 📖 Руководство по выбору клиентов и настройке подписок
|
||||||
|
|
||||||
|
> **В данном документе собрано всё необходимое для быстрой настройки подключения:**
|
||||||
|
> * **[Клиентские приложения](#-клиенты)** — подборка рекомендуемых программ для всех ОС.
|
||||||
|
> * **[Логика маршрутизации](#️-как-работает-белый-список)** — принцип работы маршрутизации конфига белого списка.
|
||||||
|
> * **[Файлы конфигураций](#-ссылки-на-конфигурации)** — прямые ссылки на шаблоны.
|
||||||
|
> * **[Инструкции по импорту](#-варианты-подключения)** — пошаговые гайды по подключению подписки через direct-ссылку или Override/Merge скрипты (FlClash, Clash Party, Clash Verge Rev).
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 📑 Оглавление
|
||||||
|
|
||||||
|
1. [📱 Клиенты](#-клиенты)
|
||||||
|
* [💻 Windows / Linux](#-windows--linux)
|
||||||
|
* [📱 Android](#-android)
|
||||||
|
* [🍎 iOS / macOS](#-ios--macos)
|
||||||
|
* [🌐 OpenWRT](#-openwrt)
|
||||||
|
* [⚠️ Важные особенности и ограничения клиентов](#️-важные-особенности-и-ограничения-клиентов)
|
||||||
|
2. [📡 Настройка профилей и подписок](#-настройка-профилей-и-подписок)
|
||||||
|
* [🛡️ Как работает «Белый список»?](#️-как-работает-белый-список)
|
||||||
|
* [🎛️ Инструкция для FlClashX: Выбор режимов и серверов](#️-инструкция-для-flclashx-белый-список-выбор-режимов-и-серверов)
|
||||||
|
* [🌐 Группа GLOBAL](#-группа-global-появляется-только-в-режиме-глобальный)
|
||||||
|
* [⚡ Группа PROXY](#-группа-proxy-выбор-основного-сервера)
|
||||||
|
* [🌐 Откуда берутся правила?](#-откуда-берутся-правила)
|
||||||
|
* [⚡ В чём разница между Full и Lite?](#-в-чём-разница-между-full-и-lite)
|
||||||
|
3. [🔗 Ссылки на конфигурации](#-ссылки-на-конфигурации)
|
||||||
|
4. [🚀 Варианты подключения](#-варианты-подключения)
|
||||||
|
* [Способ 1: Прямая ссылка (Рекомендуемый)](#способ-1-прямая-ссылка-рекомендуемый)
|
||||||
|
* [Способ 2: Через переопределение (Override / Merge)](#способ-2-через-переопределение-override--merge)
|
||||||
|
* [FLClash / FlClashX](#flclash--flclashx)
|
||||||
|
* [Clash Party](#clash-party)
|
||||||
|
* [Clash Verge Rev](#clash-verge-rev)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 📱 Клиенты [🔗 Все клиенты](https://docs.rw/clients)
|
||||||
|
|
||||||
> 💡 **Рекомендуемые приложения:**
|
> 💡 **Рекомендуемые приложения:**
|
||||||
> * **Android:** **FlClashX**
|
> * **Android:** **FlClashX**
|
||||||
> * **iOS:** **Karing**
|
> * **iOS:** **Rabbit Hole**
|
||||||
> * **Windows:** **Koala Clash**
|
> * **Windows:** **FlClashX** или **Koala Clash**
|
||||||
>
|
|
||||||
>
|
>
|
||||||
> **Почему они?** Эти клиенты автоматически подтягивают лучшую конфигурацию с правильными правилами маршрутизации и поддерживают передачу **HWID** для корректной авторизации подписки.
|
> **Почему они?** Эти клиенты автоматически подтягивают лучшую конфигурацию с правильными правилами маршрутизации и поддерживают передачу **HWID** для корректной авторизации подписки.
|
||||||
|
|
||||||
### 💻 Windows
|
---
|
||||||
|
|
||||||
|
### 💻 [Windows](https://docs.rw/clients/#windows) • 🐧 [Linux](https://docs.rw/clients/#linux)
|
||||||
|
|
||||||
| Клиент | Ядро | Ссылка |
|
| Клиент | Ядро | Ссылка |
|
||||||
| --- | --- | --- |
|
| --- | --- | --- |
|
||||||
|
| **FlClashX** | Mihomo | [GitHub](https://github.com/pluralplay/FlClashX/releases/latest) |
|
||||||
| **Koala Clash** | Mihomo | [GitHub](https://github.com/coolcoala/koala-clash/releases/latest) |
|
| **Koala Clash** | Mihomo | [GitHub](https://github.com/coolcoala/koala-clash/releases/latest) |
|
||||||
| **FlClashX** | Mihomo | [GitHub](https://github.com/pluralplay/FlClashX/releases/latest) |
|
|
||||||
| **Karing** | Universal | [GitHub](https://github.com/KaringX/karing/releases/latest) |
|
| **Karing** | Universal | [GitHub](https://github.com/KaringX/karing/releases/latest) |
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
### 🤖 Android
|
### 📱 [Android](https://docs.rw/clients/#android)
|
||||||
|
|
||||||
| Клиент | Ядро | Ссылка |
|
| Клиент | Ядро | Ссылка |
|
||||||
| --- | --- | --- |
|
| --- | --- | --- |
|
||||||
@@ -27,11 +63,13 @@
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
### 🍏 iOS / macOS
|
### 🍎 [iOS](https://docs.rw/clients/#ios) • 👛 [macOS](https://docs.rw/clients/#macos)
|
||||||
|
|
||||||
| Клиент | Ядро | Ссылка |
|
| Клиент | Ядро | Ссылка |
|
||||||
| --- | --- | --- |
|
| --- | --- | --- |
|
||||||
| **Clash Mi** | Mihomo | [App Store](https://apps.apple.com/us/app/clash-mi/id6744321968) |
|
| **Rabbit Hole** | Mihomo | [App Store](https://apps.apple.com/app/rabbithole-vpn-client/id6683309629) |
|
||||||
|
| **FlClashX** | Mihomo | [GitHub](https://github.com/pluralplay/FlClashX/releases/latest) |
|
||||||
|
| **Koala Clash** | Mihomo | [GitHub](https://github.com/coolcoala/koala-clash/releases/latest) |
|
||||||
| **Karing** | Universal | [App Store](https://apps.apple.com/app/karing/id6472431552) |
|
| **Karing** | Universal | [App Store](https://apps.apple.com/app/karing/id6472431552) |
|
||||||
|
|
||||||
---
|
---
|
||||||
@@ -50,11 +88,9 @@
|
|||||||
* **Clash Verge Rev / Clash Party**:
|
* **Clash Verge Rev / Clash Party**:
|
||||||
* ❌ **Не поддерживает передачу HWID** в заголовках запросов при получении подписки.
|
* ❌ **Не поддерживает передачу HWID** в заголовках запросов при получении подписки.
|
||||||
|
|
||||||
|
|
||||||
* **Karing**:
|
* **Karing**:
|
||||||
* ⚠️ **Поддерживает автоматическое подтягивание правил**, но они могут слегка отличаться от главного конфига Mihomo.
|
* ⚠️ **Поддерживает автоматическое подтягивание правил**, но они могут слегка отличаться от главного конфига Mihomo.
|
||||||
|
|
||||||
|
|
||||||
* **Koala Clash / FlClashX**:
|
* **Koala Clash / FlClashX**:
|
||||||
* 🟢 Полноценные клиенты на базе ядра **Mihomo**, поддерживают все необходимое.
|
* 🟢 Полноценные клиенты на базе ядра **Mihomo**, поддерживают все необходимое.
|
||||||
|
|
||||||
|
|||||||
+134
-107
File diff suppressed because one or more lines are too long
+120
-68
@@ -1,3 +1,27 @@
|
|||||||
|
anchors:
|
||||||
|
reserved_ips: &reserved_ips
|
||||||
|
- 0.0.0.0/8
|
||||||
|
- 10.0.0.0/8
|
||||||
|
- 100.64.0.0/10
|
||||||
|
- 127.0.0.0/8
|
||||||
|
- 169.254.0.0/16
|
||||||
|
- 172.16.0.0/12
|
||||||
|
- 192.0.0.0/24
|
||||||
|
- 192.0.2.0/24
|
||||||
|
- 192.88.99.0/24
|
||||||
|
- 192.168.0.0/16
|
||||||
|
- 198.51.100.0/24
|
||||||
|
- 203.0.113.0/24
|
||||||
|
- 224.0.0.0/3
|
||||||
|
|
||||||
|
dns_ru: &dns_ru
|
||||||
|
- https://77.88.8.8/dns-query#DIRECT
|
||||||
|
- https://8.8.8.8/dns-query#DIRECT
|
||||||
|
|
||||||
|
dns_proxy: &dns_proxy
|
||||||
|
- https://1.1.1.1/dns-query#VPN
|
||||||
|
- https://dns.google/dns-query#VPN
|
||||||
|
|
||||||
mode: rule
|
mode: rule
|
||||||
ipv6: false
|
ipv6: false
|
||||||
log-level: warning
|
log-level: warning
|
||||||
@@ -5,17 +29,19 @@ allow-lan: false
|
|||||||
tproxy-port: 7894
|
tproxy-port: 7894
|
||||||
unified-delay: true
|
unified-delay: true
|
||||||
tcp-concurrent: true
|
tcp-concurrent: true
|
||||||
|
enable-process: false
|
||||||
|
find-process-mode: off
|
||||||
|
keep-alive-idle: 120
|
||||||
|
keep-alive-interval: 30
|
||||||
|
routing-mark: 2
|
||||||
external-controller: 0.0.0.0:9090
|
external-controller: 0.0.0.0:9090
|
||||||
external-ui: ./ui
|
external-ui: ./ui
|
||||||
external-ui-url: "https://github.com/MetaCubeX/metacubexd/archive/refs/heads/gh-pages.zip"
|
external-ui-url: "https://github.com/MetaCubeX/metacubexd/archive/refs/heads/gh-pages.zip"
|
||||||
|
|
||||||
# geodata-mode: true
|
profile:
|
||||||
# geo-auto-update: true
|
store-selected: true
|
||||||
# geo-update-interval: 24
|
store-fake-ip: true
|
||||||
# geox-url:
|
tracing: false
|
||||||
# geoip: "https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/geoip.dat"
|
|
||||||
# geosite: "https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/geosite.dat"
|
|
||||||
# mmdb: "https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/country.mmdb"
|
|
||||||
|
|
||||||
dns:
|
dns:
|
||||||
enable: true
|
enable: true
|
||||||
@@ -27,20 +53,9 @@ dns:
|
|||||||
ipv6: false
|
ipv6: false
|
||||||
enhanced-mode: fake-ip
|
enhanced-mode: fake-ip
|
||||||
fake-ip-range: 198.18.0.1/16
|
fake-ip-range: 198.18.0.1/16
|
||||||
default-nameserver:
|
|
||||||
- 1.1.1.1
|
|
||||||
- 1.0.0.1
|
|
||||||
- 8.8.8.8
|
|
||||||
- 8.8.4.4
|
|
||||||
nameserver:
|
|
||||||
- https://dns10.quad9.net/dns-query
|
|
||||||
- https://dns.aa.net.uk/dns-query
|
|
||||||
proxy-server-nameserver:
|
|
||||||
- 1.1.1.1
|
|
||||||
- 8.8.8.8
|
|
||||||
# direct-nameserver:
|
|
||||||
fake-ip-filter-mode: blacklist
|
fake-ip-filter-mode: blacklist
|
||||||
fake-ip-filter:
|
fake-ip-filter:
|
||||||
|
- rule-set:geosite-private
|
||||||
- '+.lan'
|
- '+.lan'
|
||||||
- '+.local'
|
- '+.local'
|
||||||
- '+.pool.ntp.org'
|
- '+.pool.ntp.org'
|
||||||
@@ -51,25 +66,28 @@ dns:
|
|||||||
- '+.push.apple.com'
|
- '+.push.apple.com'
|
||||||
- '+.apple.com'
|
- '+.apple.com'
|
||||||
- '+.4829152.xyz'
|
- '+.4829152.xyz'
|
||||||
|
direct-nameserver-follow-policy: true
|
||||||
find-process-mode: off
|
default-nameserver:
|
||||||
|
- 1.1.1.1
|
||||||
keep-alive-idle: 120
|
- 8.8.8.8
|
||||||
keep-alive-interval: 30
|
nameserver: *dns_ru
|
||||||
|
proxy-server-nameserver: *dns_ru
|
||||||
profile:
|
direct-nameserver: *dns_ru
|
||||||
store-selected: true
|
nameserver-policy:
|
||||||
store-fake-ip: true
|
rule-set:geosite-private:
|
||||||
tracing: false
|
- system
|
||||||
|
# rule-set:oisd-big:
|
||||||
routing-mark: 2
|
# - rcode://refused
|
||||||
|
"rule-set:telegram,ru-bundle": *dns_proxy
|
||||||
|
|
||||||
sniffer:
|
sniffer:
|
||||||
enable: true
|
enable: true
|
||||||
|
force-dns-mapping: true
|
||||||
|
parse-pure-ip: true
|
||||||
|
override-destination: false
|
||||||
sniff:
|
sniff:
|
||||||
HTTP:
|
HTTP:
|
||||||
ports: [80, 8080-8880]
|
ports: [80, 8080-8880]
|
||||||
override-destination: true
|
|
||||||
TLS:
|
TLS:
|
||||||
ports: [443, 8443]
|
ports: [443, 8443]
|
||||||
QUIC:
|
QUIC:
|
||||||
@@ -85,6 +103,7 @@ sniffer:
|
|||||||
- '+.push.apple.com'
|
- '+.push.apple.com'
|
||||||
- '+.apple.com'
|
- '+.apple.com'
|
||||||
- '+.4829152.xyz'
|
- '+.4829152.xyz'
|
||||||
|
skip-dst-address: *reserved_ips
|
||||||
|
|
||||||
proxy-providers:
|
proxy-providers:
|
||||||
remnawave:
|
remnawave:
|
||||||
@@ -105,7 +124,7 @@ proxy-providers:
|
|||||||
udp-over-tcp: true
|
udp-over-tcp: true
|
||||||
|
|
||||||
proxy-groups:
|
proxy-groups:
|
||||||
- name: Fastest
|
- name: ⚡ Самый быстрый
|
||||||
icon: https://cdn.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Auto.png
|
icon: https://cdn.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Auto.png
|
||||||
type: url-test
|
type: url-test
|
||||||
url: http://www.gstatic.com/generate_204
|
url: http://www.gstatic.com/generate_204
|
||||||
@@ -116,22 +135,24 @@ proxy-groups:
|
|||||||
use:
|
use:
|
||||||
- remnawave
|
- remnawave
|
||||||
|
|
||||||
- name: PROXY
|
- name: VPN
|
||||||
icon: https://fastly.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Proxy.png
|
icon: https://cdn.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Hijacking.png
|
||||||
type: select
|
type: select
|
||||||
url: http://www.gstatic.com/generate_204
|
url: http://www.gstatic.com/generate_204
|
||||||
proxies:
|
proxies:
|
||||||
- Fastest
|
- ⚡ Самый быстрый
|
||||||
- DIRECT
|
- DIRECT
|
||||||
use:
|
use:
|
||||||
- remnawave
|
- remnawave
|
||||||
|
|
||||||
- name: RU-Banned
|
- name: Блокировки РФ
|
||||||
icon: https://cdn.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Russia.png
|
icon: https://cdn.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Russia.png
|
||||||
type: select
|
type: select
|
||||||
proxies:
|
proxies:
|
||||||
- PROXY
|
- VPN
|
||||||
- DIRECT
|
- DIRECT
|
||||||
|
use:
|
||||||
|
- remnawave
|
||||||
|
|
||||||
# - name: Реклама
|
# - name: Реклама
|
||||||
# icon: https://cdn.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Advertising.png
|
# icon: https://cdn.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Advertising.png
|
||||||
@@ -140,62 +161,94 @@ proxy-groups:
|
|||||||
# - REJECT
|
# - REJECT
|
||||||
# - DIRECT
|
# - DIRECT
|
||||||
|
|
||||||
|
- name: Остальные сайты
|
||||||
|
icon: https://cdn.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Global.png
|
||||||
|
type: select
|
||||||
|
proxies:
|
||||||
|
- DIRECT
|
||||||
|
- VPN
|
||||||
|
use:
|
||||||
|
- remnawave
|
||||||
|
|
||||||
rule-providers:
|
rule-providers:
|
||||||
# oisd-big:
|
# oisd-big:
|
||||||
# type: http
|
# type: http
|
||||||
# behavior: domain
|
# behavior: domain
|
||||||
# format: mrs
|
# format: mrs
|
||||||
# url: https://github.com/legiz-ru/mihomo-rule-sets/raw/main/oisd/big.mrs
|
# url: https://github.com/legiz-ru/mihomo-rule-sets/raw/main/oisd/big.mrs
|
||||||
# interval: 86400
|
|
||||||
# path: ./rules/oisd/big.mrs
|
# path: ./rules/oisd/big.mrs
|
||||||
|
|
||||||
# bld-agregator:
|
|
||||||
# type: http
|
|
||||||
# behavior: domain
|
|
||||||
# format: mrs
|
|
||||||
# url: https://github.com/legiz-ru/mihomo-rule-sets/raw/main/other/bld-agregator.mrs
|
|
||||||
# interval: 86400
|
# interval: 86400
|
||||||
# path: ./rules/oisd/bld-agregator.mrs
|
# proxy: VPN
|
||||||
|
|
||||||
|
geosite-private:
|
||||||
|
type: http
|
||||||
|
behavior: domain
|
||||||
|
format: mrs
|
||||||
|
url: https://github.com/MetaCubeX/meta-rules-dat/raw/meta/geo/geosite/private.mrs
|
||||||
|
path: ./rules/geo/geosite/private.mrs
|
||||||
|
interval: 86400
|
||||||
|
proxy: VPN
|
||||||
|
|
||||||
|
geoip-private:
|
||||||
|
type: http
|
||||||
|
behavior: ipcidr
|
||||||
|
format: mrs
|
||||||
|
url: https://github.com/MetaCubeX/meta-rules-dat/raw/meta/geo/geoip/private.mrs
|
||||||
|
path: ./rules/geo/geoip/private.mrs
|
||||||
|
|
||||||
# refilter_domains:
|
# refilter_domains:
|
||||||
# type: http
|
# type: http
|
||||||
# behavior: domain
|
# behavior: domain
|
||||||
# format: mrs
|
# format: mrs
|
||||||
# url: https://github.com/legiz-ru/mihomo-rule-sets/raw/main/re-filter/domain-rule.mrs
|
# url: https://github.com/legiz-ru/mihomo-rule-sets/raw/main/re-filter/domain-rule.mrs
|
||||||
|
# path: ./rules/re-filter/domain-rule.mrs
|
||||||
# interval: 86400
|
# interval: 86400
|
||||||
# path: ./re-filter/domain-rule.mrs
|
# proxy: VPN
|
||||||
|
|
||||||
# refilter_ipsum:
|
# refilter_ipsum:
|
||||||
# type: http
|
# type: http
|
||||||
# behavior: ipcidr
|
# behavior: ipcidr
|
||||||
# format: mrs
|
# format: mrs
|
||||||
# url: https://github.com/legiz-ru/mihomo-rule-sets/raw/main/re-filter/ip-rule.mrs
|
# url: https://github.com/legiz-ru/mihomo-rule-sets/raw/main/re-filter/ip-rule.mrs
|
||||||
|
# path: ./rules/re-filter/ip-rule.mrs
|
||||||
# interval: 86400
|
# interval: 86400
|
||||||
# path: ./re-filter/ip-rule.mrs
|
# proxy: VPN
|
||||||
|
|
||||||
cloudflare:
|
cloudflare:
|
||||||
type: http
|
type: http
|
||||||
behavior: ipcidr
|
behavior: ipcidr
|
||||||
format: mrs
|
format: mrs
|
||||||
url: https://github.com/MetaCubeX/meta-rules-dat/raw/meta/geo/geoip/cloudflare.mrs
|
url: https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/meta/geo/geoip/cloudflare.mrs
|
||||||
interval: 86400
|
|
||||||
path: ./rules/geoip/cloudflare.mrs
|
path: ./rules/geoip/cloudflare.mrs
|
||||||
|
interval: 86400
|
||||||
|
proxy: VPN
|
||||||
|
|
||||||
telegram-ip:
|
telegram:
|
||||||
|
type: http
|
||||||
|
behavior: domain
|
||||||
|
format: mrs
|
||||||
|
url: https://github.com/MetaCubeX/meta-rules-dat/raw/meta/geo/geosite/telegram.mrs
|
||||||
|
path: ./rules/geosite/telegram.mrs
|
||||||
|
interval: 86400
|
||||||
|
proxy: VPN
|
||||||
|
|
||||||
|
telegram-ips:
|
||||||
type: http
|
type: http
|
||||||
behavior: ipcidr
|
behavior: ipcidr
|
||||||
format: text
|
format: mrs
|
||||||
url: https://core.telegram.org/resources/cidr.txt
|
url: https://github.com/MetaCubeX/meta-rules-dat/raw/meta/geo/geoip/telegram.mrs
|
||||||
|
path: ./rules/geoip/telegram.mrs
|
||||||
interval: 86400
|
interval: 86400
|
||||||
path: ./rules/services/telegram-ip.txt
|
proxy: VPN
|
||||||
|
|
||||||
rknasnblock:
|
rknasnblock:
|
||||||
type: http
|
type: http
|
||||||
behavior: ipcidr
|
behavior: ipcidr
|
||||||
format: mrs
|
format: mrs
|
||||||
url: https://github.com/legiz-ru/mihomo-rule-sets/raw/main/ru-bundle/rknasnblock.mrs
|
url: https://github.com/legiz-ru/mihomo-rule-sets/raw/main/ru-bundle/rknasnblock.mrs
|
||||||
|
path: ./rules/ru/rknasnblock.mrs
|
||||||
interval: 86400
|
interval: 86400
|
||||||
path: ./rules/ru-bundle/rknasnblock.mrs
|
proxy: VPN
|
||||||
|
|
||||||
# include: itdoginfo-inside-russia + no-russia-hosts + antifilter-community
|
# include: itdoginfo-inside-russia + no-russia-hosts + antifilter-community
|
||||||
ru-bundle:
|
ru-bundle:
|
||||||
@@ -203,23 +256,22 @@ rule-providers:
|
|||||||
behavior: domain
|
behavior: domain
|
||||||
format: mrs
|
format: mrs
|
||||||
url: https://github.com/legiz-ru/mihomo-rule-sets/raw/main/ru-bundle/rule.mrs
|
url: https://github.com/legiz-ru/mihomo-rule-sets/raw/main/ru-bundle/rule.mrs
|
||||||
|
path: ./rules/ru/ru-bundle.mrs
|
||||||
interval: 86400
|
interval: 86400
|
||||||
path: ./rules/ru-bundle/rule.mrs
|
proxy: VPN
|
||||||
|
|
||||||
rules:
|
rules:
|
||||||
|
# === DIRECT (priority) ===
|
||||||
|
- RULE-SET,geoip-private,DIRECT,no-resolve
|
||||||
|
- RULE-SET,geosite-private,DIRECT
|
||||||
# === REJECT ===
|
# === REJECT ===
|
||||||
# - RULE-SET,oisd-big,Реклама
|
# - RULE-SET,oisd-big,Реклама
|
||||||
# - RULE-SET,bld-agregator,Реклама
|
|
||||||
|
|
||||||
# === PROXY ===
|
# === PROXY ===
|
||||||
- RULE-SET,telegram-ip,PROXY,no-resolve
|
- OR,((RULE-SET,telegram),(RULE-SET,telegram-ips)),VPN
|
||||||
|
- RULE-SET,cloudflare,VPN
|
||||||
- RULE-SET,cloudflare,PROXY
|
# - RULE-SET,refilter_ipsum,VPN,no-resolve
|
||||||
# - RULE-SET,refilter_ipsum,PROXY,no-resolve
|
# - RULE-SET,refilter_domains,VPN
|
||||||
# - RULE-SET,refilter_domains,PROXY
|
- RULE-SET,rknasnblock,Блокировки РФ,no-resolve
|
||||||
|
- RULE-SET,ru-bundle,Блокировки РФ
|
||||||
- RULE-SET,rknasnblock,RU-Banned,no-resolve
|
|
||||||
- RULE-SET,ru-bundle,RU-Banned
|
|
||||||
|
|
||||||
# === DIRECT ===
|
# === DIRECT ===
|
||||||
- MATCH,DIRECT
|
- MATCH,Остальные сайты
|
||||||
|
|||||||
@@ -1,250 +0,0 @@
|
|||||||
{
|
|
||||||
"dns": {
|
|
||||||
"rules": [
|
|
||||||
{
|
|
||||||
"server": "remote",
|
|
||||||
"query_type": [
|
|
||||||
"A",
|
|
||||||
"AAAA"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"server": "local",
|
|
||||||
"outbound": "any"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"fakeip": {
|
|
||||||
"enabled": true,
|
|
||||||
"inet4_range": "198.18.0.0/15",
|
|
||||||
"inet6_range": "fc00::/18"
|
|
||||||
},
|
|
||||||
"servers": [
|
|
||||||
{
|
|
||||||
"tag": "cf-dns",
|
|
||||||
"address": "tls://1.1.1.1"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"tag": "local",
|
|
||||||
"detour": "direct",
|
|
||||||
"address": "tcp://1.1.1.1",
|
|
||||||
"strategy": "ipv4_only",
|
|
||||||
"address_strategy": "prefer_ipv4"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"tag": "remote",
|
|
||||||
"address": "fakeip"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"independent_cache": true
|
|
||||||
},
|
|
||||||
"log": {
|
|
||||||
"level": "debug",
|
|
||||||
"disabled": true,
|
|
||||||
"timestamp": true
|
|
||||||
},
|
|
||||||
"route": {
|
|
||||||
"rules": [
|
|
||||||
{
|
|
||||||
"action": "sniff"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"mode": "or",
|
|
||||||
"type": "logical",
|
|
||||||
"rules": [
|
|
||||||
{
|
|
||||||
"protocol": "dns"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"port": 53
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"action": "hijack-dns"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"outbound": "direct",
|
|
||||||
"ip_is_private": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"outbound": "PROXY",
|
|
||||||
"domain_suffix": [
|
|
||||||
"ipwho.is",
|
|
||||||
"ipapi.is",
|
|
||||||
"ipapi.co",
|
|
||||||
"api.ip.sb",
|
|
||||||
"ip-api.com"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"outbound": "direct",
|
|
||||||
"rule_set": [
|
|
||||||
"ru-app-list"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"geoip": [
|
|
||||||
"telegram"
|
|
||||||
],
|
|
||||||
"geosite": [
|
|
||||||
"telegram"
|
|
||||||
],
|
|
||||||
"outbound": "PROXY"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"geoip": [
|
|
||||||
"cloudflare"
|
|
||||||
],
|
|
||||||
"outbound": "PROXY"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"outbound": "PROXY",
|
|
||||||
"rule_set": [
|
|
||||||
"refilter_ipsum",
|
|
||||||
"refilter_domains"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"outbound": "RU-Banned",
|
|
||||||
"rule_set": [
|
|
||||||
"rknasnblock",
|
|
||||||
"ru-bundle"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"rule_set": [
|
|
||||||
{
|
|
||||||
"tag": "ru-app-list",
|
|
||||||
"url": "https://raw.githubusercontent.com/legiz-ru/sb-rule-sets/main/ru-app-list.srs",
|
|
||||||
"type": "remote",
|
|
||||||
"format": "binary",
|
|
||||||
"download_detour": "PROXY"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"tag": "refilter_domains",
|
|
||||||
"url": "https://github.com/1andrevich/Re-filter-lists/releases/latest/download/ruleset-domain-refilter_domains.srs",
|
|
||||||
"type": "remote",
|
|
||||||
"format": "binary",
|
|
||||||
"download_detour": "PROXY"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"tag": "refilter_ipsum",
|
|
||||||
"url": "https://github.com/1andrevich/Re-filter-lists/releases/latest/download/ruleset-ip-refilter_ipsum.srs",
|
|
||||||
"type": "remote",
|
|
||||||
"format": "binary",
|
|
||||||
"download_detour": "PROXY"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"tag": "rknasnblock",
|
|
||||||
"url": "https://github.com/legiz-ru/sb-rule-sets/raw/main/rknasnblock.srs",
|
|
||||||
"type": "remote",
|
|
||||||
"format": "binary",
|
|
||||||
"download_detour": "PROXY"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"tag": "ru-bundle",
|
|
||||||
"url": "https://github.com/legiz-ru/sb-rule-sets/raw/main/ru-bundle.srs",
|
|
||||||
"type": "remote",
|
|
||||||
"format": "binary",
|
|
||||||
"download_detour": "PROXY"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"override_android_vpn": true,
|
|
||||||
"auto_detect_interface": true
|
|
||||||
},
|
|
||||||
"inbounds": [
|
|
||||||
{
|
|
||||||
"mtu": 9000,
|
|
||||||
"tag": "tun-in",
|
|
||||||
"type": "tun",
|
|
||||||
"sniff": true,
|
|
||||||
"stack": "mixed",
|
|
||||||
"platform": {
|
|
||||||
"http_proxy": {
|
|
||||||
"server": "127.0.0.1",
|
|
||||||
"enabled": true,
|
|
||||||
"server_port": 2412
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"auto_route": true,
|
|
||||||
"strict_route": true,
|
|
||||||
"inet4_address": "172.19.0.1/30",
|
|
||||||
"inet6_address": "fdfe:dcba:9876::1/126",
|
|
||||||
"interface_name": "tun125",
|
|
||||||
"endpoint_independent_nat": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"tag": "mixed-in",
|
|
||||||
"type": "mixed",
|
|
||||||
"sniff": true,
|
|
||||||
"users": [],
|
|
||||||
"listen": "127.0.0.1",
|
|
||||||
"listen_port": 2412,
|
|
||||||
"set_system_proxy": false
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"outbounds": [
|
|
||||||
{
|
|
||||||
"tag": "→ Remnawave",
|
|
||||||
"type": "selector",
|
|
||||||
"outbounds": null,
|
|
||||||
"interrupt_exist_connections": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"tag": "Fastest",
|
|
||||||
"url": "http://www.gstatic.com/generate_204",
|
|
||||||
"type": "urltest",
|
|
||||||
"interval": "30s",
|
|
||||||
"outbounds": [
|
|
||||||
"→ Remnawave"
|
|
||||||
],
|
|
||||||
"tolerance": 50
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"tag": "PROXY",
|
|
||||||
"type": "selector",
|
|
||||||
"outbounds": [
|
|
||||||
"Fastest",
|
|
||||||
"→ Remnawave",
|
|
||||||
"direct"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"tag": "RU-Banned",
|
|
||||||
"type": "selector",
|
|
||||||
"outbounds": [
|
|
||||||
"PROXY",
|
|
||||||
"direct"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"tag": "Реклама",
|
|
||||||
"type": "selector",
|
|
||||||
"outbounds": [
|
|
||||||
"block",
|
|
||||||
"direct"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"tag": "direct",
|
|
||||||
"type": "direct"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"tag": "block",
|
|
||||||
"type": "block"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"experimental": {
|
|
||||||
"clash_api": {
|
|
||||||
"external_ui": "metacubexd",
|
|
||||||
"default_mode": "rule",
|
|
||||||
"external_controller": "127.0.0.1:9090",
|
|
||||||
"external_ui_download_url": "https://github.com/MetaCubeX/metacubexd/archive/refs/heads/gh-pages.zip",
|
|
||||||
"external_ui_download_detour": "direct"
|
|
||||||
},
|
|
||||||
"cache_file": {
|
|
||||||
"path": "remnawave.db",
|
|
||||||
"enabled": true,
|
|
||||||
"cache_id": "remnawave",
|
|
||||||
"store_fakeip": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user