V2ray-core: failed to set SO_MARK > operation not permitted

Created on 26 Mar 2020  ·  5Comments  ·  Source: v2ray/v2ray-core

1) 你正在使用哪个版本的 V2Ray?(如果服务器和客户端使用了不同版本,请注明)
4.23.1

2) 你的使用场景是什么?比如使用 Chrome 通过 Socks/VMess 代理观看 YouTube 视频。
TPROXY

3) 你看到的不正常的现象是什么?(请描述具体现象,比如访问超时,TLS 证书错误等)
无法连接网络,v2ray cpu 占用 100%

4) 客户端日志

2020/03/26 15:05:58 [Info] [558828102] v2ray.com/core/transport/internet: failed to set SO_MARK > operation not permitted
Stale

Most helpful comment

need add AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_NET_RAW

注释掉/etc/systemd/system/v2ray.service的CapabilityBoundingSet,然后加上AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_NET_RAW,然后 systemctl daemon-reload,就解决了,非常感谢

All 5 comments

Ubuntu 18.04.4安装4.23.1可重现问题,添加CAP_NET_ADMIN后解决

need add AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_NET_RAW

need add AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_NET_RAW

注释掉/etc/systemd/system/v2ray.service的CapabilityBoundingSet,然后加上AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_NET_RAW,然后 systemctl daemon-reload,就解决了,非常感谢

This issue is stale because it has been open 120 days with no activity. Remove stale label or comment or this will be closed in 5 days

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ferocknew picture ferocknew  ·  3Comments

sunsan05 picture sunsan05  ·  3Comments

ToutyRater picture ToutyRater  ·  4Comments

ahdung picture ahdung  ·  3Comments

nielspeen picture nielspeen  ·  4Comments