gooaclok819 / sublinkX

开源节点订阅转换生成管理系统
MIT License
287 stars 55 forks source link

添加对clash链式代理的兼容 #12

Closed miaojior closed 3 weeks ago

miaojior commented 1 month ago

我修改模板并加入了链式代理 但是他会默认把订阅节点添加到类型为ralay的策略组 链式代理无法使用

miaojior commented 1 month ago

能否加入如果类型为relay 那么不加入任何节点

frui85 commented 1 month ago

要是能不用把节点组自动全都写入到每个proxies 下就好了,模板自己设定自动过滤选择

锚点

pr: &pr {type: select, proxies: [🚀 节点选择, ♻️ 香港自动, ♻️ 新加坡自动, ♻️ 美国自动, ♻️ 自动选择, 🇭🇰 香港节点, 🇸🇬 新加坡节点, 🇺🇲 美国节点, 🌐 全部节点, 🔗 链式代理, 🟢 直连]}

用于下载订阅时指定UA

global-ua: clash.meta

全局配置

port: 7890 socks-port: 7891 redir-port: 7892 mixed-port: 7893 tproxy-port: 7894 ipv6: false allow-lan: true unified-delay: true tcp-concurrent: true

interface-name: eth0 (路由器下根据情况指定出站接口)

authentication:

- name:passwd

geodata-mode: false

GEO 文件加载模式(standard:标准加载器/memconservative:专为内存受限 (小内存) 设备优化的加载器 (默认值))

geodata-loader: standard geo-auto-update: true geo-update-interval: 48 geox-url: geosite: "https://mirror.ghproxy.com/https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/geosite.dat" mmdb: "https://mirror.ghproxy.com/https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/geoip-lite.metadb" geoip: "https://mirror.ghproxy.com/https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/geoip-lite.dat" asn: "https://mirror.ghproxy.com/https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/GeoLite2-ASN.mmdb"

控制面板

external-controller: 0.0.0.0:9090 secret: "" external-ui: ui external-ui-url: "https://mirror.ghproxy.com/https://github.com/MetaCubeX/metacubexd/archive/refs/heads/gh-pages.zip"

下载面板地址可更换:https://mirror.ghproxy.com/https://github.com/MetaCubeX/Yacd-meta/archive/gh-pages.zip

匹配进程 always/strict/off

find-process-mode: strict global-client-fingerprint: chrome keep-alive-idle: 600 keep-alive-interval: 30

策略组选择和fakeip缓存

profile: store-selected: true store-fake-ip: true

流量嗅探

sniffer: enable: true sniff: HTTP: ports: [80, 8080-8880] override-destination: true TLS: ports: [443, 8443] QUIC: ports: [443, 8443] force-domain:

代理模式

tun: enable: true stack: mixed mtu: 9000 dns-hijack:

DNS模块

dns: enable: true listen: 0.0.0.0:1053 ipv6: false respect-rules: true

模式切换 redir-host / fake-ip

enhanced-mode: fake-ip fake-ip-range: 28.0.0.1/8

模式切换 whitelist/blacklist

黑名单模式表示如果匹配成功则不返回 Fake-IP, 白名单模式时只有匹配成功才返回 Fake-IP

fake-ip-filter-mode: blacklist fake-ip-filter:

proxies:

策略组

proxy-groups:

frui85 commented 1 month ago

image

frui85 commented 1 month ago

上面配置只插入 proxies: 然后自动过滤选择节点

jaaksii commented 3 weeks ago

已支持