provider1下方写上你的订阅链接interface-name处写上你的网卡
Created
March 3, 2026 16:10
-
-
Save lixiao189/a66ba99f3544ea0d98be02d09f22ab5e to your computer and use it in GitHub Desktop.
mihomo (clash meta) 和 tailscale 共存的配置
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # url 里填写自己的订阅,名称不能重复 | |
| proxy-providers: | |
| provider1: | |
| url: "your config URL" | |
| type: http | |
| interval: 86400 | |
| health-check: {enable: true,url: "https://www.gstatic.com/generate_204",interval: 300} | |
| override: | |
| additional-prefix: "[provider1]" | |
| proxies: | |
| - name: "直连" | |
| type: direct | |
| udp: true | |
| mixed-port: 7890 | |
| ipv6: true | |
| allow-lan: true | |
| unified-delay: false | |
| tcp-concurrent: true | |
| external-controller: 127.0.0.1:9090 | |
| external-ui: ui | |
| external-ui-url: "https://github.com/MetaCubeX/metacubexd/archive/refs/heads/gh-pages.zip" | |
| geodata-mode: true | |
| geox-url: | |
| geoip: "https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/geoip-lite.dat" | |
| geosite: "https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/geosite.dat" | |
| mmdb: "https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/country-lite.mmdb" | |
| asn: "https://github.com/MetaCubeX/meta-rules-dat/releases/download/latest/GeoLite2-ASN.mmdb" | |
| find-process-mode: strict | |
| global-client-fingerprint: chrome | |
| sniffer: | |
| enable: true | |
| sniff: | |
| HTTP: | |
| ports: [80, 8080-8880] | |
| override-destination: true | |
| TLS: | |
| ports: [443, 8443] | |
| QUIC: | |
| ports: [443, 8443] | |
| skip-domain: | |
| - "Mijia Cloud" | |
| - "+.push.apple.com" | |
| interface-name: "你的网卡名,用 ifconfig 看" | |
| tun: | |
| enable: true | |
| stack: system | |
| auto-route: true | |
| auto-redirect: true | |
| auto-detect-interface: false | |
| exclude-interface: | |
| - tailscale0 | |
| route-exclude-address: | |
| - 100.64.0.0/10 | |
| - fd7a:115c:a1e0::/48 | |
| dns: | |
| enable: true # 启用 DNS 模块 | |
| nameserver: | |
| - 223.5.5.5 | |
| - 119.29.29.29 | |
| proxy-groups: | |
| - name: 默认 | |
| type: select | |
| proxies: [自动选择,直连,香港,台湾,日本,新加坡,美国,其它地区,全部节点] | |
| - name: Google | |
| type: select | |
| proxies: [默认,香港,台湾,日本,新加坡,美国,其它地区,全部节点,自动选择,直连] | |
| - name: Telegram | |
| type: select | |
| proxies: [默认,香港,台湾,日本,新加坡,美国,其它地区,全部节点,自动选择,直连] | |
| - name: Twitter | |
| type: select | |
| proxies: [默认,香港,台湾,日本,新加坡,美国,其它地区,全部节点,自动选择,直连] | |
| - name: 哔哩哔哩 | |
| type: select | |
| proxies: [默认,香港,台湾,日本,新加坡,美国,其它地区,全部节点,自动选择,直连] | |
| - name: 巴哈姆特 | |
| type: select | |
| proxies: [默认,香港,台湾,日本,新加坡,美国,其它地区,全部节点,自动选择,直连] | |
| - name: YouTube | |
| type: select | |
| proxies: [默认,香港,台湾,日本,新加坡,美国,其它地区,全部节点,自动选择,直连] | |
| - name: NETFLIX | |
| type: select | |
| proxies: [默认,香港,台湾,日本,新加坡,美国,其它地区,全部节点,自动选择,直连] | |
| - name: Spotify | |
| type: select | |
| proxies: [默认,香港,台湾,日本,新加坡,美国,其它地区,全部节点,自动选择,直连] | |
| - name: Github | |
| type: select | |
| proxies: [默认,香港,台湾,日本,新加坡,美国,其它地区,全部节点,自动选择,直连] | |
| - name: 国内 | |
| type: select | |
| proxies: [直连,默认,香港,台湾,日本,新加坡,美国,其它地区,全部节点,自动选择] | |
| - name: 其他 | |
| type: select | |
| proxies: [默认,香港,台湾,日本,新加坡,美国,其它地区,全部节点,自动选择,直连] | |
| #分隔,下面是地区分组 | |
| - name: 香港 | |
| type: select | |
| include-all: true | |
| exclude-type: direct | |
| filter: "(?i)港|hk|hongkong|hong kong" | |
| - name: 台湾 | |
| type: select | |
| include-all: true | |
| exclude-type: direct | |
| filter: "(?i)台|tw|taiwan" | |
| - name: 日本 | |
| type: select | |
| include-all: true | |
| exclude-type: direct | |
| filter: "(?i)日|jp|japan" | |
| - name: 美国 | |
| type: select | |
| include-all: true | |
| exclude-type: direct | |
| filter: "(?i)美|us|unitedstates|united states" | |
| - name: 新加坡 | |
| type: select | |
| include-all: true | |
| exclude-type: direct | |
| filter: "(?i)(新|sg|singapore)" | |
| - name: 其它地区 | |
| type: select | |
| include-all: true | |
| exclude-type: direct | |
| filter: "(?i)^(?!.*(?:🇭🇰|🇯🇵|🇺🇸|🇸🇬|🇨🇳|港|hk|hongkong|台|tw|taiwan|日|jp|japan|新|sg|singapore|美|us|unitedstates)).*" | |
| - name: 全部节点 | |
| type: select | |
| include-all: true | |
| exclude-type: direct | |
| - name: 自动选择 | |
| type: url-test | |
| include-all: true | |
| exclude-type: direct | |
| tolerance: 10 | |
| rules: | |
| - GEOIP,lan,直连,no-resolve | |
| - GEOSITE,github,Github | |
| - GEOSITE,twitter,Twitter | |
| - GEOSITE,youtube,YouTube | |
| - GEOSITE,google,Google | |
| - GEOSITE,telegram,Telegram | |
| - GEOSITE,netflix,NETFLIX | |
| - GEOSITE,bilibili,哔哩哔哩 | |
| - GEOSITE,bahamut,巴哈姆特 | |
| - GEOSITE,spotify,Spotify | |
| - GEOSITE,CN,国内 | |
| - GEOSITE,geolocation-!cn,其他 | |
| - GEOIP,google,Google | |
| - GEOIP,netflix,NETFLIX | |
| - GEOIP,telegram,Telegram | |
| - GEOIP,twitter,Twitter | |
| - GEOIP,CN,国内 | |
| - MATCH,其他 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment