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

2019-11-16 18:14:43 +08:00
 meihuak
买了一个商业版的梯子,还自带 clash 在线规则的,也还是流量是 0,请问是不是哪里没弄对啊
757 次点击
所在节点    问与答
26 条回复
Drops
2019-11-16 18:16:45 +08:00
多截几张图发上来看看,线路都能看到吗?
Jevan
2019-11-16 18:19:58 +08:00
端口是不是不对,本地代理端口需要更改本地的一个配置文件,订阅规则里的端口设置是不生效的。
Tianao
2019-11-16 18:20:46 +08:00
设置本地代理了吗?系统代理需要把流量发送到本地回环地址,流量才能被 Clash 处理。
meihuak
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
2019-11-16 18:22:21 +08:00
github 上找的,这里都没改,按照网上教程,把 ss 的服务器填上了。可是不起作用
meihuak
2019-11-16 18:23:38 +08:00
@Tianao 本地代理咋设啊,系统偏好设置里的那个代理么?
lostberryzz
2019-11-16 18:35:39 +08:00
1. 你这个 clash 的配置是空的,去 github 抄一份规则(关键词:clash 规则)
2. 没有所谓的商业版 ladder
meihuak
2019-11-16 18:51:32 +08:00
@lostberryzz 我只截了上半部分,下面还有 ss 服务器的信息的
LinJunzhu
2019-11-16 19:00:06 +08:00
你猫是灰色的还是黑色的?

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

每次启动都有一个提示“clashx 需要使用管理员权限安装一个帮助程序来帮助设置系统代理”,是不是正常呢?
meihuak
2019-11-16 21:08:03 +08:00
添加到 ss 测速也是正常的。。。
meihuak
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

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/620235

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX