optnode

proxy config converter → mihomo / clash · vmess / vless / trojan / hysteria2 / tuic / anytls / ss
mihomo / clash
input
output · mihomo / clash7 nodes
mixed-port: 7890
allow-lan: false
mode: rule
log-level: info
ipv6: false
external-controller: 127.0.0.1:9090
dns:
  enable: true
  listen: 127.0.0.1:1053
  ipv6: false
  enhanced-mode: fake-ip
  fake-ip-range: 198.18.0.1/16
  default-nameserver:
    - 223.5.5.5
    - 119.29.29.29
  nameserver:
    - https://dns.alidns.com/dns-query
    - https://doh.pub/dns-query
  proxy-server-nameserver:
    - https://dns.alidns.com/dns-query
    - https://doh.pub/dns-query
  nameserver-policy:
    geosite:geolocation-!cn:
      - https://1.1.1.1/dns-query#🚀 节点选择
      - https://8.8.8.8/dns-query#🚀 节点选择
proxies:
  - name: ss-test
    server: example.com
    port: 8388
    type: ss
    cipher: aes-256-gcm
    password: test
    skip-cert-verify: true
    udp: true
  - name: vmess-ws
    server: vm.example.com
    port: 443
    type: vmess
    uuid: 11111111-2222-3333-4444-555555555555
    alterId: 0
    cipher: auto
    tls: true
    servername: vm.example.com
    network: ws
    ws-opts:
      path: /
      headers:
        Host: vm.example.com
    skip-cert-verify: true
    udp: true
  - name: vless-ws
    server: example.com
    port: 443
    type: vless
    uuid: 11111111-2222-3333-4444-555555555555
    tls: true
    alpn:
      - h2
      - http/1.1
    servername: example.com
    network: ws
    ws-opts:
      path: /path
      headers:
        Host: example.com
    skip-cert-verify: true
    udp: true
  - name: trojan-ws
    server: example.com
    port: 443
    type: trojan
    password: pass
    sni: example.com
    network: ws
    ws-opts:
      path: /ws
      headers:
        Host: example.com
    skip-cert-verify: true
    udp: true
  - name: hy2-test
    server: example.com
    port: 443
    type: hysteria2
    password: pass
    auth: pass
    sni: example.com
    up: '50'
    down: '200'
    skip-cert-verify: true
    alpn:
      - h3
    udp: true
  - name: tuic-test
    server: example.com
    port: 443
    type: tuic
    password: pass
    uuid: 11111111-2222-3333-4444-555555555555
    sni: example.com
    alpn:
      - h3
    disable-sni: false
    reduce-rtt: false
    request-timeout: 15000
    udp-relay-mode: native
    congestion-controller: bbr
    skip-cert-verify: true
    udp: true
  - name: anytls-test
    server: example.com
    port: 443
    type: anytls
    password: pass
    fingerprint: chrome
    sni: example.com
    alpn:
      - h2
    skip-cert-verify: true
    udp: true
proxy-groups:
  - name: 🚀 节点选择
    type: select
    proxies:
      - ♻️ 自动选择
      - DIRECT
      - ss-test
      - vmess-ws
      - vless-ws
      - trojan-ws
      - hy2-test
      - tuic-test
      - anytls-test
  - name: ♻️ 自动选择
    type: url-test
    url: http://www.gstatic.com/generate_204
    interval: 300
    tolerance: 50
    proxies:
      - ss-test
      - vmess-ws
      - vless-ws
      - trojan-ws
      - hy2-test
      - tuic-test
      - anytls-test
  - name: 🌍 国外媒体
    type: select
    proxies:
      - 🚀 节点选择
      - ♻️ 自动选择
      - 🎯 全球直连
      - ss-test
      - vmess-ws
      - vless-ws
      - trojan-ws
      - hy2-test
      - tuic-test
      - anytls-test
  - name: 📲 电报信息
    type: select
    proxies:
      - 🚀 节点选择
      - 🎯 全球直连
      - ss-test
      - vmess-ws
      - vless-ws
      - trojan-ws
      - hy2-test
      - tuic-test
      - anytls-test
  - name: Ⓜ️ 微软服务
    type: select
    proxies:
      - 🎯 全球直连
      - 🚀 节点选择
      - ss-test
      - vmess-ws
      - vless-ws
      - trojan-ws
      - hy2-test
      - tuic-test
      - anytls-test
  - name: 🍎 苹果服务
    type: select
    proxies:
      - 🚀 节点选择
      - 🎯 全球直连
      - ss-test
      - vmess-ws
      - vless-ws
      - trojan-ws
      - hy2-test
      - tuic-test
      - anytls-test
  - name: 🎯 全球直连
    type: select
    proxies:
      - DIRECT
      - 🚀 节点选择
      - ♻️ 自动选择
  - name: 🛑 全球拦截
    type: select
    proxies:
      - REJECT
      - DIRECT
  - name: 🍃 应用净化
    type: select
    proxies:
      - REJECT
      - DIRECT
  - name: 🐟 漏网之鱼
    type: select
    proxies:
      - 🚀 节点选择
      - 🎯 全球直连
      - ♻️ 自动选择
      - ss-test
      - vmess-ws
      - vless-ws
      - trojan-ws
      - hy2-test
      - tuic-test
      - anytls-test
rule-providers:
  LocalAreaNetwork:
    type: http
    behavior: classical
    url: https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/refs/heads/master/Clash/LocalAreaNetwork.list
    path: ./rules/LocalAreaNetwork.yaml
  BanAD:
    type: http
    behavior: classical
    url: https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/refs/heads/master/Clash/BanAD.list
    path: ./rules/BanAD.yaml
  BanProgramAD:
    type: http
    behavior: classical
    url: https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/refs/heads/master/Clash/BanProgramAD.list
    path: ./rules/BanProgramAD.yaml
  GoogleCN:
    type: http
    behavior: classical
    url: https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/refs/heads/master/Clash/GoogleCN.list
    path: ./rules/GoogleCN.yaml
  SteamCN:
    type: http
    behavior: classical
    url: https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/refs/heads/master/Clash/Ruleset/SteamCN.list
    path: ./rules/SteamCN.yaml
  Microsoft:
    type: http
    behavior: classical
    url: https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/refs/heads/master/Clash/Microsoft.list
    path: ./rules/Microsoft.yaml
  Apple:
    type: http
    behavior: classical
    url: https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/refs/heads/master/Clash/Apple.list
    path: ./rules/Apple.yaml
  ProxyMedia:
    type: http
    behavior: classical
    url: https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/refs/heads/master/Clash/ProxyMedia.list
    path: ./rules/ProxyMedia.yaml
  Telegram:
    type: http
    behavior: classical
    url: https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/refs/heads/master/Clash/Telegram.list
    path: ./rules/Telegram.yaml
  ProxyLite:
    type: http
    behavior: classical
    url: https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/refs/heads/master/Clash/ProxyLite.list
    path: ./rules/ProxyLite.yaml
  ChinaDomain:
    type: http
    behavior: classical
    url: https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/refs/heads/master/Clash/ChinaDomain.list
    path: ./rules/ChinaDomain.yaml
  ChinaCompanyIp:
    type: http
    behavior: classical
    url: https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/refs/heads/master/Clash/ChinaCompanyIp.list
    path: ./rules/ChinaCompanyIp.yaml
rules:
  - RULE-SET,LocalAreaNetwork,🎯 全球直连
  - RULE-SET,BanAD,🛑 全球拦截
  - RULE-SET,BanProgramAD,🍃 应用净化
  - RULE-SET,GoogleCN,🎯 全球直连
  - RULE-SET,SteamCN,🎯 全球直连
  - RULE-SET,Microsoft,Ⓜ️ 微软服务
  - RULE-SET,Apple,🍎 苹果服务
  - RULE-SET,ProxyMedia,🌍 国外媒体
  - RULE-SET,Telegram,📲 电报信息
  - RULE-SET,ProxyLite,🚀 节点选择
  - RULE-SET,ChinaDomain,🎯 全球直连
  - RULE-SET,ChinaCompanyIp,🎯 全球直连
  - GEOIP,CN,🎯 全球直连
  - MATCH,🐟 漏网之鱼