Coder Social home page Coder Social logo

Comments (14)

SunBK201 avatar SunBK201 commented on August 19, 2024

Hi @Haocen2004, 能提供下 OpenWrt 版本和 Clash 的版本吗?

from ua3f.

Haocen2004 avatar Haocen2004 commented on August 19, 2024
主机名 | N1
-- | --
型号 | Phicomm N1 (CpuMark : 19081.693500 Scores)
架构 | ARMv8 Processor : Cortex-A53 x 4
固件版本 | OpenWrt R22.9.1
内核版本 | 5.15.67
本地时间 | 2024年06月07日 星期五 00:27:04
运行时间 | 1h 13m 9s
CPU状态 | 1512Mhz / 66.0℃
平均负载 | 78.48, 100.69, 120.58
CPU 使用率 | 92%
固件编译日期 | gd772 2022.09.16

使用 openclash v0.46.011-beta
内核版本 alpha-g5c3a9b1

btw
在查询版本号期间发现clash异常占满了cpu

from ua3f.

SunBK201 avatar SunBK201 commented on August 19, 2024

执行命令 id -u nobody 会输出什么呢?

from ua3f.

Haocen2004 avatar Haocen2004 commented on August 19, 2024

执行命令 id -u nobody 会输出什么呢?

65534

from ua3f.

SunBK201 avatar SunBK201 commented on August 19, 2024

还有没有装过 ShellClash?
分别尝试执行下 id -u shellclashid -u shellcrash

from ua3f.

Haocen2004 avatar Haocen2004 commented on August 19, 2024

id -u shellcrash

没有

root@N1:~# id -u shellclash
id: unknown user shellclash
root@N1:~# id -u shellcrash
id: unknown user shellcrash

from ua3f.

SunBK201 avatar SunBK201 commented on August 19, 2024

麻烦使用 luci 或 service 后执行 ps | grep ua3f 看看有什么输出?

from ua3f.

Haocen2004 avatar Haocen2004 commented on August 19, 2024

麻烦使用 luci 或 service 后执行 ps | grep ua3f 看看有什么输出?

使用luci启动

root@N1:~# ps | grep ua3f
12026 nobody   1198m S    /usr/bin/ua3f -b 127.0.0.1 -p 1080 -f Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36 -l info
12257 root      1240 S    grep ua3f
20256 nobody   1240m S    /etc/openclash/clash -d /etc/openclash -f /etc/openclash/ua3f.yaml

from ua3f.

Haocen2004 avatar Haocen2004 commented on August 19, 2024

emm 发现一个问题之前没注意,我从 shell 启动的 ua3f 没加 -u nobody 是可以用的
刚刚试了一下加了-u nobody 也不认了

from ua3f.

SunBK201 avatar SunBK201 commented on August 19, 2024

从你的日志里看不出什么错误...

from ua3f.

Haocen2004 avatar Haocen2004 commented on August 19, 2024

感觉就是单纯的 流量没有正确发给ua3f
但为什么和用户有关 用root就能收到流量 nobody就不行

from ua3f.

SunBK201 avatar SunBK201 commented on August 19, 2024

之所以要使用 nobody 用户是因为要避免流量回环。如果你关闭了 Clash 中的接管本机流量选项的话可以使用其他用户。

from ua3f.

SunBK201 avatar SunBK201 commented on August 19, 2024

emm 发现一个问题之前没注意,我从 shell 启动的 ua3f 没加 -u nobody 是可以用的 刚刚试了一下加了 - u nobody 也不认了

所以到底是什么状态下不能生效?

from ua3f.

Haocen2004 avatar Haocen2004 commented on August 19, 2024

emm 发现一个问题之前没注意,我从 shell 启动的 ua3f 没加 -u nobody 是可以用的 刚刚试了一下加了 - u nobody 也不认了

所以到底是什么状态下不能生效?

就是在nobody用户组不生效 clash开启了代理本机流量

现在是跑在root用户下+关闭了代理本机流量(因为之前说遇到了高cpu占用 看日志发现是回环 加了processname的rule没用 或者说只能顶一会用)

from ua3f.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.