V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
meihuak
V2EX  ›  问与答

clash Mac 规则创建好了,可是顶部的猫图标旁的流量显示一直为 0, google 也打不开。

  •  
  •   meihuak · 2019-11-16 18:14:43 +08:00 · 1084 次点击
    这是一个创建于 1838 天前的主题,其中的信息可能已经有所发展或是发生改变。
    买了一个商业版的梯子,还自带 clash 在线规则的,也还是流量是 0,请问是不是哪里没弄对啊
    26 条回复    2019-11-17 10:37:18 +08:00
    Drops
        1
    Drops  
       2019-11-16 18:16:45 +08:00 via Android
    多截几张图发上来看看,线路都能看到吗?
    Jevan
        2
    Jevan  
       2019-11-16 18:19:58 +08:00
    端口是不是不对,本地代理端口需要更改本地的一个配置文件,订阅规则里的端口设置是不生效的。
    Tianao
        3
    Tianao  
       2019-11-16 18:20:46 +08:00 via iPhone
    设置本地代理了吗?系统代理需要把流量发送到本地回环地址,流量才能被 Clash 处理。
    meihuak
        4
    meihuak  
    OP
       2019-11-16 18:21:40 +08:00
    # port of HTTP
    port: 7890

    # port of SOCKS5
    socks-port: 7891

    # redir port for Linux and macOS
    # redir-port: 7892

    allow-lan: false

    # Only applicable when setting allow-lan to true
    # "*": bind all IP addresses
    # 192.168.122.11: bind a single IPv4 address
    # "[aaaa::a8aa:ff:fe09:57d8]": bind a single IPv6 address
    # bind-address: "*"

    # Rule / Global/ Direct (default is Rule)
    mode: Rule

    # set log level to stdout (default is info)
    # info / warning / error / debug / silent
    log-level: info

    # RESTful API for clash
    external-controller: 127.0.0.1:9090

    # you can put the static web resource (such as clash-dashboard) to a directory, and clash would serve in `${API}/ui`
    # input is a relative path to the configuration directory or an absolute path
    # external-ui: folder

    # Secret for RESTful API (Optional)
    # secret: ""

    # experimental feature
    experimental:
    ignore-resolve-fail: true # ignore dns resolve fail, default value is true

    # authentication of local SOCKS5/HTTP(S) server
    # authentication:
    # - "user1:pass1"
    # - "user2:pass2"

    # # experimental hosts, support wildcard (e.g. *.clash.dev Even *.foo.*.example.com)
    # # static domain has a higher priority than wildcard domain (foo.example.com > *.example.com)
    # hosts:
    # '*.clash.dev': 127.0.0.1
    # 'alpha.clash.dev': '::1'

    # dns:
    # enable: true # set true to enable dns (default is false)
    # ipv6: false # default is false
    # listen: 0.0.0.0:53
    # enhanced-mode: redir-host # or fake-ip
    # # fake-ip-range: 198.18.0.1/16 # if you don't know what it is, don't change it
    # nameserver:
    # - 114.114.114.114
    # - tls://dns.rubyfish.cn:853 # dns over tls
    # - https://1.1.1.1/dns-query # dns over https
    # fallback: # concurrent request with nameserver, fallback used when GEOIP country isn't CN
    # - tcp://1.1.1.1
    # fallback-filter:
    # geoip: true # default
    # ipcidr: # ips in these subnets will be considered polluted
    # - 240.0.0.0/4
    meihuak
        5
    meihuak  
    OP
       2019-11-16 18:22:21 +08:00
    github 上找的,这里都没改,按照网上教程,把 ss 的服务器填上了。可是不起作用
    meihuak
        6
    meihuak  
    OP
       2019-11-16 18:23:38 +08:00
    @Tianao 本地代理咋设啊,系统偏好设置里的那个代理么?
    lostberryzz
        7
    lostberryzz  
       2019-11-16 18:35:39 +08:00
    1. 你这个 clash 的配置是空的,去 github 抄一份规则(关键词:clash 规则)
    2. 没有所谓的商业版 ladder
    meihuak
        8
    meihuak  
    OP
       2019-11-16 18:51:32 +08:00
    @lostberryzz 我只截了上半部分,下面还有 ss 服务器的信息的
    LinJunzhu
        9
    LinJunzhu  
       2019-11-16 19:00:06 +08:00
    你猫是灰色的还是黑色的?

    set as system proxy 设置了么
    meihuak
        10
    meihuak  
    OP
       2019-11-16 19:30:48 +08:00
    猫是黑色的,你说的这个设置了,那个卖梯子的,让改成随机启动,然后重启电脑,也还不行
    yov123456
        11
    yov123456  
       2019-11-16 20:05:09 +08:00 via iPhone
    重启电脑大法
    flavoury
        12
    flavoury  
       2019-11-16 20:44:01 +08:00
    我用的挺好的啊,你除了加 ss 服务器信息,还要记得改一下策略组
    ylhawj
        13
    ylhawj  
       2019-11-16 20:57:36 +08:00 via iPhone
    实在不行重装下这个软件试试。
    yov123456
        14
    yov123456  
       2019-11-16 20:59:19 +08:00 via iPhone
    看看 log
    meihuak
        15
    meihuak  
    OP
       2019-11-16 21:00:20 +08:00
    @yov123456 重启过了,也不行 - -
    meihuak
        16
    meihuak  
    OP
       2019-11-16 21:00:54 +08:00
    @flavoury proxy group 吧,也设置了呢
    meihuak
        17
    meihuak  
    OP
       2019-11-16 21:01:04 +08:00
    @ylhawj 我试试哈
    meihuak
        18
    meihuak  
    OP
       2019-11-16 21:07:31 +08:00
    重装了还是不行。

    每次启动都有一个提示“clashx 需要使用管理员权限安装一个帮助程序来帮助设置系统代理”,是不是正常呢?
    meihuak
        19
    meihuak  
    OP
       2019-11-16 21:08:03 +08:00
    添加到 ss 测速也是正常的。。。
    meihuak
        20
    meihuak  
    OP
       2019-11-16 21:10:42 +08:00
    2019/11/16 21:04:47:935 [debug] checkInstall
    2019/11/16 21:04:47:937 [info] Helper connection was closed with error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service on pid 0 named com.west2online.ClashX.ProxyConfigHelper was invalidated." UserInfo={NSDebugDescription=The connection to service on pid 0 named com.west2online.ClashX.ProxyConfigHelper was invalidated.}
    2019/11/16 21:04:49:938 [info] check helper using time: 2.001030921936035
    2019/11/16 21:04:49:938 [debug] need to install helper
    2019/11/16 21:04:50:129 [info] XPC Connection Invalidated
    2019/11/16 21:05:34:064 [info] installHelperDaemon
    2019/11/16 21:05:38:689 [error] Bless Error: Error Domain=CFErrorDomainLaunchd Code=4 "(null)"
    2019/11/16 21:05:38:788 [info] Trying start proxy
    2019/11/16 21:05:38:806 [debug] enableProxy
    2019/11/16 21:05:38:807 [info] Helper connection was closed with error: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service on pid 0 named com.west2online.ClashX.ProxyConfigHelper was invalidated." UserInfo={NSDebugDescription=The connection to service on pid 0 named com.west2online.ClashX.ProxyConfigHelper was invalidated.}
    2019/11/16 21:05:38:810 [info] set up autoUpateTimer
    2019/11/16 21:05:38:810 [info] Tigger config auto update check
    2019/11/16 21:05:38:810 [info] [Auto Upgrade] Bypassing api.cn2.today due to time check
    2019/11/16 21:05:38:829 [info] XPC Connection Invalidated
    2019/11/16 21:05:38:829 [debug] trafficWebSocket did Connect
    2019/11/16 21:05:38:829 [info] Saving Remote Config Setting
    2019/11/16 21:05:38:829 [debug] loggingWebSocket did Connect
    2019/11/16 21:06:26:085 [debug] Optional(<WKNavigation: 0x7fdd4570f500>)
    2019/11/16 21:06:35:217 [debug] Optional(<WKNavigation: 0x7fdd47d41e00>)
    2019/11/16 21:07:46:061 [info] Saving Remote Config Setting
    2019/11/16 21:07:46:064 [info] Tigger config auto update check
    2019/11/16 21:07:46:064 [info] [Auto Upgrade] Bypassing api.cn2.today due to time check
    2019/11/16 21:08:26:364 [debug] trafficWebSocket did Connect
    2019/11/16 21:08:26:366 [debug] loggingWebSocket did Connect
    2019/11/16 21:08:33:838 [debug] trafficWebSocket did Connect
    2019/11/16 21:08:33:839 [debug] loggingWebSocket did Connect
    @yov123456
    meihuak
        21
    meihuak  
    OP
       2019-11-16 21:17:56 +08:00
    另外我的 ss 服务器地址是 ip,我看教程是网址,这个有关系么
    yov123456
        22
    yov123456  
       2019-11-17 08:20:50 +08:00 via iPhone
    @meihuak 不正常 设置系统代理的 helper 安装失败了 看错误信息是 clashx 签名错误 clashx 是从 github 下载的吗 不是什么 ssr 版本吧
    meihuak
        23
    meihuak  
    OP
       2019-11-17 09:32:45 +08:00
    @yov123456 谢谢少侠,可能下的有问题,这里哪个是 mac 的呢?

    clash-darwin-amd64-v0.16.0.gz
    3.56 MB
    clash-freebsd-386-v0.16.0.gz
    3.22 MB
    clash-freebsd-amd64-v0.16.0.gz
    3.39 MB
    clash-linux-386-v0.16.0.gz
    3.21 MB
    clash-linux-amd64-v0.16.0.gz
    3.38 MB
    clash-linux-armv5-v0.16.0.gz
    3.14 MB
    clash-linux-armv6-v0.16.0.gz
    3.13 MB
    clash-linux-armv7-v0.16.0.gz
    3.13 MB
    clash-linux-armv8-v0.16.0.gz
    3.08 MB
    clash-linux-mips-hardfloat-v0.16.0.gz
    3.05 MB
    clash-linux-mips-softfloat-v0.16.0.gz
    3.06 MB
    clash-linux-mips64-v0.16.0.gz
    3.05 MB
    clash-linux-mips64le-v0.16.0.gz
    2.99 MB
    clash-linux-mipsle-hardfloat-v0.16.0.gz
    3.01 MB
    clash-linux-mipsle-softfloat-v0.16.0.gz
    3.02 MB
    clash-windows-386-v0.16.0.zip
    3.14 MB
    clash-windows-amd64-v0.16.0.zip
    3.31 MB
    Source code
    (zip)
    Source code
    (tar.gz)
    yov123456
        24
    yov123456  
       2019-11-17 09:40:28 +08:00 via iPhone   ❤️ 1
    meihuak
        25
    meihuak  
    OP
       2019-11-17 10:23:49 +08:00
    @yov123456 搞定了,哈哈,还是你专业,多谢多谢
    meihuak
        26
    meihuak  
    OP
       2019-11-17 10:37:18 +08:00
    @yov123456 不过 clash 好像还不是真正的全局代理啊,像 win 上面的 sstab 一样的效果
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   3446 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 11:13 · PVG 19:13 · LAX 03:13 · JFK 06:13
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.