Add example configuration for Rockblade with comprehensive proxy and routing rules
- Introduced a new YAML configuration file for Rockblade. - Configured proxy settings for a Russian server using WireGuard. - Enabled DNS settings with multiple nameservers and caching. - Defined various proxy groups for popular services like Netflix, Discord, and more. - Implemented routing rules for ad blocking, regional traffic, and specific services. - Included geo-data settings for automatic updates and external rule providers.
This commit is contained in:
437
config-clash/examples/example_rockblade.yaml
Normal file
437
config-clash/examples/example_rockblade.yaml
Normal file
@@ -0,0 +1,437 @@
|
||||
# https://rockblack.pro/mihomo_generator
|
||||
|
||||
redir-port: 1182
|
||||
tproxy-port: 1181
|
||||
mixed-port: 1080
|
||||
tcp-concurrent: true
|
||||
allow-lan: true
|
||||
mode: rule
|
||||
geo-auto-update: true
|
||||
geo-update-interval: 168
|
||||
log-level: silent
|
||||
ipv6: false
|
||||
external-controller: 0.0.0.0:9090
|
||||
external-ui: ./zash
|
||||
external-ui-url: "https://github.com/Zephyruso/zashboard/releases/latest/download/dist-cdn-fonts.zip"
|
||||
geodata-mode: true
|
||||
profile:
|
||||
store-selected: true
|
||||
find-process-mode: "off"
|
||||
|
||||
# --- НАСТРОЙКИ СНИФФЕРА ---
|
||||
sniffer:
|
||||
enable: true
|
||||
force-dns-mapping: true
|
||||
sniff:
|
||||
HTTP:
|
||||
ports: [80]
|
||||
override-destination: true
|
||||
TLS:
|
||||
ports: [443]
|
||||
QUIC:
|
||||
ports: [443]
|
||||
|
||||
# --- СПИСОК ПРОКСИ-СЕРВЕРОВ (КЛЮЧИ) ---
|
||||
proxies:
|
||||
- name: '🇷🇺 Россия'
|
||||
type: wireguard
|
||||
private-key: Vuk0huRtjGpA7KtWuQN/kJE0CRFOFs3JysN71nDFGqg=
|
||||
server: 5.8.93.236
|
||||
port: 42854
|
||||
ip: 100.71.64.155
|
||||
dns: ['8.8.8.8', '8.8.4.4']
|
||||
public-key: ZqTlR9tYsMacuawQQaU6UCoXdT1exYJD2tzFXTpN9zs=
|
||||
pre-shared-key: oOJNRLL+5aOgimi28Lwq18w6xCrry4AFLt68fhbUSlk=
|
||||
allowed-ips: ['0.0.0.0/0', '::/0']
|
||||
udp: true
|
||||
persistent-keepalive: 25
|
||||
amnezia-wg-option:
|
||||
jc: 3
|
||||
jmin: 10
|
||||
jmax: 50
|
||||
s1: 145
|
||||
s2: 34
|
||||
h1: 203715079
|
||||
h2: 914012290
|
||||
h3: 174842657
|
||||
h4: 1514769902
|
||||
|
||||
# --- СЕКЦИЯ DNS ---
|
||||
dns:
|
||||
enable: true
|
||||
listen: 0.0.0.0:7874
|
||||
ipv6: false
|
||||
cache-algorithm: arc
|
||||
enhanced-mode: fake-ip
|
||||
fake-ip-range: 198.18.0.1/16
|
||||
default-nameserver:
|
||||
- 1.1.1.1
|
||||
- 8.8.8.8
|
||||
- 208.67.222.222
|
||||
- 208.67.220.220
|
||||
nameserver:
|
||||
- https://dns10.quad9.net/dns-query
|
||||
- https://dns.aa.net.uk/dns-query
|
||||
- https://doh.opendns.com/dns-query
|
||||
- tls://dns.quad9.net
|
||||
- tls://1.1.1.1
|
||||
- tls://dns.opendns.com
|
||||
nameserver-policy:
|
||||
'+.supercell.net': 'https://dns.google/dns-query'
|
||||
'+.brawlstarsgame.com': 'https://dns.google/dns-query'
|
||||
fake-ip-filter-mode: blacklist
|
||||
fake-ip-filter:
|
||||
- '*.lan'
|
||||
- '*.local'
|
||||
- +.pool.ntp.org
|
||||
- +.msftconnecttest.com
|
||||
- +.3gppnetwork.org
|
||||
|
||||
# --- ГРУППЫ ПРОКСИ (ПОЛИТИКИ) ---
|
||||
proxy-groups:
|
||||
|
||||
- name: 'Gemini'
|
||||
type: select
|
||||
proxies: [ '🇷🇺 Россия', DIRECT ]
|
||||
icon: "https://www.svgrepo.com/show/331406/gemini.svg"
|
||||
|
||||
- name: 'Speedtest'
|
||||
type: select
|
||||
proxies: [ '🇷🇺 Россия', DIRECT ]
|
||||
icon: "https://www.svgrepo.com/show/355484/speed.svg"
|
||||
|
||||
- name: '18+'
|
||||
type: select
|
||||
proxies: [ '🇷🇺 Россия', DIRECT ]
|
||||
icon: "https://www.svgrepo.com/show/530357/peach.svg"
|
||||
|
||||
- name: 'Apple'
|
||||
type: select
|
||||
proxies: [ '🇷🇺 Россия', DIRECT ]
|
||||
icon: "https://www.svgrepo.com/show/506958/clo-bowler.svg"
|
||||
|
||||
- name: 'Fastly'
|
||||
type: select
|
||||
proxies: [ '🇷🇺 Россия', DIRECT ]
|
||||
icon: "https://www.svgrepo.com/show/353730/fastly.svg"
|
||||
|
||||
- name: 'boosty'
|
||||
type: select
|
||||
proxies: [ '🇷🇺 Россия', DIRECT ]
|
||||
icon: "https://www.svgrepo.com/show/506958/clo-bowler.svg"
|
||||
|
||||
- name: 'Discord'
|
||||
type: select
|
||||
proxies: [ '🇷🇺 Россия', DIRECT ]
|
||||
icon: "https://www.svgrepo.com/show/331368/discord-v2.svg"
|
||||
|
||||
- name: 'Spotify'
|
||||
type: select
|
||||
proxies: [ '🇷🇺 Россия', DIRECT ]
|
||||
icon: "https://www.svgrepo.com/show/349511/spotify.svg"
|
||||
|
||||
- name: 'Viber'
|
||||
type: select
|
||||
proxies: [ '🇷🇺 Россия', DIRECT ]
|
||||
icon: "https://www.svgrepo.com/show/125448/viber.svg"
|
||||
|
||||
- name: 'Roblox'
|
||||
type: select
|
||||
proxies: [ '🇷🇺 Россия', DIRECT ]
|
||||
icon: "https://www.svgrepo.com/show/443377/brand-roblox.svg"
|
||||
|
||||
- name: 'Linkedin'
|
||||
type: select
|
||||
proxies: [ '🇷🇺 Россия', DIRECT ]
|
||||
icon: "https://www.svgrepo.com/show/448234/linkedin.svg"
|
||||
|
||||
- name: 'Akamai'
|
||||
type: select
|
||||
proxies: [ '🇷🇺 Россия', DIRECT ]
|
||||
icon: "https://www.svgrepo.com/show/353385/akamai.svg"
|
||||
|
||||
- name: 'Netflix'
|
||||
type: select
|
||||
proxies: [ '🇷🇺 Россия', DIRECT ]
|
||||
icon: "https://www.svgrepo.com/show/303341/netflix-1-logo.svg"
|
||||
|
||||
- name: '2IP.IO'
|
||||
type: select
|
||||
proxies: [ '🇷🇺 Россия', DIRECT ]
|
||||
icon: "https://www.svgrepo.com/show/415672/address-location-map.svg"
|
||||
|
||||
- name: 'Twitter'
|
||||
type: select
|
||||
proxies: [ '🇷🇺 Россия', DIRECT ]
|
||||
icon: "https://www.svgrepo.com/show/452121/twitter-1.svg"
|
||||
|
||||
- name: 'Instagram'
|
||||
type: select
|
||||
proxies: [ '🇷🇺 Россия', DIRECT ]
|
||||
icon: "https://www.svgrepo.com/show/452229/instagram-1.svg"
|
||||
|
||||
- name: 'Google'
|
||||
type: select
|
||||
proxies: [ '🇷🇺 Россия', DIRECT ]
|
||||
icon: "https://www.svgrepo.com/show/475656/google-color.svg"
|
||||
|
||||
- name: 'Google Play'
|
||||
type: select
|
||||
proxies: [ '🇷🇺 Россия', DIRECT ]
|
||||
icon: "https://www.svgrepo.com/show/353828/google-play-icon.svg"
|
||||
|
||||
- name: 'Whatsapp'
|
||||
type: select
|
||||
proxies: [ '🇷🇺 Россия', DIRECT ]
|
||||
icon: "https://www.svgrepo.com/show/349563/whatsapp.svg"
|
||||
|
||||
- name: 'Microsoft'
|
||||
type: select
|
||||
proxies: [ '🇷🇺 Россия', DIRECT ]
|
||||
icon: "https://www.svgrepo.com/show/452062/microsoft.svg"
|
||||
|
||||
- name: 'GitHub'
|
||||
type: select
|
||||
proxies: [ '🇷🇺 Россия', DIRECT ]
|
||||
icon: "https://www.svgrepo.com/show/475654/github-color.svg"
|
||||
|
||||
- name: 'Amazon'
|
||||
type: select
|
||||
proxies: [ '🇷🇺 Россия', DIRECT ]
|
||||
icon: "https://www.svgrepo.com/show/475634/amazon-color.svg"
|
||||
|
||||
- name: 'Notion'
|
||||
type: select
|
||||
proxies: [ '🇷🇺 Россия', DIRECT ]
|
||||
icon: "https://www.svgrepo.com/show/361558/notion-logo.svg"
|
||||
|
||||
- name: 'Tidal'
|
||||
type: select
|
||||
proxies: [ '🇷🇺 Россия', DIRECT ]
|
||||
icon: "https://www.svgrepo.com/show/504993/tidal.svg"
|
||||
|
||||
- name: 'Telegram'
|
||||
type: select
|
||||
proxies: [ '🇷🇺 Россия', DIRECT ]
|
||||
icon: "https://www.svgrepo.com/show/354443/telegram.svg"
|
||||
|
||||
- name: 'TikTok'
|
||||
type: select
|
||||
proxies: [ '🇷🇺 Россия', DIRECT ]
|
||||
icon: "https://www.svgrepo.com/show/349530/tiktok.svg"
|
||||
|
||||
- name: 'Twitch'
|
||||
type: select
|
||||
proxies: [ '🇷🇺 Россия', DIRECT ]
|
||||
icon: "https://www.svgrepo.com/show/448251/twitch.svg"
|
||||
|
||||
- name: 'RU трафик'
|
||||
type: select
|
||||
proxies: [ '🇷🇺 Россия', DIRECT ]
|
||||
icon: "https://www.svgrepo.com/show/508628/flag-ru.svg"
|
||||
|
||||
- name: 'Остальной трафик'
|
||||
type: select
|
||||
exclude-filter: "(?i)Russia|RU"
|
||||
proxies: [ '🇷🇺 Россия', DIRECT ]
|
||||
icon: "https://www.svgrepo.com/show/293111/maps-and-flags-global.svg"
|
||||
|
||||
- name: 'Блокировка рекламы'
|
||||
type: select
|
||||
proxies: [ REJECT, DIRECT, '🇷🇺 Россия' ]
|
||||
icon: "https://www.svgrepo.com/show/300290/sign-roadblock.svg"
|
||||
|
||||
- name: 'YouTube'
|
||||
type: select
|
||||
proxies: [ '🇷🇺 Россия', DIRECT ]
|
||||
icon: "https://www.svgrepo.com/show/13671/youtube.svg"
|
||||
|
||||
- name: 'Facebook'
|
||||
type: select
|
||||
proxies: [ '🇷🇺 Россия', DIRECT ]
|
||||
icon: "https://www.svgrepo.com/show/475647/facebook-color.svg"
|
||||
|
||||
- name: 'OpenAI'
|
||||
type: select
|
||||
proxies: [ '🇷🇺 Россия', DIRECT ]
|
||||
icon: "https://www.svgrepo.com/show/306500/openai.svg"
|
||||
|
||||
- name: 'Steam'
|
||||
type: select
|
||||
proxies: [ '🇷🇺 Россия', DIRECT ]
|
||||
icon: "https://www.svgrepo.com/show/452107/steam.svg"
|
||||
|
||||
- name: 'other'
|
||||
type: select
|
||||
proxies: [ '🇷🇺 Россия', DIRECT ]
|
||||
icon: "https://www.svgrepo.com/show/462111/netflix.svg"
|
||||
|
||||
- name: 'intel'
|
||||
type: select
|
||||
proxies: [ '🇷🇺 Россия', DIRECT ]
|
||||
icon: "https://www.svgrepo.com/show/349412/intel.svg"
|
||||
|
||||
- name: GLOBAL
|
||||
type: select
|
||||
hidden: true
|
||||
proxies:
|
||||
- 'YouTube'
|
||||
- 'Google'
|
||||
- 'Google Play'
|
||||
- 'Steam'
|
||||
- 'Microsoft'
|
||||
- 'GitHub'
|
||||
- 'Gemini'
|
||||
- 'Roblox'
|
||||
- 'Instagram'
|
||||
- 'Linkedin'
|
||||
- 'Amazon'
|
||||
- 'Akamai'
|
||||
- 'Facebook'
|
||||
- '18+'
|
||||
- 'Discord'
|
||||
- 'Fastly'
|
||||
- 'Viber'
|
||||
- 'Telegram'
|
||||
- 'Twitch'
|
||||
- 'Apple'
|
||||
- 'TikTok'
|
||||
- 'Notion'
|
||||
- 'Whatsapp'
|
||||
- 'Speedtest'
|
||||
- 'Netflix'
|
||||
- 'Spotify'
|
||||
- 'other'
|
||||
- 'intel'
|
||||
- 'boosty'
|
||||
- 'OpenAI'
|
||||
- 'Tidal'
|
||||
- 'RU трафик'
|
||||
- 'Блокировка рекламы'
|
||||
- 'Остальной трафик'
|
||||
- DIRECT
|
||||
|
||||
# --- НАСТРОЙКИ GEO-ДАННЫХ ---
|
||||
geox-url:
|
||||
geosite: "https://github.com/v2fly/domain-list-community/releases/latest/download/dlc.dat"
|
||||
geoip: "https://github.com/MetaCubeX/meta-rules-dat/releases/latest/download/geoip.dat"
|
||||
|
||||
rule-providers:
|
||||
hagezi_pro:
|
||||
type: http
|
||||
behavior: domain
|
||||
format: mrs
|
||||
url: "https://github.com/zxc-rv/ad-filter/releases/latest/download/adlist.mrs"
|
||||
path: ./adblock/adlist.mrs
|
||||
interval: 86400
|
||||
|
||||
discord:
|
||||
type: inline
|
||||
behavior: classical
|
||||
format: text
|
||||
payload:
|
||||
- "AND,((DOMAIN-KEYWORD,discord),(NOT,((DOMAIN-SUFFIX,ru))))"
|
||||
- "AND,((IP-CIDR,34.0.192.0/18,no-resolve),(NETWORK,UDP),(DST-PORT,50000-50100))"
|
||||
- "AND,((IP-CIDR,35.192.0.0/11,no-resolve),(NETWORK,UDP),(DST-PORT,50000-50100))"
|
||||
- "AND,((IP-CIDR,66.22.192.0/18,no-resolve),(NETWORK,UDP),(DST-PORT,50000-50100))"
|
||||
|
||||
# --- ПРАВИЛА МАРШРУТИЗАЦИИ ---
|
||||
rules:
|
||||
# ПРАВИЛО №0: Блокировка рекламы и трекеров
|
||||
- GEOSITE,category-ads-all,Блокировка рекламы
|
||||
- RULE-SET,hagezi_pro,Блокировка рекламы
|
||||
|
||||
# ПРАВИЛО №1: Системные правила
|
||||
- GEOIP,private,DIRECT,no-resolve
|
||||
|
||||
|
||||
# ПРАВИЛО №2: Российский трафик
|
||||
- DOMAIN-SUFFIX,avito.ru,DIRECT
|
||||
- DOMAIN-SUFFIX,avito.st,DIRECT
|
||||
- GEOSITE,category-ru,RU трафик
|
||||
- DOMAIN-SUFFIX,ru,RU трафик
|
||||
- DOMAIN-SUFFIX,by,RU трафик
|
||||
- DOMAIN-SUFFIX,xn--p1ai,RU трафик
|
||||
- DOMAIN-SUFFIX,yandex-pogoda.static-storage.net,RU трафик
|
||||
- GEOSITE,category-gov-ru,RU трафик
|
||||
- GEOIP,RU,RU трафик,no-resolve
|
||||
|
||||
|
||||
# ПРАВИЛО №3: Правила для конкретных сервисов
|
||||
- OR,((DOMAIN-SUFFIX,gql.twitch.tv),(DOMAIN-SUFFIX,usher.ttvnw.net)),Twitch
|
||||
- GEOSITE,openai,OpenAI
|
||||
- RULE-SET,discord,Discord
|
||||
- GEOSITE,tidal,Tidal
|
||||
- GEOSITE,linkedin,Linkedin
|
||||
- GEOSITE,facebook,Facebook
|
||||
- GEOSITE,netflix,Netflix
|
||||
- GEOIP,netflix,Netflix
|
||||
- GEOSITE,spotify,Spotify
|
||||
- GEOSITE,speedtest,Speedtest
|
||||
- GEOSITE,ookla-speedtest,Speedtest
|
||||
- GEOSITE,category-speedtest,Speedtest
|
||||
- GEOSITE,instagram,Instagram
|
||||
- GEOSITE,steam,Steam
|
||||
- GEOSITE,apple,Apple
|
||||
- GEOSITE,youtube,YouTube
|
||||
- GEOSITE,twitter,Twitter
|
||||
- GEOSITE,tiktok,TikTok
|
||||
- GEOSITE,intel,intel
|
||||
- GEOSITE,notion,Notion
|
||||
- GEOSITE,google,Google
|
||||
- GEOSITE,google-play,Google Play
|
||||
- GEOSITE,google-gemini,Gemini
|
||||
- GEOSITE,github,GitHub
|
||||
- GEOSITE,microsoft,Microsoft
|
||||
- GEOSITE,telegram,Telegram
|
||||
- GEOIP,telegram,Telegram
|
||||
|
||||
# CDN Akamai, Fastly, Amazon
|
||||
- IP-ASN,16509,Amazon
|
||||
- IP-ASN,16625,Akamai
|
||||
- GEOIP,fastly,Fastly
|
||||
|
||||
|
||||
# Roblox открыть порты xkeen -ap 80,443,49152:65535
|
||||
- AND,((IP-ASN,22697),(DST-PORT,49152-65535)),Roblox
|
||||
- DOMAIN-SUFFIX,roblox.com,Roblox
|
||||
- DOMAIN-SUFFIX,rbxcdn.com,Roblox
|
||||
- DOMAIN-SUFFIX,rbxinfra.net,Roblox
|
||||
|
||||
# Viber
|
||||
- GEOSITE,viber,Viber
|
||||
- IP-ASN,16509,Viber
|
||||
|
||||
# Whatsapp // открывам порты xkeen -ap 443,3478,46420
|
||||
- GEOSITE,whatsapp,Whatsapp
|
||||
- IP-ASN,32934,Whatsapp
|
||||
- IP-ASN,11917,Whatsapp
|
||||
- IP-ASN,9002,Whatsapp
|
||||
|
||||
# SupperCell Открыть порт 9339 xkeen -ap 9339
|
||||
- GEOSITE,supercell,other
|
||||
- DOMAIN-KEYWORD,supercell,other
|
||||
- AND,((IP-ASN,14618),(DST-PORT,9339)),other
|
||||
- AND,((IP-ASN,16509),(DST-PORT,9339)),other
|
||||
|
||||
# ПРАВИЛО №5: Проверка Ip адреса
|
||||
- DOMAIN-SUFFIX,2ip.io,2IP.IO
|
||||
|
||||
# ПРАВИЛО №6: Необходимые сервисы с выбором
|
||||
- DOMAIN-SUFFIX,onlyfans.com,other
|
||||
- DOMAIN-SUFFIX,fansly.com,other
|
||||
- DOMAIN-SUFFIX,patreon.com,other
|
||||
|
||||
# ПРАВИЛО №7: Необходимые сервисы с выбором 18+
|
||||
- GEOSITE,category-porn,18+
|
||||
|
||||
# kino.pub
|
||||
- DOMAIN-SUFFIX,firebase-settings.crashlytics.com,other
|
||||
- DOMAIN-SUFFIX,firebaseinstallations.googleapis.com,other
|
||||
- DOMAIN-SUFFIX,kp-pro.cloud,other
|
||||
- DOMAIN-SUFFIX,firebaseremoteconfigrealtime.googleapis.com,other
|
||||
- DOMAIN-SUFFIX,firebaseremoteconfig.googleapis.com,other
|
||||
- DOMAIN-SUFFIX,cdn32.lol,other
|
||||
- DOMAIN-SUFFIX,kino.pub,other
|
||||
|
||||
- "MATCH,Остальной трафик"
|
||||
Reference in New Issue
Block a user