需求:现在增加一个家宽(已经配置了免流和国外扶墙分流),怎么添加进去,注意不能让着个流量再走百度直连了!
- name: 家宽
type: vmess
server: 120.53.4.***
port: 50002
uuid: 418048af-a293-4b99-9b0c-98ca3580dd24
alterId: 64
cipher: auto
udp: true
skip-cert-verify: true
network: tcp
ws-opts:
path: /
headers:
Host: m.youku.com
# tls: false # https
# skip-cert-verify: true
proxy-groups:
# 节点群组,节点和订阅的名称配置到下面
- name: 国外
type: select
use:
- 机场节点1
proxies:
- 国内
- name: 国内
type: select
proxies:
- 南京电1
- 南京电2
- 苏州电
- 苏州联
- 南京联
- 南京电失免
- 直连
- name: 直连
type: select
proxies:
- DIRECT
- name: 拦截
type: select
proxies:
- REJECT
- name: 中继
type: relay
proxies:
- 国内
- 国外
rule-providers:
reject:
type: http
behavior: domain
url: “https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/reject.txt“
path: ./ruleset/reject.yaml
interval: 86400
rules:
# UDP 规则
- AND,((NETWORK,UDP)),拦截
# 广告过滤
- RULE-SET,reject,拦截
- DOMAIN-KEYWORD,ad,拦截
# 分流规则
- DOMAIN-KEYWORD,google,中继
- GEOSITE,CN,国内
- GEOIP,CN,国内
- MATCH,中继