mihomo
mihomo copied to clipboard
请问这个配置文件那里有问题?无法代理上网。
proxies:
- {name: "WARP1",type: wireguard,server: 2606:4700:d0::42aa:6b00:7090:58d1,port: 988,ip: 172.16.0.2,public-key: XXXXXXXXXX,private-key: XXXXXXXXXX,mtu: 1280,udp: true}
- {name: "WARP2",type: wireguard,server: 2606:4700:d1::fe7c:1766:a153:8676,port: 946,ip: 172.16.0.2,public-key: XXXXXXXXXX,private-key: XXXXXXXXXX,mtu: 1280,udp: true}
- {name: "WARP3",type: wireguard,server: 2606:4700:d0::5708:ca0d:aa69:7d05,port: 988,ip: 172.16.0.2,public-key: XXXXXXXXXX,private-key: XXXXXXXXXX,mtu: 1280,udp: true}
- {name: "WARP4",type: wireguard,server: 2606:4700:d1::2ade:c53d:f478:77d9,port: 946,ip: 172.16.0.2,public-key: XXXXXXXXXX,private-key: XXXXXXXXXX,mtu: 1280,udp: true} mode: rule ipv6: true log-level: silent allow-lan: true mixed-port: 7890 unified-delay: false tcp-concurrent: true external-controller-tls: 127.0.0.1:9090 find-process-mode: strict global-client-fingerprint: chrome profile: {store-selected: true, store-fake-ip: true}
tun: enable: true stack: system dns-hijack: ['any:53'] auto-route: true auto-detect-interface: true strict-route: true
dns: enable: true prefer-h3: true ipv6: true listen: 0.0.0.0:1053 use-hosts: true fake-ip-range: 198.18.0.1/16 enhanced-mode: fake-ip fake-ip-filter: - '.lan' - '.localdomain' - '.example' - '.invalid' - '.localhost' - '.test' - '.local' - '.home.arpa' - 'time..com' - 'time..gov' - 'time..edu.cn' - 'time..apple.com' - 'time-ios.apple.com' - 'time1..com' - 'time2..com' - 'time3..com' - 'time4..com' - 'time5..com' - 'time6..com' - 'time7..com' - 'ntp..com' - 'ntp1..com' - 'ntp2..com' - 'ntp3..com' - 'ntp4..com' - 'ntp5..com' - 'ntp6..com' - 'ntp7..com' - '.time.edu.cn' - '.ntp.org.cn' - '+.pool.ntp.org' - 'time1.cloud.tencent.com' - 'music.163.com' - '.music.163.com' - '.126.net' - 'musicapi.taihe.com' - 'music.taihe.com' - 'songsearch.kugou.com' - 'trackercdn.kugou.com' - '.kuwo.cn' - 'api-jooxtt.sanook.com' - 'api.joox.com' - 'joox.com' - 'y.qq.com' - '.y.qq.com' - 'streamoc.music.tc.qq.com' - 'mobileoc.music.tc.qq.com' - 'isure.stream.qqmusic.qq.com' - 'dl.stream.qqmusic.qq.com' - 'aqqmusic.tc.qq.com' - 'amobile.music.tc.qq.com' - '.xiami.com' - '.music.migu.cn' - 'music.migu.cn' - '+.msftconnecttest.com' - '+.msftncsi.com' - 'localhost.ptlogin2.qq.com' - 'localhost.sec.qq.com' - '+.qq.com' - '+.tencent.com' - '+.srv.nintendo.net' - '.n.n.srv.nintendo.net' - '+.stun.playstation.net' - 'xbox...microsoft.com' - '..xboxlive.com' - 'xbox..microsoft.com' - 'xnotify.xboxlive.com' - '+.battlenet.com.cn' - '+.wotgame.cn' - '+.wggames.cn' - '+.wowsgame.cn' - '+.wargaming.net' - 'proxy.golang.org' - 'stun..' - 'stun...' - '+.stun..' - '+.stun...' - '+.stun....' - '+.stun.....' - 'heartbeat.belkin.com' - '.linksys.com' - '.linksyssmartwifi.com' - '.router.asus.com' - 'mesu.apple.com' - 'swscan.apple.com' - 'swquery.apple.com' - 'swdownload.apple.com' - 'swcdn.apple.com' - 'swdist.apple.com' - 'lens.l.google.com' - 'stun.l.google.com' - 'na.b.g-tun.com' - '+.nflxvideo.net' - '.square-enix.com' - '.finalfantasyxiv.com' - '.ffxiv.com' - '.ff14.sdo.com' - 'ff.dorado.sdo.com' - '.mcdn.bilivideo.cn' - '+.media.dssott.com' - 'shark007.net' - 'Mijia Cloud' - '+.cmbchina.com' - '+.cmbimg.com' - 'local.adguard.org' - 'static.adtidy.org' - '+.sandai.net' - '+.n0808.com' - 'adguardteam.github.io' - 'anti-ad.net' default-nameserver: - https://223.5.5.5/dns-query - https://1.12.12.12/dns-query nameserver: - https://dns.alidns.com/dns-query - https://doh.pub/dns-query
proxy-groups:
-
{name: 🚀 节点选择, type: select, proxies: [WARP1, WARP2, WARP3, WARP4]}
-
{name: 📈 网络测试, type: select, proxies: [🎯 全球直连, WARP1, WARP2, WARP3, WARP4]}
-
{name: 🐟 漏网之鱼, type: select, proxies: [🚀 节点选择, 🎯 全球直连]}
-
{name: ⚡ 直连域名, type: select, proxies: [🎯 全球直连, 🚀 节点选择]}
-
{name: 🪜 代理域名, type: select, proxies: [🚀 节点选择, 🎯 全球直连]}
-
{name: 🎮 国区游戏, type: select, proxies: [🎯 全球直连, 🚀 节点选择]}
-
{name: Ⓜ️ Microsoft 中国, type: select, proxies: [🎯 全球直连, 🚀 节点选择]}
-
{name: 🗽 Google 中国, type: select, proxies: [🎯 全球直连, 🚀 节点选择]}
-
{name: 🍎 Apple 中国, type: select, proxies: [🎯 全球直连, 🚀 节点选择]}
-
{name: 🇨🇳 国内 IP, type: select, proxies: [🎯 全球直连, 🚀 节点选择]}
-
{name: ✈️ Telegram, type: select, proxies: [🚀 节点选择]}
-
{name: 🖥️ 直连软件, type: select, proxies: [🎯 全球直连]}
-
{name: 🏠 私有网络, type: select, proxies: [🎯 全球直连]}
-
{name: ⛔️ 广告域名, type: select, proxies: [🛑 全球拦截]}
-
{name: 🎯 全球直连, type: select, proxies: [DIRECT]}
-
{name: 🛑 全球拦截, type: select, proxies: [REJECT]}
rule-providers: ads: type: http behavior: domain url: "https://fastly.jsdelivr.net/gh/DustinWin/clash-ruleset@release/ads.yaml" path: ./ruleset/ads.yaml interval: 86400
private: type: http behavior: domain url: "https://fastly.jsdelivr.net/gh/DustinWin/clash-ruleset@release/private.yaml" path: ./ruleset/private.yaml interval: 86400
microsoft-cn: type: http behavior: domain url: "https://fastly.jsdelivr.net/gh/DustinWin/clash-ruleset@release/microsoft-cn.yaml" path: ./ruleset/microsoft-cn.yaml interval: 86400
apple-cn: type: http behavior: domain url: "https://fastly.jsdelivr.net/gh/DustinWin/clash-ruleset@release/apple-cn.yaml" path: ./ruleset/apple-cn.yaml interval: 86400
google-cn: type: http behavior: domain url: "https://fastly.jsdelivr.net/gh/DustinWin/clash-ruleset@release/google-cn.yaml" path: ./ruleset/google-cn.yaml interval: 86400
games-cn: type: http behavior: domain url: "https://fastly.jsdelivr.net/gh/DustinWin/clash-ruleset@release/games-cn.yaml" path: ./ruleset/games-cn.yaml interval: 86400
networktest: type: http behavior: classical url: "https://fastly.jsdelivr.net/gh/DustinWin/clash-ruleset@release/networktest.yaml" path: ./ruleset/networktest.yaml interval: 86400
applications: type: http behavior: classical url: "https://fastly.jsdelivr.net/gh/DustinWin/clash-ruleset@release/applications.yaml" path: ./ruleset/applications.yaml interval: 86400
proxy: type: http behavior: domain url: "https://fastly.jsdelivr.net/gh/DustinWin/clash-ruleset@release/proxy.yaml" path: ./ruleset/proxy.yaml interval: 86400
cn: type: http behavior: domain url: "https://fastly.jsdelivr.net/gh/DustinWin/clash-ruleset@release/cn.yaml" path: ./ruleset/cn.yaml interval: 86400
telegramip: type: http behavior: ipcidr url: "https://fastly.jsdelivr.net/gh/DustinWin/clash-ruleset@release/telegramip.yaml" path: ./ruleset/telegramip.yaml interval: 86400
privateip: type: http behavior: ipcidr url: "https://fastly.jsdelivr.net/gh/DustinWin/clash-ruleset@release/privateip.yaml" path: ./ruleset/privateip.yaml interval: 86400
cnip: type: http behavior: ipcidr url: "https://fastly.jsdelivr.net/gh/DustinWin/clash-ruleset@release/cnip.yaml" path: ./ruleset/cnip.yaml interval: 86400
rules:
- RULE-SET,ads,⛔️ 广告域名
- RULE-SET,private,🏠 私有网络
- RULE-SET,microsoft-cn,Ⓜ️ Microsoft 中国
- RULE-SET,apple-cn,🍎 Apple 中国
- RULE-SET,google-cn,🗽 Google 中国
- RULE-SET,games-cn,🎮 国区游戏
- RULE-SET,networktest,📈 网络测试
- RULE-SET,applications,🖥️ 直连软件
- RULE-SET,proxy,🪜 代理域名
- RULE-SET,cn,⚡ 直连域名
- RULE-SET,telegramip,✈️ Telegram
- RULE-SET,privateip,🏠 私有网络,no-resolve
- RULE-SET,cnip,🇨🇳 国内 IP
- MATCH,🐟 漏网之鱼
原来我是使用clash带分流规则的的配置文件可以正常代理,但这个文件用clashmeta可以加载但无法代理。 于是在GitHub上找了一个可以在clashmeta的配置文件进行修改,结果还是一样。 [TCP] dial 🪜 代理域名 (match RuleSet/proxy) [::1]:59993(chrome.exe) --> www.youtube.com:443 error: connect tcp [2a03:2880:f10e:83:face:b00c:0:25de]:443: no route to host context deadline exceeded
把你的代码用代码标志符括起来再发一次
把你的代码用代码标志符括起来再发一次
proxies:
{name: "WARP1",type: wireguard,server: 2606:4700:d0::42aa:6b00:7090:58d1,port: 988,ip: 172.16.0.2,public-key: XXXXXXXXXX,private-key: XXXXXXXXXX,mtu: 1280,udp: true}
{name: "WARP2",type: wireguard,server: 2606:4700:d1::fe7c:1766:a153:8676,port: 946,ip: 172.16.0.2,public-key: XXXXXXXXXX,private-key: XXXXXXXXXX,mtu: 1280,udp: true}
{name: "WARP3",type: wireguard,server: 2606:4700:d0::5708:ca0d:aa69:7d05,port: 988,ip: 172.16.0.2,public-key: XXXXXXXXXX,private-key: XXXXXXXXXX,mtu: 1280,udp: true}
{name: "WARP4",type: wireguard,server: 2606:4700:d1::2ade:c53d:f478:77d9,port: 946,ip: 172.16.0.2,public-key: XXXXXXXXXX,private-key: XXXXXXXXXX,mtu: 1280,udp: true}
mode: rule
ipv6: true
log-level: silent
allow-lan: true
mixed-port: 7890
unified-delay: false
tcp-concurrent: true
external-controller-tls: 127.0.0.1:9090
find-process-mode: strict
global-client-fingerprint: chrome
profile: {store-selected: true, store-fake-ip: true}
tun:
enable: true
stack: system
dns-hijack: ['any:53']
auto-route: true
auto-detect-interface: true
strict-route: true
dns:
enable: true
prefer-h3: true
ipv6: true
listen: 0.0.0.0:1053
use-hosts: true
fake-ip-range: 198.18.0.1/16
enhanced-mode: fake-ip
fake-ip-filter:
- '.lan'
- '.localdomain'
- '.example'
- '.invalid'
- '.localhost'
- '.test'
- '.local'
- '.home.arpa'
- 'time..com'
- 'time..gov'
- 'time..edu.cn'
- 'time..apple.com'
- 'time-ios.apple.com'
- 'time1..com'
- 'time2..com'
- 'time3..com'
- 'time4..com'
- 'time5..com'
- 'time6..com'
- 'time7..com'
- 'ntp..com'
- 'ntp1..com'
- 'ntp2..com'
- 'ntp3..com'
- 'ntp4..com'
- 'ntp5..com'
- 'ntp6..com'
- 'ntp7..com'
- '.time.edu.cn'
- '.ntp.org.cn'
- '+.pool.ntp.org'
- 'time1.cloud.tencent.com'
- 'music.163.com'
- '.music.163.com'
- '.126.net'
- 'musicapi.taihe.com'
- 'music.taihe.com'
- 'songsearch.kugou.com'
- 'trackercdn.kugou.com'
- '.kuwo.cn'
- 'api-jooxtt.sanook.com'
- 'api.joox.com'
- 'joox.com'
- 'y.qq.com'
- '.y.qq.com'
- 'streamoc.music.tc.qq.com'
- 'mobileoc.music.tc.qq.com'
- 'isure.stream.qqmusic.qq.com'
- 'dl.stream.qqmusic.qq.com'
- 'aqqmusic.tc.qq.com'
- 'amobile.music.tc.qq.com'
- '.xiami.com'
- '.music.migu.cn'
- 'music.migu.cn'
- '+.msftconnecttest.com'
- '+.msftncsi.com'
- 'localhost.ptlogin2.qq.com'
- 'localhost.sec.qq.com'
- '+.qq.com'
- '+.tencent.com'
- '+.srv.nintendo.net'
- '.n.n.srv.nintendo.net'
- '+.stun.playstation.net'
- 'xbox...microsoft.com'
- '..xboxlive.com'
- 'xbox..microsoft.com'
- 'xnotify.xboxlive.com'
- '+.battlenet.com.cn'
- '+.wotgame.cn'
- '+.wggames.cn'
- '+.wowsgame.cn'
- '+.wargaming.net'
- 'proxy.golang.org'
- 'stun..'
- 'stun...'
- '+.stun..'
- '+.stun...'
- '+.stun....'
- '+.stun.....'
- 'heartbeat.belkin.com'
- '.linksys.com'
- '.linksyssmartwifi.com'
- '.router.asus.com'
- 'mesu.apple.com'
- 'swscan.apple.com'
- 'swquery.apple.com'
- 'swdownload.apple.com'
- 'swcdn.apple.com'
- 'swdist.apple.com'
- 'lens.l.google.com'
- 'stun.l.google.com'
- 'na.b.g-tun.com'
- '+.nflxvideo.net'
- '.square-enix.com'
- '.finalfantasyxiv.com'
- '.ffxiv.com'
- '.ff14.sdo.com'
- 'ff.dorado.sdo.com'
- '.mcdn.bilivideo.cn'
- '+.media.dssott.com'
- 'shark007.net'
- 'Mijia Cloud'
- '+.cmbchina.com'
- '+.cmbimg.com'
- 'local.adguard.org'
- 'static.adtidy.org'
- '+.sandai.net'
- '+.n0808.com'
- 'adguardteam.github.io'
- 'anti-ad.net'
default-nameserver:
- https://223.5.5.5/dns-query
- https://1.12.12.12/dns-query
nameserver:
- https://dns.alidns.com/dns-query
- https://doh.pub/dns-query
proxy-groups:
{name: 🚀 节点选择, type: select, proxies: [WARP1, WARP2, WARP3, WARP4]}
{name: 📈 网络测试, type: select, proxies: [🎯 全球直连, WARP1, WARP2, WARP3, WARP4]}
{name: 🐟 漏网之鱼, type: select, proxies: [🚀 节点选择, 🎯 全球直连]}
{name: ⚡ 直连域名, type: select, proxies: [🎯 全球直连, 🚀 节点选择]}
{name: 🪜 代理域名, type: select, proxies: [🚀 节点选择, 🎯 全球直连]}
{name: 🎮 国区游戏, type: select, proxies: [🎯 全球直连, 🚀 节点选择]}
{name: Ⓜ️ Microsoft 中国, type: select, proxies: [🎯 全球直连, 🚀 节点选择]}
{name: 🗽 Google 中国, type: select, proxies: [🎯 全球直连, 🚀 节点选择]}
{name: 🍎 Apple 中国, type: select, proxies: [🎯 全球直连, 🚀 节点选择]}
{name: 🇨🇳 国内 IP, type: select, proxies: [🎯 全球直连, 🚀 节点选择]}
{name: ✈️ Telegram, type: select, proxies: [🚀 节点选择]}
{name: 🖥️ 直连软件, type: select, proxies: [🎯 全球直连]}
{name: 🏠 私有网络, type: select, proxies: [🎯 全球直连]}
{name: ⛔️ 广告域名, type: select, proxies: [🛑 全球拦截]}
{name: 🎯 全球直连, type: select, proxies: [DIRECT]}
{name: 🛑 全球拦截, type: select, proxies: [REJECT]}
rule-providers:
ads:
type: http
behavior: domain
url: "https://fastly.jsdelivr.net/gh/DustinWin/clash-ruleset@release/ads.yaml"
path: ./ruleset/ads.yaml
interval: 86400
private:
type: http
behavior: domain
url: "https://fastly.jsdelivr.net/gh/DustinWin/clash-ruleset@release/private.yaml"
path: ./ruleset/private.yaml
interval: 86400
microsoft-cn:
type: http
behavior: domain
url: "https://fastly.jsdelivr.net/gh/DustinWin/clash-ruleset@release/microsoft-cn.yaml"
path: ./ruleset/microsoft-cn.yaml
interval: 86400
apple-cn:
type: http
behavior: domain
url: "https://fastly.jsdelivr.net/gh/DustinWin/clash-ruleset@release/apple-cn.yaml"
path: ./ruleset/apple-cn.yaml
interval: 86400
google-cn:
type: http
behavior: domain
url: "https://fastly.jsdelivr.net/gh/DustinWin/clash-ruleset@release/google-cn.yaml"
path: ./ruleset/google-cn.yaml
interval: 86400
games-cn:
type: http
behavior: domain
url: "https://fastly.jsdelivr.net/gh/DustinWin/clash-ruleset@release/games-cn.yaml"
path: ./ruleset/games-cn.yaml
interval: 86400
networktest:
type: http
behavior: classical
url: "https://fastly.jsdelivr.net/gh/DustinWin/clash-ruleset@release/networktest.yaml"
path: ./ruleset/networktest.yaml
interval: 86400
applications:
type: http
behavior: classical
url: "https://fastly.jsdelivr.net/gh/DustinWin/clash-ruleset@release/applications.yaml"
path: ./ruleset/applications.yaml
interval: 86400
proxy:
type: http
behavior: domain
url: "https://fastly.jsdelivr.net/gh/DustinWin/clash-ruleset@release/proxy.yaml"
path: ./ruleset/proxy.yaml
interval: 86400
cn:
type: http
behavior: domain
url: "https://fastly.jsdelivr.net/gh/DustinWin/clash-ruleset@release/cn.yaml"
path: ./ruleset/cn.yaml
interval: 86400
telegramip:
type: http
behavior: ipcidr
url: "https://fastly.jsdelivr.net/gh/DustinWin/clash-ruleset@release/telegramip.yaml"
path: ./ruleset/telegramip.yaml
interval: 86400
privateip:
type: http
behavior: ipcidr
url: "https://fastly.jsdelivr.net/gh/DustinWin/clash-ruleset@release/privateip.yaml"
path: ./ruleset/privateip.yaml
interval: 86400
cnip:
type: http
behavior: ipcidr
url: "https://fastly.jsdelivr.net/gh/DustinWin/clash-ruleset@release/cnip.yaml"
path: ./ruleset/cnip.yaml
interval: 86400
rules:
RULE-SET,ads,⛔️ 广告域名
RULE-SET,private,🏠 私有网络
RULE-SET,microsoft-cn,Ⓜ️ Microsoft 中国
RULE-SET,apple-cn,🍎 Apple 中国
RULE-SET,google-cn,🗽 Google 中国
RULE-SET,games-cn,🎮 国区游戏
RULE-SET,networktest,📈 网络测试
RULE-SET,applications,🖥️ 直连软件
RULE-SET,proxy,🪜 代理域名
RULE-SET,cn,⚡ 直连域名
RULE-SET,telegramip,✈️ Telegram
RULE-SET,privateip,🏠 私有网络,no-resolve
RULE-SET,cnip,🇨🇳 国内 IP
MATCH,🐟 漏网之鱼
所以mihono的配置文件config.yaml到底要怎么写才能起飞啊,别的软件只要点两三下就可以,这个我学了好几天,以为只要配置文件导入一下订阅链接就可以了,结果越整越迷糊……想问以下的是,你的mihomo.service/是怎样启动的呢?我甚至连个服务都无法在在ubuntu中启动成功,哭死...
所以mihono的文件config.yaml到底要怎么写才能导入啊,其他软件只要点两三下就可以,这个我学了好几天,以为只要配置文件导入一下订阅链接就了,结果越整越迷惑……想问以下是什么,你的mihomo.service/是怎样启动的呢?我什至连个服务都无法在ubuntu中启动成功,哭死了...
这个配置文件应该没什么问题,是软件对WG支持不太行。 这是我从GitHub上抄了自己改的 主要是proxies:中的代理换成你自己的,然后把代理中的name值填到proxy-groups:就行,Ubuntu上应该没问题。 还是不行把TUN整个删了,只使用socks5。
proxies:
- {"name":"hkhy2_1","type":"hysteria2","server":"域名.eu.org","port":"51725","up":"100 Mbps","down":"500 Mbps","password":"XXXXXXXXX"}
- {"name":"hkhy2_2","type":"hysteria2","server":"域名.eu.org","port":"51562","up":"100 Mbps","down":"500 Mbps","password":"XXXXXXXXX"}
- {"name":"hktuic1","server":"域名eu.org","port":"32061","type":"tuic","uuid":"XXXXXXXXXXXXXXaa44-XXXXXXXXXXXX","password":"XXXXXXXXXXX","heartbeat-interval":"10000","alpn":["h3"],"udp-relay-mode":"quic","congestion-controller":"bbr","sni":"域名eu.org"}
- {"name":"hktuic2","server":"域名.eu.org","port":"32023","type":"tuic","uuid":"XXXXXXXXXXXXXXXx4-aa44-XXXXXXXXX","password":"XXXXXXXXXX","heartbeat-interval":"10000","alpn":["h3"],"udp-relay-mode":"quic","congestion-controller":"bbr","sni":"域名eu.org"}
- {"name":"ushy2_1","type":"hysteria2","server":"域名.eu.org","port":"55888","up":"100 Mbps","down":"500 Mbps","password":"XXXXXXXXXXX"}
- {"name":"ushy2_2","type":"hysteria2","server":"域名.eu.org","port":"55961","up":"100 Mbps","down":"500 Mbps","password":"XXXXXXXXXXXX"}
- {"name":"ustuic1","server":"cc.z3505.eu.org","port":"32037","type":"tuic","uuid":"878xxxxxxxxxxxxx579cxxxxx","password":"XXXXXXXXXX","heartbeat-interval":"10000","alpn":["h3"],"udp-relay-mode":"quic","congestion-controller":"bbr","sni":"域名eu.org"}
- {"name":"ustuic2","server":"域名eu.org","port":"32062","type":"tuic","uuid":"8XXXXXX-xxxx-4xxxxxx579cxxxx3","password":"XXXXXXXXXX","heartbeat-interval":"10000","alpn":["h3"],"udp-relay-mode":"quic","congestion-controller":"bbr","sni":"域名.eu.org"}
mode: rule
ipv6: true
log-level: info
allow-lan: true
mixed-port: 7890
unified-delay: false
tcp-concurrent: true
external-controller-tls: 127.0.0.1:9090
find-process-mode: strict
global-client-fingerprint: chrome
profile: {store-selected: true, store-fake-ip: true}
tun:
enable: true
stack: system
dns-hijack: ['any:53']
auto-route: true
auto-detect-interface: true
strict-route: true
dns:
enable: true
prefer-h3: true
ipv6: true
listen: 0.0.0.0:1053
use-hosts: true
fake-ip-range: 198.18.0.1/16
enhanced-mode: fake-ip
fake-ip-filter:
- '*'
- '*.lan'
- '*.localdomain'
- '*.example'
- '*.invalid'
- '*.localhost'
- '*.test'
- '*.local'
- '*.home.arpa'
- 'time.*.com'
- 'time.*.gov'
- 'time.*.edu.cn'
- 'time.*.apple.com'
- 'time-ios.apple.com'
- 'time1.*.com'
- 'time2.*.com'
- 'time3.*.com'
- 'time4.*.com'
- 'time5.*.com'
- 'time6.*.com'
- 'time7.*.com'
- 'ntp.*.com'
- 'ntp1.*.com'
- 'ntp2.*.com'
- 'ntp3.*.com'
- 'ntp4.*.com'
- 'ntp5.*.com'
- 'ntp6.*.com'
- 'ntp7.*.com'
- '*.time.edu.cn'
- '*.ntp.org.cn'
- '+.pool.ntp.org'
- 'time1.cloud.tencent.com'
- 'music.163.com'
- '*.music.163.com'
- '*.126.net'
- 'musicapi.taihe.com'
- 'music.taihe.com'
- 'songsearch.kugou.com'
- 'trackercdn.kugou.com'
- '*.kuwo.cn'
- 'api-jooxtt.sanook.com'
- 'api.joox.com'
- 'joox.com'
- 'y.qq.com'
- '*.y.qq.com'
- 'streamoc.music.tc.qq.com'
- 'mobileoc.music.tc.qq.com'
- 'isure.stream.qqmusic.qq.com'
- 'dl.stream.qqmusic.qq.com'
- 'aqqmusic.tc.qq.com'
- 'amobile.music.tc.qq.com'
- '*.xiami.com'
- '*.music.migu.cn'
- 'music.migu.cn'
- '+.msftconnecttest.com'
- '+.msftncsi.com'
- 'localhost.ptlogin2.qq.com'
- 'localhost.sec.qq.com'
- '+.qq.com'
- '+.tencent.com'
- '+.srv.nintendo.net'
- '*.n.n.srv.nintendo.net'
- '+.stun.playstation.net'
- 'xbox.*.*.microsoft.com'
- '*.*.xboxlive.com'
- 'xbox.*.microsoft.com'
- 'xnotify.xboxlive.com'
- '+.battlenet.com.cn'
- '+.wotgame.cn'
- '+.wggames.cn'
- '+.wowsgame.cn'
- '+.wargaming.net'
- 'proxy.golang.org'
- 'stun.*.*'
- 'stun.*.*.*'
- '+.stun.*.*'
- '+.stun.*.*.*'
- '+.stun.*.*.*.*'
- '+.stun.*.*.*.*.*'
- 'heartbeat.belkin.com'
- '*.linksys.com'
- '*.linksyssmartwifi.com'
- '*.router.asus.com'
- 'mesu.apple.com'
- 'swscan.apple.com'
- 'swquery.apple.com'
- 'swdownload.apple.com'
- 'swcdn.apple.com'
- 'swdist.apple.com'
- 'lens.l.google.com'
- 'stun.l.google.com'
- 'na.b.g-tun.com'
- '+.nflxvideo.net'
- '*.square-enix.com'
- '*.finalfantasyxiv.com'
- '*.ffxiv.com'
- '*.ff14.sdo.com'
- 'ff.dorado.sdo.com'
- '*.mcdn.bilivideo.cn'
- '+.media.dssott.com'
- 'shark007.net'
- 'Mijia Cloud'
- '+.cmbchina.com'
- '+.cmbimg.com'
- 'local.adguard.org'
- 'static.adtidy.org'
- '+.sandai.net'
- '+.n0808.com'
- '+.3gppnetwork.org'
- 'adguardteam.github.io'
- 'anti-ad.net'
default-nameserver:
- https://223.5.5.5/dns-query
- https://1.12.12.12/dns-query
nameserver:
- https://dns.alidns.com/dns-query
- https://doh.pub/dns-query
proxy-groups:
- name: 🚀 节点选择
type: select
proxies:
- ♻️ 自动选择
- DIRECT
- hkhy2_1
- hkhy2_2
- hktuic1
- hktuic2
- ushy2_1
- ushy2_2
- ustuic1
- ustuic2
- name: ♻️ 自动选择
type: url-test
url: http://www.gstatic.com/generate_204
interval: 10
tolerance: 50
proxies:
- hkhy2_1
- hkhy2_2
- hktuic1
- hktuic2
- ushy2_1
- ushy2_2
- ustuic1
- ustuic2
# 若机场的 UDP 质量不是很好,导致某游戏无法登录或进入房间,可以添加 `disable-udp: true` 配置项解决
- {name: 🐟 漏网之鱼, type: select, proxies: [🚀 节点选择, 🎯 全球直连], disable-udp: true}
- {name: 🔗 直连域名, type: select, proxies: [🎯 全球直连, 🚀 节点选择]}
- {name: 🪜 代理域名, type: select, proxies: [🚀 节点选择, 🎯 全球直连], disable-udp: true}
- {name: 🎮 游戏平台, type: select, proxies: [🎯 全球直连, 🚀 节点选择]}
- {name: Ⓜ️ 微软服务, type: select, proxies: [🎯 全球直连, 🚀 节点选择]}
- {name: 📢 谷歌服务, type: select, proxies: [🎯 全球直连, 🚀 节点选择]}
- {name: 🍎 苹果服务, type: select, proxies: [🎯 全球直连, 🚀 节点选择]}
- {name: 🇨🇳 国内 IP, type: select, proxies: [🎯 全球直连, 🚀 节点选择]}
- {name: 📲 电报消息, type: select, proxies: [🚀 节点选择]}
- {name: 🖥️ 直连软件, type: select, proxies: [🎯 全球直连]}
- {name: 🔒 私有网络, type: select, proxies: [🎯 全球直连]}
- {name: 🛑 广告拦截, type: select, proxies: [REJECT]}
- {name: 🎯 全球直连, type: select, proxies: [DIRECT]}
rule-providers:
ads:
type: http
behavior: domain
url: "https://fastly.jsdelivr.net/gh/DustinWin/clash-ruleset@release/ads.yaml"
path: ./ruleset/ads.yaml
interval: 86400
private:
type: http
behavior: domain
url: "https://fastly.jsdelivr.net/gh/DustinWin/clash-ruleset@release/private.yaml"
path: ./ruleset/private.yaml
interval: 86400
microsoft-cn:
type: http
behavior: domain
url: "https://fastly.jsdelivr.net/gh/DustinWin/clash-ruleset@release/microsoft-cn.yaml"
path: ./ruleset/microsoft-cn.yaml
interval: 86400
apple-cn:
type: http
behavior: domain
url: "https://fastly.jsdelivr.net/gh/DustinWin/clash-ruleset@release/apple-cn.yaml"
path: ./ruleset/apple-cn.yaml
interval: 86400
google-cn:
type: http
behavior: domain
url: "https://fastly.jsdelivr.net/gh/DustinWin/clash-ruleset@release/google-cn.yaml"
path: ./ruleset/google-cn.yaml
interval: 86400
games-cn:
type: http
behavior: domain
url: "https://fastly.jsdelivr.net/gh/DustinWin/clash-ruleset@release/games-cn.yaml"
path: ./ruleset/games-cn.yaml
interval: 86400
networktest:
type: http
behavior: classical
url: "https://fastly.jsdelivr.net/gh/DustinWin/clash-ruleset@release/networktest.yaml"
path: ./ruleset/networktest.yaml
interval: 86400
applications:
type: http
behavior: classical
url: "https://fastly.jsdelivr.net/gh/DustinWin/clash-ruleset@release/applications.yaml"
path: ./ruleset/applications.yaml
interval: 86400
proxy:
type: http
behavior: domain
url: "https://fastly.jsdelivr.net/gh/DustinWin/clash-ruleset@release/proxy.yaml"
path: ./ruleset/proxy.yaml
interval: 86400
cn:
type: http
behavior: domain
url: "https://fastly.jsdelivr.net/gh/DustinWin/clash-ruleset@release/cn.yaml"
path: ./ruleset/cn.yaml
interval: 86400
telegramip:
type: http
behavior: ipcidr
url: "https://fastly.jsdelivr.net/gh/DustinWin/clash-ruleset@release/telegramip.yaml"
path: ./ruleset/telegramip.yaml
interval: 86400
privateip:
type: http
behavior: ipcidr
url: "https://fastly.jsdelivr.net/gh/DustinWin/clash-ruleset@release/privateip.yaml"
path: ./ruleset/privateip.yaml
interval: 86400
cnip:
type: http
behavior: ipcidr
url: "https://fastly.jsdelivr.net/gh/DustinWin/clash-ruleset@release/cnip.yaml"
path: ./ruleset/cnip.yaml
interval: 86400
rules:
- RULE-SET,ads,🛑 广告拦截
- RULE-SET,private,🔒 私有网络
- RULE-SET,microsoft-cn,Ⓜ️ 微软服务
- RULE-SET,apple-cn,🍎 苹果服务
- RULE-SET,google-cn,📢 谷歌服务
- RULE-SET,games-cn,🎮 游戏平台
# - RULE-SET,networktest,📈 网络测试
- RULE-SET,networktest,♻️ 自动选择
- RULE-SET,applications,🖥️ 直连软件
- RULE-SET,proxy,🪜 代理域名
- RULE-SET,cn,🔗 直连域名
- RULE-SET,telegramip,📲 电报消息
- RULE-SET,privateip,🔒 私有网络,no-resolve
- RULE-SET,cnip,🇨🇳 国内 IP
- MATCH,🐟 漏网之鱼
所以mihono的文件config.yaml到底要怎么写才能导入啊,其他软件只要点两三下就可以,这个我学了好几天,以为只要配置文件导入一下订阅链接就了,结果越整越迷惑……想问以下是什么,你的mihomo.service/是怎样启动的呢?我什至连个服务都无法在ubuntu中启动成功,哭死了...
这个配置文件应该没什么问题,是软件对WG支持不太行。 这是我从GitHub上抄了自己改的 主要是proxies:中的代理换成你自己的,然后把代理中的name值填到proxy-groups:就行,Ubuntu上应该没问题。 还是不行把TUN整个删了,只使用socks5。
proxies: - {"name":"hkhy2_1","type":"hysteria2","server":"域名.eu.org","port":"51725","up":"100 Mbps","down":"500 Mbps","password":"XXXXXXXXX"} - {"name":"hkhy2_2","type":"hysteria2","server":"域名.eu.org","port":"51562","up":"100 Mbps","down":"500 Mbps","password":"XXXXXXXXX"} - {"name":"hktuic1","server":"域名eu.org","port":"32061","type":"tuic","uuid":"XXXXXXXXXXXXXXaa44-XXXXXXXXXXXX","password":"XXXXXXXXXXX","heartbeat-interval":"10000","alpn":["h3"],"udp-relay-mode":"quic","congestion-controller":"bbr","sni":"域名eu.org"} - {"name":"hktuic2","server":"域名.eu.org","port":"32023","type":"tuic","uuid":"XXXXXXXXXXXXXXXx4-aa44-XXXXXXXXX","password":"XXXXXXXXXX","heartbeat-interval":"10000","alpn":["h3"],"udp-relay-mode":"quic","congestion-controller":"bbr","sni":"域名eu.org"} - {"name":"ushy2_1","type":"hysteria2","server":"域名.eu.org","port":"55888","up":"100 Mbps","down":"500 Mbps","password":"XXXXXXXXXXX"} - {"name":"ushy2_2","type":"hysteria2","server":"域名.eu.org","port":"55961","up":"100 Mbps","down":"500 Mbps","password":"XXXXXXXXXXXX"} - {"name":"ustuic1","server":"cc.z3505.eu.org","port":"32037","type":"tuic","uuid":"878xxxxxxxxxxxxx579cxxxxx","password":"XXXXXXXXXX","heartbeat-interval":"10000","alpn":["h3"],"udp-relay-mode":"quic","congestion-controller":"bbr","sni":"域名eu.org"} - {"name":"ustuic2","server":"域名eu.org","port":"32062","type":"tuic","uuid":"8XXXXXX-xxxx-4xxxxxx579cxxxx3","password":"XXXXXXXXXX","heartbeat-interval":"10000","alpn":["h3"],"udp-relay-mode":"quic","congestion-controller":"bbr","sni":"域名.eu.org"} mode: rule ipv6: true log-level: info allow-lan: true mixed-port: 7890 unified-delay: false tcp-concurrent: true external-controller-tls: 127.0.0.1:9090 find-process-mode: strict global-client-fingerprint: chrome profile: {store-selected: true, store-fake-ip: true} tun: enable: true stack: system dns-hijack: ['any:53'] auto-route: true auto-detect-interface: true strict-route: true dns: enable: true prefer-h3: true ipv6: true listen: 0.0.0.0:1053 use-hosts: true fake-ip-range: 198.18.0.1/16 enhanced-mode: fake-ip fake-ip-filter: - '*' - '*.lan' - '*.localdomain' - '*.example' - '*.invalid' - '*.localhost' - '*.test' - '*.local' - '*.home.arpa' - 'time.*.com' - 'time.*.gov' - 'time.*.edu.cn' - 'time.*.apple.com' - 'time-ios.apple.com' - 'time1.*.com' - 'time2.*.com' - 'time3.*.com' - 'time4.*.com' - 'time5.*.com' - 'time6.*.com' - 'time7.*.com' - 'ntp.*.com' - 'ntp1.*.com' - 'ntp2.*.com' - 'ntp3.*.com' - 'ntp4.*.com' - 'ntp5.*.com' - 'ntp6.*.com' - 'ntp7.*.com' - '*.time.edu.cn' - '*.ntp.org.cn' - '+.pool.ntp.org' - 'time1.cloud.tencent.com' - 'music.163.com' - '*.music.163.com' - '*.126.net' - 'musicapi.taihe.com' - 'music.taihe.com' - 'songsearch.kugou.com' - 'trackercdn.kugou.com' - '*.kuwo.cn' - 'api-jooxtt.sanook.com' - 'api.joox.com' - 'joox.com' - 'y.qq.com' - '*.y.qq.com' - 'streamoc.music.tc.qq.com' - 'mobileoc.music.tc.qq.com' - 'isure.stream.qqmusic.qq.com' - 'dl.stream.qqmusic.qq.com' - 'aqqmusic.tc.qq.com' - 'amobile.music.tc.qq.com' - '*.xiami.com' - '*.music.migu.cn' - 'music.migu.cn' - '+.msftconnecttest.com' - '+.msftncsi.com' - 'localhost.ptlogin2.qq.com' - 'localhost.sec.qq.com' - '+.qq.com' - '+.tencent.com' - '+.srv.nintendo.net' - '*.n.n.srv.nintendo.net' - '+.stun.playstation.net' - 'xbox.*.*.microsoft.com' - '*.*.xboxlive.com' - 'xbox.*.microsoft.com' - 'xnotify.xboxlive.com' - '+.battlenet.com.cn' - '+.wotgame.cn' - '+.wggames.cn' - '+.wowsgame.cn' - '+.wargaming.net' - 'proxy.golang.org' - 'stun.*.*' - 'stun.*.*.*' - '+.stun.*.*' - '+.stun.*.*.*' - '+.stun.*.*.*.*' - '+.stun.*.*.*.*.*' - 'heartbeat.belkin.com' - '*.linksys.com' - '*.linksyssmartwifi.com' - '*.router.asus.com' - 'mesu.apple.com' - 'swscan.apple.com' - 'swquery.apple.com' - 'swdownload.apple.com' - 'swcdn.apple.com' - 'swdist.apple.com' - 'lens.l.google.com' - 'stun.l.google.com' - 'na.b.g-tun.com' - '+.nflxvideo.net' - '*.square-enix.com' - '*.finalfantasyxiv.com' - '*.ffxiv.com' - '*.ff14.sdo.com' - 'ff.dorado.sdo.com' - '*.mcdn.bilivideo.cn' - '+.media.dssott.com' - 'shark007.net' - 'Mijia Cloud' - '+.cmbchina.com' - '+.cmbimg.com' - 'local.adguard.org' - 'static.adtidy.org' - '+.sandai.net' - '+.n0808.com' - '+.3gppnetwork.org' - 'adguardteam.github.io' - 'anti-ad.net' default-nameserver: - https://223.5.5.5/dns-query - https://1.12.12.12/dns-query nameserver: - https://dns.alidns.com/dns-query - https://doh.pub/dns-query proxy-groups: - name: 🚀 节点选择 type: select proxies: - ♻️ 自动选择 - DIRECT - hkhy2_1 - hkhy2_2 - hktuic1 - hktuic2 - ushy2_1 - ushy2_2 - ustuic1 - ustuic2 - name: ♻️ 自动选择 type: url-test url: http://www.gstatic.com/generate_204 interval: 10 tolerance: 50 proxies: - hkhy2_1 - hkhy2_2 - hktuic1 - hktuic2 - ushy2_1 - ushy2_2 - ustuic1 - ustuic2 # 若机场的 UDP 质量不是很好,导致某游戏无法登录或进入房间,可以添加 `disable-udp: true` 配置项解决 - {name: 🐟 漏网之鱼, type: select, proxies: [🚀 节点选择, 🎯 全球直连], disable-udp: true} - {name: 🔗 直连域名, type: select, proxies: [🎯 全球直连, 🚀 节点选择]} - {name: 🪜 代理域名, type: select, proxies: [🚀 节点选择, 🎯 全球直连], disable-udp: true} - {name: 🎮 游戏平台, type: select, proxies: [🎯 全球直连, 🚀 节点选择]} - {name: Ⓜ️ 微软服务, type: select, proxies: [🎯 全球直连, 🚀 节点选择]} - {name: 📢 谷歌服务, type: select, proxies: [🎯 全球直连, 🚀 节点选择]} - {name: 🍎 苹果服务, type: select, proxies: [🎯 全球直连, 🚀 节点选择]} - {name: 🇨🇳 国内 IP, type: select, proxies: [🎯 全球直连, 🚀 节点选择]} - {name: 📲 电报消息, type: select, proxies: [🚀 节点选择]} - {name: 🖥️ 直连软件, type: select, proxies: [🎯 全球直连]} - {name: 🔒 私有网络, type: select, proxies: [🎯 全球直连]} - {name: 🛑 广告拦截, type: select, proxies: [REJECT]} - {name: 🎯 全球直连, type: select, proxies: [DIRECT]} rule-providers: ads: type: http behavior: domain url: "https://fastly.jsdelivr.net/gh/DustinWin/clash-ruleset@release/ads.yaml" path: ./ruleset/ads.yaml interval: 86400 private: type: http behavior: domain url: "https://fastly.jsdelivr.net/gh/DustinWin/clash-ruleset@release/private.yaml" path: ./ruleset/private.yaml interval: 86400 microsoft-cn: type: http behavior: domain url: "https://fastly.jsdelivr.net/gh/DustinWin/clash-ruleset@release/microsoft-cn.yaml" path: ./ruleset/microsoft-cn.yaml interval: 86400 apple-cn: type: http behavior: domain url: "https://fastly.jsdelivr.net/gh/DustinWin/clash-ruleset@release/apple-cn.yaml" path: ./ruleset/apple-cn.yaml interval: 86400 google-cn: type: http behavior: domain url: "https://fastly.jsdelivr.net/gh/DustinWin/clash-ruleset@release/google-cn.yaml" path: ./ruleset/google-cn.yaml interval: 86400 games-cn: type: http behavior: domain url: "https://fastly.jsdelivr.net/gh/DustinWin/clash-ruleset@release/games-cn.yaml" path: ./ruleset/games-cn.yaml interval: 86400 networktest: type: http behavior: classical url: "https://fastly.jsdelivr.net/gh/DustinWin/clash-ruleset@release/networktest.yaml" path: ./ruleset/networktest.yaml interval: 86400 applications: type: http behavior: classical url: "https://fastly.jsdelivr.net/gh/DustinWin/clash-ruleset@release/applications.yaml" path: ./ruleset/applications.yaml interval: 86400 proxy: type: http behavior: domain url: "https://fastly.jsdelivr.net/gh/DustinWin/clash-ruleset@release/proxy.yaml" path: ./ruleset/proxy.yaml interval: 86400 cn: type: http behavior: domain url: "https://fastly.jsdelivr.net/gh/DustinWin/clash-ruleset@release/cn.yaml" path: ./ruleset/cn.yaml interval: 86400 telegramip: type: http behavior: ipcidr url: "https://fastly.jsdelivr.net/gh/DustinWin/clash-ruleset@release/telegramip.yaml" path: ./ruleset/telegramip.yaml interval: 86400 privateip: type: http behavior: ipcidr url: "https://fastly.jsdelivr.net/gh/DustinWin/clash-ruleset@release/privateip.yaml" path: ./ruleset/privateip.yaml interval: 86400 cnip: type: http behavior: ipcidr url: "https://fastly.jsdelivr.net/gh/DustinWin/clash-ruleset@release/cnip.yaml" path: ./ruleset/cnip.yaml interval: 86400 rules: - RULE-SET,ads,🛑 广告拦截 - RULE-SET,private,🔒 私有网络 - RULE-SET,microsoft-cn,Ⓜ️ 微软服务 - RULE-SET,apple-cn,🍎 苹果服务 - RULE-SET,google-cn,📢 谷歌服务 - RULE-SET,games-cn,🎮 游戏平台 # - RULE-SET,networktest,📈 网络测试 - RULE-SET,networktest,♻️ 自动选择 - RULE-SET,applications,🖥️ 直连软件 - RULE-SET,proxy,🪜 代理域名 - RULE-SET,cn,🔗 直连域名 - RULE-SET,telegramip,📲 电报消息 - RULE-SET,privateip,🔒 私有网络,no-resolve - RULE-SET,cnip,🇨🇳 国内 IP - MATCH,🐟 漏网之鱼
你说的很清楚,但是我看不懂。不好意思歪你的楼,但还是恳请你解答一下:我一切都按照作者说的做的,但不知为何,mihomo.service的服务是loaded但failed,就更别提其它的了,重启也是如此,我在想是不是config.yaml配置文件配置的不对导致了这个现象,不知道该怎么解决。我打算用你的方法重新弄一遍配置文件,但是不明白你说的把代理换成自己的啥意思?我只有订阅链接,是把订阅链接复制到proxy里吗?proxy group里的name对应代理中的什么?请原谅我是个小白…
所以mihono的文件config.yaml到底要怎么写才能导入啊,其他软件只要点两三下就可以,这个我学了好几天,以为只要配置文件导入一下订阅链接就了,结果越整越迷惑……想问以下是什么,你的mihomo.service/是怎样启动的呢?我什至连个服务都无法在ubuntu中启动成功,哭死了...
这个配置文件应该没什么问题,是软件对WG支持不太行。 这是我从GitHub上抄了自己改的 主要是proxies:中的代理换成你自己的,然后把代理中的name值填到proxy-groups:就行,Ubuntu上应该没问题。 还是不行把TUN整个删了,只使用socks5。
proxies: - {"name":"hkhy2_1","type":"hysteria2","server":"域名.eu.org","port":"51725","up":"100 Mbps","down":"500 Mbps","password":"XXXXXXXXX"} - {"name":"hkhy2_2","type":"hysteria2","server":"域名.eu.org","port":"51562","up":"100 Mbps","down":"500 Mbps","password":"XXXXXXXXX"} - {"name":"hktuic1","server":"域名eu.org","port":"32061","type":"tuic","uuid":"XXXXXXXXXXXXXXaa44-XXXXXXXXXXXX","password":"XXXXXXXXXXX","heartbeat-interval":"10000","alpn":["h3"],"udp-relay-mode":"quic","congestion-controller":"bbr","sni":"域名eu.org"} - {"name":"hktuic2","server":"域名.eu.org","port":"32023","type":"tuic","uuid":"XXXXXXXXXXXXXXXx4-aa44-XXXXXXXXX","password":"XXXXXXXXXX","heartbeat-interval":"10000","alpn":["h3"],"udp-relay-mode":"quic","congestion-controller":"bbr","sni":"域名eu.org"} - {"name":"ushy2_1","type":"hysteria2","server":"域名.eu.org","port":"55888","up":"100 Mbps","down":"500 Mbps","password":"XXXXXXXXXXX"} - {"name":"ushy2_2","type":"hysteria2","server":"域名.eu.org","port":"55961","up":"100 Mbps","down":"500 Mbps","password":"XXXXXXXXXXXX"} - {"name":"ustuic1","server":"cc.z3505.eu.org","port":"32037","type":"tuic","uuid":"878xxxxxxxxxxxxx579cxxxxx","password":"XXXXXXXXXX","heartbeat-interval":"10000","alpn":["h3"],"udp-relay-mode":"quic","congestion-controller":"bbr","sni":"域名eu.org"} - {"name":"ustuic2","server":"域名eu.org","port":"32062","type":"tuic","uuid":"8XXXXXX-xxxx-4xxxxxx579cxxxx3","password":"XXXXXXXXXX","heartbeat-interval":"10000","alpn":["h3"],"udp-relay-mode":"quic","congestion-controller":"bbr","sni":"域名.eu.org"} mode: rule ipv6: true log-level: info allow-lan: true mixed-port: 7890 unified-delay: false tcp-concurrent: true external-controller-tls: 127.0.0.1:9090 find-process-mode: strict global-client-fingerprint: chrome profile: {store-selected: true, store-fake-ip: true} tun: enable: true stack: system dns-hijack: ['any:53'] auto-route: true auto-detect-interface: true strict-route: true dns: enable: true prefer-h3: true ipv6: true listen: 0.0.0.0:1053 use-hosts: true fake-ip-range: 198.18.0.1/16 enhanced-mode: fake-ip fake-ip-filter: - '*' - '*.lan' - '*.localdomain' - '*.example' - '*.invalid' - '*.localhost' - '*.test' - '*.local' - '*.home.arpa' - 'time.*.com' - 'time.*.gov' - 'time.*.edu.cn' - 'time.*.apple.com' - 'time-ios.apple.com' - 'time1.*.com' - 'time2.*.com' - 'time3.*.com' - 'time4.*.com' - 'time5.*.com' - 'time6.*.com' - 'time7.*.com' - 'ntp.*.com' - 'ntp1.*.com' - 'ntp2.*.com' - 'ntp3.*.com' - 'ntp4.*.com' - 'ntp5.*.com' - 'ntp6.*.com' - 'ntp7.*.com' - '*.time.edu.cn' - '*.ntp.org.cn' - '+.pool.ntp.org' - 'time1.cloud.tencent.com' - 'music.163.com' - '*.music.163.com' - '*.126.net' - 'musicapi.taihe.com' - 'music.taihe.com' - 'songsearch.kugou.com' - 'trackercdn.kugou.com' - '*.kuwo.cn' - 'api-jooxtt.sanook.com' - 'api.joox.com' - 'joox.com' - 'y.qq.com' - '*.y.qq.com' - 'streamoc.music.tc.qq.com' - 'mobileoc.music.tc.qq.com' - 'isure.stream.qqmusic.qq.com' - 'dl.stream.qqmusic.qq.com' - 'aqqmusic.tc.qq.com' - 'amobile.music.tc.qq.com' - '*.xiami.com' - '*.music.migu.cn' - 'music.migu.cn' - '+.msftconnecttest.com' - '+.msftncsi.com' - 'localhost.ptlogin2.qq.com' - 'localhost.sec.qq.com' - '+.qq.com' - '+.tencent.com' - '+.srv.nintendo.net' - '*.n.n.srv.nintendo.net' - '+.stun.playstation.net' - 'xbox.*.*.microsoft.com' - '*.*.xboxlive.com' - 'xbox.*.microsoft.com' - 'xnotify.xboxlive.com' - '+.battlenet.com.cn' - '+.wotgame.cn' - '+.wggames.cn' - '+.wowsgame.cn' - '+.wargaming.net' - 'proxy.golang.org' - 'stun.*.*' - 'stun.*.*.*' - '+.stun.*.*' - '+.stun.*.*.*' - '+.stun.*.*.*.*' - '+.stun.*.*.*.*.*' - 'heartbeat.belkin.com' - '*.linksys.com' - '*.linksyssmartwifi.com' - '*.router.asus.com' - 'mesu.apple.com' - 'swscan.apple.com' - 'swquery.apple.com' - 'swdownload.apple.com' - 'swcdn.apple.com' - 'swdist.apple.com' - 'lens.l.google.com' - 'stun.l.google.com' - 'na.b.g-tun.com' - '+.nflxvideo.net' - '*.square-enix.com' - '*.finalfantasyxiv.com' - '*.ffxiv.com' - '*.ff14.sdo.com' - 'ff.dorado.sdo.com' - '*.mcdn.bilivideo.cn' - '+.media.dssott.com' - 'shark007.net' - 'Mijia Cloud' - '+.cmbchina.com' - '+.cmbimg.com' - 'local.adguard.org' - 'static.adtidy.org' - '+.sandai.net' - '+.n0808.com' - '+.3gppnetwork.org' - 'adguardteam.github.io' - 'anti-ad.net' default-nameserver: - https://223.5.5.5/dns-query - https://1.12.12.12/dns-query nameserver: - https://dns.alidns.com/dns-query - https://doh.pub/dns-query proxy-groups: - name: 🚀 节点选择 type: select proxies: - ♻️ 自动选择 - DIRECT - hkhy2_1 - hkhy2_2 - hktuic1 - hktuic2 - ushy2_1 - ushy2_2 - ustuic1 - ustuic2 - name: ♻️ 自动选择 type: url-test url: http://www.gstatic.com/generate_204 interval: 10 tolerance: 50 proxies: - hkhy2_1 - hkhy2_2 - hktuic1 - hktuic2 - ushy2_1 - ushy2_2 - ustuic1 - ustuic2 # 若机场的 UDP 质量不是很好,导致某游戏无法登录或进入房间,可以添加 `disable-udp: true` 配置项解决 - {name: 🐟 漏网之鱼, type: select, proxies: [🚀 节点选择, 🎯 全球直连], disable-udp: true} - {name: 🔗 直连域名, type: select, proxies: [🎯 全球直连, 🚀 节点选择]} - {name: 🪜 代理域名, type: select, proxies: [🚀 节点选择, 🎯 全球直连], disable-udp: true} - {name: 🎮 游戏平台, type: select, proxies: [🎯 全球直连, 🚀 节点选择]} - {name: Ⓜ️ 微软服务, type: select, proxies: [🎯 全球直连, 🚀 节点选择]} - {name: 📢 谷歌服务, type: select, proxies: [🎯 全球直连, 🚀 节点选择]} - {name: 🍎 苹果服务, type: select, proxies: [🎯 全球直连, 🚀 节点选择]} - {name: 🇨🇳 国内 IP, type: select, proxies: [🎯 全球直连, 🚀 节点选择]} - {name: 📲 电报消息, type: select, proxies: [🚀 节点选择]} - {name: 🖥️ 直连软件, type: select, proxies: [🎯 全球直连]} - {name: 🔒 私有网络, type: select, proxies: [🎯 全球直连]} - {name: 🛑 广告拦截, type: select, proxies: [REJECT]} - {name: 🎯 全球直连, type: select, proxies: [DIRECT]} rule-providers: ads: type: http behavior: domain url: "https://fastly.jsdelivr.net/gh/DustinWin/clash-ruleset@release/ads.yaml" path: ./ruleset/ads.yaml interval: 86400 private: type: http behavior: domain url: "https://fastly.jsdelivr.net/gh/DustinWin/clash-ruleset@release/private.yaml" path: ./ruleset/private.yaml interval: 86400 microsoft-cn: type: http behavior: domain url: "https://fastly.jsdelivr.net/gh/DustinWin/clash-ruleset@release/microsoft-cn.yaml" path: ./ruleset/microsoft-cn.yaml interval: 86400 apple-cn: type: http behavior: domain url: "https://fastly.jsdelivr.net/gh/DustinWin/clash-ruleset@release/apple-cn.yaml" path: ./ruleset/apple-cn.yaml interval: 86400 google-cn: type: http behavior: domain url: "https://fastly.jsdelivr.net/gh/DustinWin/clash-ruleset@release/google-cn.yaml" path: ./ruleset/google-cn.yaml interval: 86400 games-cn: type: http behavior: domain url: "https://fastly.jsdelivr.net/gh/DustinWin/clash-ruleset@release/games-cn.yaml" path: ./ruleset/games-cn.yaml interval: 86400 networktest: type: http behavior: classical url: "https://fastly.jsdelivr.net/gh/DustinWin/clash-ruleset@release/networktest.yaml" path: ./ruleset/networktest.yaml interval: 86400 applications: type: http behavior: classical url: "https://fastly.jsdelivr.net/gh/DustinWin/clash-ruleset@release/applications.yaml" path: ./ruleset/applications.yaml interval: 86400 proxy: type: http behavior: domain url: "https://fastly.jsdelivr.net/gh/DustinWin/clash-ruleset@release/proxy.yaml" path: ./ruleset/proxy.yaml interval: 86400 cn: type: http behavior: domain url: "https://fastly.jsdelivr.net/gh/DustinWin/clash-ruleset@release/cn.yaml" path: ./ruleset/cn.yaml interval: 86400 telegramip: type: http behavior: ipcidr url: "https://fastly.jsdelivr.net/gh/DustinWin/clash-ruleset@release/telegramip.yaml" path: ./ruleset/telegramip.yaml interval: 86400 privateip: type: http behavior: ipcidr url: "https://fastly.jsdelivr.net/gh/DustinWin/clash-ruleset@release/privateip.yaml" path: ./ruleset/privateip.yaml interval: 86400 cnip: type: http behavior: ipcidr url: "https://fastly.jsdelivr.net/gh/DustinWin/clash-ruleset@release/cnip.yaml" path: ./ruleset/cnip.yaml interval: 86400 rules: - RULE-SET,ads,🛑 广告拦截 - RULE-SET,private,🔒 私有网络 - RULE-SET,microsoft-cn,Ⓜ️ 微软服务 - RULE-SET,apple-cn,🍎 苹果服务 - RULE-SET,google-cn,📢 谷歌服务 - RULE-SET,games-cn,🎮 游戏平台 # - RULE-SET,networktest,📈 网络测试 - RULE-SET,networktest,♻️ 自动选择 - RULE-SET,applications,🖥️ 直连软件 - RULE-SET,proxy,🪜 代理域名 - RULE-SET,cn,🔗 直连域名 - RULE-SET,telegramip,📲 电报消息 - RULE-SET,privateip,🔒 私有网络,no-resolve - RULE-SET,cnip,🇨🇳 国内 IP - MATCH,🐟 漏网之鱼
你说的很清楚,但是我看不懂。不好意思歪你的楼,但还是恳请你解答一下:我一切都按照作者说的做的,但不知为何,mihomo.service的服务是loaded但failed,就更别提其它的了,重启也是如此,我在想是不是config.yaml配置文件配置的不对导致了这个现象,不知道该怎么解决。我打算用你的方法重新弄一遍配置文件,但是不明白你说的把代理换成自己的啥意思?我只有订阅链接,是把订阅链接复制到proxy里吗?proxy group里的name对应代理中的什么?请原谅我是个小白…
https://github.com/clash-verge-rev/clash-verge-rev 用这个
如果要直接用命令行的话,可以参考一下这个,我的clash配置文件都是这来的 https://github.com/DustinWin/clash_singbox-tutorials
所以mihono的配置文件config.yaml到底要怎么写才能起飞啊,别的软件只要点两三下就可以,这个我学了好几天,以为只要配置文件导入一下订阅链接就可以了,结果越整越迷糊……想问以下的是,你的mihomo.service/是怎样启动的呢?我甚至连个服务都无法在在ubuntu中启动成功,哭死...
使用tun
allow-lan: true
mixed-port: 7890
mode: Rule
external-controller: 0.0.0.0:9090
profile:
store-selected: true
store-fake-ip: true
geox-url:
geoip: "https://cdn.jsdelivr.net/gh/Loyalsoldier/v2ray-rules-dat@release/geoip.dat"
geosite: "https://cdn.jsdelivr.net/gh/Loyalsoldier/v2ray-rules-dat@release/geosite.dat"
mmdb: "https://cdn.jsdelivr.net/gh/Loyalsoldier/geoip@release/Country.mmdb"
dns:
enable: true
ipv6: true
enhanced-mode: fake-ip
nameserver:
- 192.168.10.1
# fallback:
# - tls://8.8.8.8
# - tls://1.1.1.1
tun:
enable: true
stack: system
auto-route: true
auto-detect-interface: true # 自动识别出口网卡
dns-hijack:
- any:53 # 需要劫持的 dns-hijack
proxy: &proxy
interval: 60
health-check:
enable: true
url: http://www.gstatic.com/generate_204
interval: 300
proxy-providers:
dog:
type: http
path: ./proxies/dog.yaml
url: "你的订阅连接"
<<: *proxy
proxy-groups:
- name: 选择节点
url: http://www.gstatic.com/generate_204
type: select
interval: 600
proxies:
- 🇭🇰 香港节点
- 🇯🇵 日本节点
- 🇺🇸 美国节点
- DIRECT
- name: 🐟 漏网之鱼
url: http://www.gstatic.com/generate_204
type: select
interval: 600
proxies:
- 选择节点
- 🇯🇵 日本节点
- 🇺🇸 美国节点
- DIRECT
- name: 🌐 谷歌服务
url: http://www.gstatic.com/generate_204
type: select
interval: 600
proxies:
- 选择节点
- 🇭🇰 香港节点
- 🇯🇵 日本节点
- 🇺🇸 美国节点
- DIRECT
- name: 📲 电报消息
url: http://www.gstatic.com/generate_204
type: select
interval: 3600
proxies:
- 选择节点
- 🇭🇰 香港节点
- 🇯🇵 日本节点
- 🇺🇸 美国节点
- name: 🎮 游戏平台
type: select
url: http://www.gstatic.com/generate_204
interval: 60
proxies:
- 选择节点
- 🇭🇰 香港节点
- DIRECT
- name: 📗 代码平台
type: select
url: http://www.gstatic.com/generate_204
interval: 60
proxies:
- 选择节点
- 🇭🇰 香港节点
- DIRECT
- name: 🤖 人工智能
type: select
filter: "日本|美国|英国"
url: http://www.gstatic.com/generate_204
interval: 600
use:
- dog
- name: 🚫 广告过滤
type: select
url: http://www.gstatic.com/generate_204
interval: 3600
proxies:
- REJECT
- DIRECT
- name: 🇭🇰 香港节点
type: load-balance
filter: "香港"
url: http://www.gstatic.com/generate_204
interval: 15
use: # 引入proxy-provider 使用 use 关键字
- dog
- name: 🇺🇸 美国节点
type: load-balance
filter: "美国"
url: http://www.gstatic.com/generate_204
interval: 15
use: # 引入proxy-provider 使用 use 关键字
- dog
- name: 🇯🇵 日本节点
type: load-balance
filter: "日本"
url: http://www.gstatic.com/generate_204
interval: 15
use: # 引入proxy-provider 使用 use 关键字
- dog
rule-providers:
gamedown:
type: http
behavior: classical
url: "https://cdn.jsdelivr.net/gh/ACL4SSR/ACL4SSR@master/Clash/Providers/Ruleset/GameDownload.yaml"
path: ./profiles/rules/gamedown.yaml
interval: 86400
reject:
type: http
behavior: domain
url: "https://cdn.jsdelivr.net/gh/Loyalsoldier/clash-rules@release/reject.txt"
path: ./profiles/rules/reject.yaml
interval: 86400
rules:
- RULE-SET,gamedown,DIRECT
- GEOSITE,openai,🤖 人工智能
- GEOSITE,category-ads,REJECT
- RULE-SET,reject,🚫 广告过滤
- GEOSITE,google,🌐 谷歌服务
- GEOSITE,googlefcm,🌐 谷歌服务
- GEOSITE,youtube,🌐 谷歌服务
- GEOSITE,steam,🎮 游戏平台
- GEOSITE,telegram,📲 电报消息
- GEOSITE,github,📗 代码平台
- GEOSITE,gitlab,📗 代码平台
- GEOIP,LAN,DIRECT
- GEOIP,CN,DIRECT
- MATCH,🐟 漏网之鱼
我的自用配置 主要是google分流,然后分出不同的国家,使用fake-ip 命中的流量dns走vps的请求,没有命中的走路由器的dns,它的上游是运营商的dns。ubuntu 应该是 service clash start
我的是可以通过 UI 界面访问 mihomo 服务的,可以获取对应的代理信息,但是主机 centos 无法访问代理网络,上传和下载流量是零,这是为什么?
我的是可以通过 UI 界面访问 mihomo 服务的,可以获取对应的代理信息,但是主机 centos 无法访问代理网络,上传和下载流量是零,这是为什么?
tun堆栈使用gvisor替换system,是不是就好了?