clash

Posted on Apr 5, 2023
  • clash (link) 可以在linux/windows/Android上使用。它通过定义proxy group and rule来实现基于rule的traffic分发。简单的说,proxy group是proxy的集合,并可以通过type来定义怎么从一组proxy中找到一个proxy用于traffic proxy。rule就是根据ip/url把traffic mapping到不同的proxy group.
  • clash configuration file is config.yaml. 各种机场需要提高相应的config.yaml for proxy group and rule.
  • 用wget下载bywa机场的订阅链接,得到的是base64 encode的ss serverlist,不是clash config.yaml。可以通过"curl -H “User-Agent: ClashForAndroid/2.0.0” “得到clash config.yaml,详见link
  • 或者使用订阅转换服务,将其它订阅转换为 Clash 订阅。
  • web interface
  • update config.yaml
  • external-controller: :9090
  • # A relative path to the configuration directory or an absolute path to a
  • # directory in which you put some static web resource. Clash core will then
  • #**serve it at http://{{external-controller}}/ui**.
  • external-ui: ui
  • get clash-dashboard
  • visit 192.168.1.4:9090/ui for control
  • clt control interface
  • good guideline: link