0% found this document useful (0 votes)
91 views5 pages

Config Lunatic

The document defines the configuration for OpenClash, including rule and proxy providers, proxy groups for selecting proxies, port mappings, DNS settings, fallback filters, and rules. Key settings include using file-based rule and proxy providers, selecting proxies by URL tests or load balancing, redirecting ports for SOCKS5 and HTTP proxies, enabling DNS hijacking, and applying fallback filters and rules.

Uploaded by

Mardi ono
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
91 views5 pages

Config Lunatic

The document defines the configuration for OpenClash, including rule and proxy providers, proxy groups for selecting proxies, port mappings, DNS settings, fallback filters, and rules. Key settings include using file-based rule and proxy providers, selecting proxies by URL tests or load balancing, redirecting ports for SOCKS5 and HTTP proxies, enabling DNS hijacking, and applying fallback filters and rules.

Uploaded by

Mardi ono
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 5

---

rule-providers:
Direct:
type: file
behavior: classical
path: "./rule_provider/direct.yaml"
Reject:
type: file
behavior: classical
path: "./rule_provider/reject.yaml"
proxy-providers:
SERVER AKRAB:
type: file
path: "./proxy_provider/akrab.yaml"
health-check:
enable: true
url: https://cp.cloudflare.com/generate_204
interval: 300
SERVER FLEX:
type: file
path: "./proxy_provider/Flex.yaml"
health-check:
enable: true
url: http://www.gstatic.com/generate_204
interval: 10
proxy-groups:
- name: SELECT SERVER
type: select
disable-udp: false
proxies:
- REJECT
- CONFIG AKRAB
- CONFIG FLEX
- name: CONFIG AKRAB
type: url-test
disable-udp: false
use:
- SERVER AKRAB
url: https://cp.cloudflare.com/generate_204
interval: '300'
tolerance: '150'
- name: CONFIG FLEX
type: url-test
disable-udp: false
use:
- SERVER FLEX
url: https://cp.cloudflare.com/generate_204
interval: '300'
tolerance: '150'
- name: LOAD SERVER
type: load-balance
strategy: round-robin
disable-udp: false
proxies:
- CONFIG FLEX
- CONFIG AKRAB
url: https://cp.cloudflare.com/generate_204
interval: '300'
redir-port: 7892
port: 7890
socks-port: 7891
mixed-port: 7893
mode: rule
log-level: silent
allow-lan: true
unified-delay: true
external-controller: 0.0.0.0:9090
secret: reyre
bind-address: "*"
external-ui: "/usr/share/openclash/dashboard"
dns:
enable: true
ipv6: true
enhanced-mode: fake-ip
listen: 0.0.0.0:7874
fallback-filter:
geoip: true
geoip-code: ID
ipcidr:
- 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.18.0.0/15
- 198.51.100.0/24
- 203.0.113.0/24
- 224.0.0.0/4
- 240.0.0.0/4
- 255.255.255.255/32
domain:
- "+.google.com"
- "+.facebook.com"
- "+.youtube.com"
- "+.githubusercontent.com"
- "+.googlevideo.com"
nameserver:
- 127.0.0.1:5054
fallback:
- 127.0.0.1:5053
fake-ip-range: 198.18.0.1/16
fake-ip-filter:
- "*.lan"
- "*.localdomain"
- "*.example"
- "*.invalid"
- "*.localhost"
- "*.test"
- "*.local"
- "*.home.arpa"
- time.*.com
- time.*.gov
- time.*.edu.cn
- time.*.apple.com
- time1.*.com
- time2.*.com
- time3.*.com
- time4.*.com
- time5.*.com
- time6.*.com
- time7.*.com
- ntp.*.com
- ntp1.*.com
- ntp2.*.com
- ntp3.*.com
- ntp4.*.com
- ntp5.*.com
- ntp6.*.com
- ntp7.*.com
- "*.time.edu.cn"
- "*.ntp.org.cn"
- "+.pool.ntp.org"
- time1.cloud.tencent.com
- music.163.com
- "*.music.163.com"
- "*.126.net"
- musicapi.taihe.com
- music.taihe.com
- songsearch.kugou.com
- trackercdn.kugou.com
- "*.kuwo.cn"
- api-jooxtt.sanook.com
- api.joox.com
- joox.com
- y.qq.com
- "*.y.qq.com"
- streamoc.music.tc.qq.com
- mobileoc.music.tc.qq.com
- isure.stream.qqmusic.qq.com
- dl.stream.qqmusic.qq.com
- aqqmusic.tc.qq.com
- amobile.music.tc.qq.com
- "*.xiami.com"
- "*.music.migu.cn"
- music.migu.cn
- "+.msftconnecttest.com"
- "+.msftncsi.com"
- msftconnecttest.com
- msftncsi.com
- localhost.ptlogin2.qq.com
- localhost.sec.qq.com
- "+.srv.nintendo.net"
- "+.stun.playstation.net"
- xbox.*.microsoft.com
- xnotify.xboxlive.com
- "+.battlenet.com.cn"
- "+.wotgame.cn"
- "+.wggames.cn"
- "+.wowsgame.cn"
- "+.wargaming.net"
- proxy.golang.org
- stun.*.*
- stun.*.*.*
- "+.stun.*.*"
- "+.stun.*.*.*"
- "+.stun.*.*.*.*"
- heartbeat.belkin.com
- "*.linksys.com"
- "*.linksyssmartwifi.com"
- "*.router.asus.com"
- mesu.apple.com
- swscan.apple.com
- swquery.apple.com
- swdownload.apple.com
- swcdn.apple.com
- swdist.apple.com
- lens.l.google.com
- stun.l.google.com
- "+.nflxvideo.net"
- "*.square-enix.com"
- "*.finalfantasyxiv.com"
- "*.ffxiv.com"
- "*.mcdn.bilivideo.cn"
- "+.media.dssott.com"
default-nameserver:
- 127.0.0.1:5054
- 127.0.0.1:5053
ipv6: true
profile:
store-selected: true
store-fakeip: true
store-fake-ip: true
tun:
enable: true
stack: system
dns-hijack:
- tcp://8.8.8.8:53
- tcp://8.8.4.4:53
tproxy-port: 7895
rules:
- IP-CIDR,198.18.0.1/16,REJECT,no-resolve
- DST-PORT,7895,REJECT
- DST-PORT,7892,REJECT
- RULE-SET,Direct,DIRECT
- RULE-SET,Reject,REJECT
- DST-PORT,21,GLOBAL
- DST-PORT,22,GLOBAL
- DST-PORT,23,GLOBAL
- DST-PORT,25,GLOBAL
- DST-PORT,80,GLOBAL
- DST-PORT,81,GLOBAL
- DST-PORT,143,GLOBAL
- DST-PORT,443,GLOBAL
- DST-PORT,465,GLOBAL
- DST-PORT,587,GLOBAL
- DST-PORT,993,GLOBAL
- DST-PORT,995,GLOBAL
- DST-PORT,8000,GLOBAL
- DST-PORT,8008,GLOBAL
- DST-PORT,8080,GLOBAL
- DST-PORT,8081,GLOBAL
- DST-PORT,8090,GLOBAL
- DST-PORT,8443,GLOBAL
- DST-PORT,8888,GLOBAL
- MATCH,GLOBAL

You might also like