Advertisement
noif

BaseConfig

Oct 14th, 2023 (edited)
2,529
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 4.10 KB | None | 0 0
  1. # HTTP 代理端口
  2. port: 7890
  3.  
  4. # SOCKS5 代理端口
  5. socks-port: 7891
  6.  
  7. # Linux 和 macOS 的 redir 代理端口 (如需使用此功能,请取消注释)
  8. # redir-port: 7892
  9.  
  10. # 允许局域网的连接(可用来共享代理)
  11. allow-lan: true
  12. bind-address: "*"
  13.  
  14. # 规则模式:rule(规则) / global(全局代理)/ direct(全局直连)
  15. mode: rule
  16.  
  17. # 设置日志输出级别 (默认级别:silent,即不输出任何内容,以避免因日志内容过大而导致程序内存溢出)。
  18. # 5 个级别:silent / error / warning / info / debug。级别越高日志输出量越大,越倾向于调试,若需要请自行开启。
  19. log-level: warning
  20.  
  21. # Clash 的 RESTful API
  22. external-controller: '127.0.0.1:9090'
  23.  
  24. dns:
  25.   enable: true
  26.   prefer-h3: true
  27.   ipv6: true
  28.   listen: 0.0.0.0:53
  29.   # fake-ip
  30.   enhanced-mode: fake-ip
  31.   fake-ip-filter:
  32.    - "*"
  33.     - "+.lan"
  34.     - "+.local"
  35.     - localhost.ptlogin2.qq.com
  36.     - dns.msftncsi.com
  37.     - www.msftncsi.com
  38.     - www.msftconnecttest.com
  39.   # nameserver
  40.   default-nameserver:
  41.    - 223.5.5.5
  42.     - 119.29.29.29
  43.   nameserver:
  44.    - tls://8.8.4.4
  45.     - https://1.1.1.1/dns-query
  46.     - https://1.0.0.1/dns-query
  47.   fallback:
  48.    - 223.5.5.5
  49.   nameserver-policy:
  50.     "geosite:cn":
  51.      - https://223.5.5.5/dns-query#h3=true
  52.       - https://223.6.6.6/dns-query#h3=true
  53.       - https://1.12.12.12/dns-query
  54.  
  55. cfw-latency-timeout: 3000
  56. cfw-latency-url: http://www.gstatic.com/generate_204
  57.  
  58. rule-providers:
  59.   reject:
  60.     type: http
  61.     behavior: domain
  62.     url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/reject.txt"
  63.     path: ./ruleset/reject.yaml
  64.     interval: 86400
  65.  
  66.   icloud:
  67.     type: http
  68.     behavior: domain
  69.     url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/icloud.txt"
  70.     path: ./ruleset/icloud.yaml
  71.     interval: 86400
  72.  
  73.   apple:
  74.     type: http
  75.     behavior: domain
  76.     url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/apple.txt"
  77.     path: ./ruleset/apple.yaml
  78.     interval: 86400
  79.  
  80.   proxy:
  81.     type: http
  82.     behavior: domain
  83.     url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/proxy.txt"
  84.     path: ./ruleset/proxy.yaml
  85.     interval: 86400
  86.  
  87.   direct:
  88.     type: http
  89.     behavior: domain
  90.     url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/direct.txt"
  91.     path: ./ruleset/direct.yaml
  92.     interval: 86400
  93.  
  94.   private:
  95.     type: http
  96.     behavior: domain
  97.     url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/private.txt"
  98.     path: ./ruleset/private.yaml
  99.     interval: 86400
  100.  
  101.   gfw:
  102.     type: http
  103.     behavior: domain
  104.     url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/gfw.txt"
  105.     path: ./ruleset/gfw.yaml
  106.     interval: 86400
  107.  
  108.   tld-not-cn:
  109.     type: http
  110.     behavior: domain
  111.     url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/tld-not-cn.txt"
  112.     path: ./ruleset/tld-not-cn.yaml
  113.     interval: 86400
  114.  
  115.   telegramcidr:
  116.     type: http
  117.     behavior: ipcidr
  118.     url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/telegramcidr.txt"
  119.     path: ./ruleset/telegramcidr.yaml
  120.     interval: 86400
  121.  
  122.   cncidr:
  123.     type: http
  124.     behavior: ipcidr
  125.     url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/cncidr.txt"
  126.     path: ./ruleset/cncidr.yaml
  127.     interval: 86400
  128.  
  129.   lancidr:
  130.     type: http
  131.     behavior: ipcidr
  132.     url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/lancidr.txt"
  133.     path: ./ruleset/lancidr.yaml
  134.     interval: 86400
  135.  
  136.   applications:
  137.     type: http
  138.     behavior: classical
  139.     url: "https://pastebin.com/raw/kkZfLFUH"
  140.     path: ./ruleset/applications.yaml
  141.     interval: 86400
  142.  
  143.   ai_non_ip:
  144.     type: http
  145.     behavior: classical
  146.     format: text
  147.     interval: 43200
  148.     url: https://ruleset.skk.moe/Clash/non_ip/ai.txt
  149.     path: ./sukkaw_ruleset/ai_non_ip.txt
  150.  
  151.   microsoft_cdn_non_ip:
  152.     type: http
  153.     behavior: classical
  154.     format: text
  155.     interval: 43200
  156.     url: https://ruleset.skk.moe/Clash/non_ip/microsoft_cdn.txt
  157.     path: ./sukkaw_ruleset/microsoft_cdn_non_ip.txt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement