rule-providers:
reject:
type: http
behavior: domain
url: "https://rules.ugigc.ggff.net/clash/Ruleset/reject.txt"
path: ./profiles/rules/reject.yaml
interval: 86400
rejectcidr:
type: http
behavior: ipcidr
url: "https://rules.ugigc.ggff.net/clash/Ruleset/rejectcidr.txt"
path: ./profiles/rules/rejectcidr.yaml
interval: 86400
icloud:
type: http
behavior: domain
url: "https://rules.ugigc.ggff.net/clash/Ruleset/icloudcn.txt"
path: ./profiles/rules/icloudcn.yaml
interval: 86400
apple:
type: http
behavior: domain
url: "https://rules.ugigc.ggff.net/clash/Ruleset/applecn.txt"
path: ./profiles/rules/applecn.yaml
interval: 86400
win-spy:
type: http
behavior: domain
format: text
url: "https://rules.ugigc.ggff.net/clash/Ruleset/win-spy.txt"
path: ./profiles/rules/win-spy.txt
interval: 86400
win-update:
type: http
behavior: domain
format: text
url: "https://rules.ugigc.ggff.net/clash/Ruleset/win-update.txt"
path: ./profiles/rules/win-update.txt
interval: 86400
win-extra:
type: http
behavior: domain
format: text
url: "https://rules.ugigc.ggff.net/clash/Ruleset/win-extra.txt"
path: ./profiles/rules/win-extra.txt
interval: 86400
googlel:
type: http
behavior: domain
url: "https://rules.ugigc.ggff.net/clash/Ruleset/google.txt"
path: ./profiles/rules/google.yaml
interval: 86400
proxy:
type: http
behavior: domain
url: "https://rules.ugigc.ggff.net/clash/Ruleset/proxy.txt"
path: ./profiles/rules/proxy.yaml
interval: 86400
direct:
type: http
behavior: domain
url: "https://rules.ugigc.ggff.net/clash/Ruleset/direct.txt"
path: ./profiles/rules/direct.yaml
interval: 86400
private:
type: http
behavior: domain
url: "https://rules.ugigc.ggff.net/clash/Ruleset/private.txt"
path: ./profiles/rules/private.yaml
interval: 86400
privatecn:
type: http
behavior: domain
url: "https://rules.ugigc.ggff.net/clash/Ruleset/privatecn.txt"
path: ./profiles/rules/privatecn.yaml
interval: 86400
gfw:
type: http
behavior: domain
url: "https://rules.ugigc.ggff.net/clash/Ruleset/gfw.txt"
path: ./profiles/rules/gfw.yaml
interval: 86400
tld-not-cn:
type: http
behavior: domain
url: "https://rules.ugigc.ggff.net/clash/Ruleset/tld-not-cn.txt"
path: ./profiles/rules/tld-not-cn.yaml
interval: 86400
Foreignmedia:
type: http
behavior: domain
url: "https://rules.ugigc.ggff.net/clash/Ruleset/Foreignmedia.txt"
interval: 86400
path: ./profiles/rules/Foreignmedia.yaml
Netflix:
type: http
behavior: domain
url: "https://rules.ugigc.ggff.net/clash/Ruleset/Netflix.txt"
interval: 86400
path: ./profiles/rules/Netflix.yaml
telegramcidr:
type: http
behavior: ipcidr
url: "https://rules.ugigc.ggff.net/clash/Ruleset/telegramcidr.txt"
path: ./profiles/rules/telegramcidr.yaml
interval: 86400
proxy-ip-cidr:
type: http
behavior: ipcidr
url: "https://rules.ugigc.ggff.net/clash/Ruleset/proxy-ip-cidr.txt"
path: ./profiles/rules/proxy-ip-cidr.yaml
interval: 86400
lancidr:
type: http
behavior: ipcidr
url: "https://rules.ugigc.ggff.net/clash/Ruleset/lancidr.txt"
path: ./profiles/rules/lancidr.yaml
interval: 86400
applications:
type: http
behavior: classical
url: "https://rules.ugigc.ggff.net/clash/Ruleset/applications.txt"
path: ./profiles/rules/applications.yaml
interval: 86400
domain-proxy-cidr:
type: http
behavior: domain
url: "https://rules.ugigc.ggff.net/clash/Ruleset/domain-proxy-cidr.txt"
path: ./profiles/rules/domain-proxy-cidr.yaml
interval: 86400
ip-proxy-cidr:
type: http
behavior: ipcidr
url: "https://rules.ugigc.ggff.net/clash/Ruleset/ip-proxy-cidr.txt"
path: ./profiles/rules/ip-proxy-cidr.yaml
interval: 86400
cncidr:
type: http
behavior: ipcidr
url: "https://rules.ugigc.ggff.net/clash/Ruleset/cncidr.txt"
path: ./profiles/rules/cncidr.yaml
interval: 86400
allcidr:
type: http
behavior: ipcidr
format: text
url: "https://rules.ugigc.ggff.net/clash/Ruleset/all_cn_cidr.txt"
path: ./profiles/rules/all_cn_cidr.txt
interval: 86400
allipv6cidr:
type: http
behavior: ipcidr
format: text
url: "https://rules.ugigc.ggff.net/clash/Ruleset/all_cn_ipv6.txt"
path: ./profiles/rules/all_cn_ipv6.txt
interval: 86400
tvb:
type: http
behavior: domain
url: "https://rules.ugigc.ggff.net/clash/Ruleset/tvb.txt"
path: ./profiles/rules/tvb.ymal
interval: 86400
# 规则
rules:
- RULE-SET,applications,DIRECT
- RULE-SET,private,DIRECT
- RULE-SET,privatecn,DIRECT
- RULE-SET,reject,🛑 广告拦截
- RULE-SET,rejectcidr,🛑 广告拦截
- GEOSITE,category-ads-all,🛑 广告拦截
- RULE-SET,lancidr,DIRECT,no-resolve
- RULE-SET,allcidr,DIRECT,no-resolve
- RULE-SET,allipv6cidr,DIRECT,no-resolve
- RULE-SET,cncidr,DIRECT,no-resolve
- RULE-SET,icloud,🍏 苹果
- RULE-SET,apple,🍏 苹果
- RULE-SET,win-spy,Ⓜ️ 微软
- RULE-SET,win-update,Ⓜ️ 微软
- RULE-SET,win-extra,Ⓜ️ 微软
- RULE-SET,googlel,🐓 谷歌
- RULE-SET,tvb,tvb
- RULE-SET,Foreignmedia,🌍 国外媒体
- RULE-SET,Netflix,🎥 NETFLIX
- RULE-SET,proxy,✈️ 墙外网站
- RULE-SET,gfw,✈️ 墙外网站
- RULE-SET,tld-not-cn,✈️ 墙外网站
- RULE-SET,telegramcidr,✈️ 墙外网站
- GEOSITE,geolocation-!cn,✈️ 墙外网站
- RULE-SET,domain-proxy-cidr,✈️ 墙外网站
- RULE-SET,ip-proxy-cidr,✈️ 墙外网站,no-resolve
- GEOSITE,!cn,✈️ 墙外网站
- GEOIP,!CN,✈️ 墙外网站,no-resolve
- RULE-SET,direct,DIRECT
- GEOSITE,cn,DIRECT
- GEOIP,private,DIRECT
- GEOIP,CN,DIRECT
- RULE-SET,proxy-ip-cidr,✈️ 墙外网站,no-resolve
- MATCH,🐟 其他网站
nohup socat TCP4-LISTEN:80,reuseaddr,fork TCP4:192.168.3.99:80 >> socat.log 2>&1 &
nohup socat TCP4-LISTEN:443,reuseaddr,fork TCP4:192.168.3.99:443 >> socat.log 2>&1 &
nohup socat -T 600 UDP4-LISTEN:443,reuseaddr,fork UDP4:192.168.3.99:443 >> socat.log 2>&1 &