Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

README中systemctl service文件权限给得不足? #81

Closed
bash99 opened this issue Jun 9, 2022 · 1 comment
Closed

README中systemctl service文件权限给得不足? #81

bash99 opened this issue Jun 9, 2022 · 1 comment

Comments

@bash99
Copy link

bash99 commented Jun 9, 2022

我之前是root启动的,换成用systemctl加普通用户启动后,什么地址都连不上,
看到

connect error: dial tcp4: lookup invalid IP: no such host
...
listen udp :0: operation not permitted

等错误

后来试着把 /etc/systemd/system/Clash-Meta.service 中两行替换一下,增加权限就完全正常了

CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_RAW CAP_NET_BIND_SERVICE
AmbientCapabilities=CAP_NET_ADMIN CAP_NET_RAW CAP_NET_BIND_SERVICE

之前只有

CapabilityBoundingSet=cap_net_admin
AmbientCapabilities=cap_net_admin

这两个权限。

能否更新一下README.MD(顺便把dashboard的地址也更新了)

@MetaCubeX
Copy link
Collaborator

@bash99 pr一哈,我就不用写了

@bash99 bash99 mentioned this issue Jun 15, 2022
@kunish kunish closed this as completed Feb 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants