Update local rulesets and configs

This commit is contained in:
Tindy X committed 2020-03-12 15:55:02 +08:00
1 parent 5594070657
commit 55ad853a2c
22 files changed
+154 -86

No files matched your search

+81 -62
View File
@@ -15,11 +15,17 @@ socks-port: 7891
# 允许局域网的连接(可用来共享代理)
allow-lan: true
# 仅在将allow-lan设置为true时适用
# #"*": 绑定所有IP地址
# #192.168.122.11: 绑定单个IPv4地址
# #"[aaaa::a8aa:ff:fe09:57d8]": 绑定单个IPv6地址
# bind-address: "*"
# 规则模式:Rule(规则) / Global(全局代理)/ Direct(全局直连)
mode: Rule
# 设置日志输出级别 (默认级别:silent,即不输出任何内容,以避免因日志内容过大而导致程序内存溢出)。
# 5 个级别:silent / info / warning / error / debug。级别越高日志输出量越大,越倾向于调试,若需要请自行开启。
# 5 个级别:silent / error / warning / info / debug。级别越高日志输出量越大,越倾向于调试,若需要请自行开启。
log-level: info
# Clash 的 RESTful API
@@ -36,63 +42,51 @@ external-controller: '127.0.0.1:9090'
# RESTful API 的口令 (可选)
# secret: ""
# 实验性功能
experimental:
ignore-resolve-fail: true # 忽略 DNS 解析失败,默认值为 true
# interface-name: en0 # outbound interface name
# 本地 SOCKS5 / HTTP(S) 服务认证
# authentication:
# - "user1:pass1"
# - "user2:pass2"
# 实验性功能
experimental:
ignore-resolve-fail: true # 忽略 DNS 解析失败,默认值为 true
# 代理组
# 下面这3个不要引到订阅里去 要不会出错
# Will be ignored after profile selection
Proxy:
- name: Shadowsocks
type: socks5
server: 127.0.0.1
port: 1080
Proxy Group:
- name: Proxy
type: select
proxies:
- Shadowsocks
Rule:
- 'MATCH,DIRECT'
# 实验性功能 hosts, 支持通配符 (例如 *.clash.dev 甚至 *.foo.*.example.com)
# 静态的域名 比 通配域名 具有更高的优先级 (foo.example.com 优先于 *.example.com)
# 注意: hosts 在 fake-ip 模式下不生效
#hosts:
# '*.clash.dev': 127.0.0.1
# 'alpha.clash.dev': '::1'
#dns:
# enable: true
# ipv6: false
# listen: 0.0.0.0:53
# enhanced-mode: redir-host # 模式:redir-host或fake-ip
# # fake-ip-range: 198.18.0.1/16 # 如果你不知道这个参数的作用,请勿修改
# # 实验性功能 hosts, 支持通配符 (例如 *.clash.dev 甚至 *.foo.*.example.com)
# # 静态的域名 比 通配域名 具有更高的优先级 (foo.example.com 优先于 *.example.com)
# # 注意: hosts 在 fake-ip 模式下不生效
# hosts:
# '*.clash.dev': 127.0.0.1
# 'alpha.clash.dev': '::1'
# nameserver:
# - 223.5.5.5 # 阿里DNS
# - 180.76.76.76 # 百度DNS
# - 119.29.29.29 # 腾讯DNS
# - 117.50.10.10 # ONE DNS纯净版
# - 114.114.114.114 # 114DNS
# fallback:
# - 8.8.8.8 # 谷歌DNS
# - 1.1.1.1 # Cloudflare DNS
# - tls://dns.rubyfish.cn:853
# - tls://1.0.0.1:853
# - tls://dns.google:853
# #- https://dns.rubyfish.cn/dns-query
# #- https://cloudflare-dns.com/dns-query
# #- https://dns.google/dns-query
# fallback-filter:
# geoip: true # 默认
# ipcidr: # 在这个网段内的 IP 地址会被考虑为被污染的 IP
# - 240.0.0.0/4
#enable: true # 是否启用dns false
#ipv6: false
#listen: 0.0.0.0:53
#enhanced-mode: redir-host # 模式:redir-host或fake-ip
#fake-ip-range: 198.18.0.1/16 #
#fake-ip-filter: # fake ip 白名单列表,如果你不知道这个参数的作用,请勿修改
#- '*.lan'
#- localhost.ptlogin2.qq.com
#nameserver:
#- 223.5.5.5 # 阿里DNS
#- 180.76.76.76 # 百度DNS
#- 119.29.29.29 # 腾讯DNS
#- 117.50.10.10 # ONE DNS纯净版
#- 114.114.114.114 # 114DNS
#fallback:
#- 8.8.8.8 # 谷歌DNS
#- 1.1.1.1 # Cloudflare DNS
#- tls://dns.rubyfish.cn:853
#- tls://1.0.0.1:853
#- tls://dns.google:853
#- https://dns.rubyfish.cn/dns-query
#- https://cloudflare-dns.com/dns-query
#- https://dns.google/dns-query
#fallback-filter:
#geoip: true # 默认
#ipcidr: # 在这个网段内的 IP 地址会被考虑为被污染的 IP
#- 240.0.0.0/4
# 1. clash DNS 请求逻辑:
# (1) 当访问一个域名时, nameserver 与 fallback 列表内的所有服务器并发请求,得到域名对应的 IP 地址。
@@ -112,6 +106,21 @@ Rule:
# DoT: 以 tls:// 开头的 DNS 服务器。拥有更高的安全性和查询效率,但端口有可能被管制或封锁。
# 若要了解更多关于 DoH/DoT 相关技术,请自行查阅规范文档。
# 代理组
# 下面这3个不要引到订阅里去 要不会出错
# Will be ignored after profile selection
Proxy:
- name: Shadowsocks
type: socks5
server: 127.0.0.1
port: 1080
Proxy Group:
- name: Proxy
type: select
proxies:
- Shadowsocks
Rule:
- 'MATCH,DIRECT'
# Clash for Windows
# Proxies module latency test settings
@@ -137,17 +146,27 @@ cfw-conn-break-strategy:
# Run child process after CFW started
# Refer: https://docs.cfw.lbyczf.com/contents/childprocess.html
#cfw-child-process:
# # 启动订阅转换程序,端口号7893
# - command: "subconverter.exe" # run.cmd 程序名称subconverter.exe -cfw >>logs/run.log 2>&1
# args:
# - "-cfw" # 运行参数1
# - "-f" # 运行参数2
# - "pref-acl4ssr.yml" # 运行参数3
# options:
# cwd: .\subconverter\ # 子进程工作目录
# #detached: true # 子进程独立于其父进程运行
# #shell: true # 则在 shell 中运行 command
# windowsHide: true # 隐藏子进程的控制台窗口
# 启动订阅转换程序,端口号7893
#- command: "subconverter.exe" # run.cmd 程序名称 subconverter.exe -cfw >>logs/run.log 2>&1
#args:
#- "-cfw" # 运行参数1
#- "-f" # 运行参数2
#- "pref-acl4ssr.yml" # 运行参数3
#options:
#cwd: subconverter # 子进程工作目录
#detached: true # 子进程独立于其父进程运行
#shell: true # 则在 shell 中运行 command
#windowsHide: true # 隐藏子进程的控制台窗口
# 启动网易云,端口号3333
#- command: "unblockneteasemusic.exe" # 启动网易云,端口号3333
#args:
#- "-p" # 运行参数1
#- "3333" # 运行参数2
#options:
#cwd: unblockNeteaseMusic # 子进程工作目录
#detached: true # 子进程独立于其父进程运行
#shell: true # 则在 shell 中运行 command
#windowsHide: true # 隐藏子进程的控制台窗口
# 系统代理跳过列表 cfw-bypass
# System proxy will ignore these domains(or ipnet)