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

/system.slice/v2ray.service 相关问题 #42

Open
mwmb2 opened this issue Aug 5, 2021 · 2 comments
Open

/system.slice/v2ray.service 相关问题 #42

mwmb2 opened this issue Aug 5, 2021 · 2 comments

Comments

@mwmb2
Copy link

mwmb2 commented Aug 5, 2021

因为我用的Appimage的Qv2ray版本,我的cgproxy配置文件如下:

{
    "comment":"For usage, see https://github.com/springzfx/cgproxy",

    "port": 12345,
    "program_noproxy": ["/home/****/Downloads/v2ray-linux-64/v2ray", "/home/****/Downloads/Qv2ray.v2.7.0-pre2.linux-x64.AppImage"],
    "program_proxy": [],
    "cgroup_noproxy": ["/system.slice/v2ray.service"],
    "cgroup_proxy": ["/"],
    "enable_gateway": false,
    "enable_dns": false,
    "enable_udp": false,
    "enable_tcp": true,
    "enable_ipv4": true,
    "enable_ipv6": true,
    "table": 10007,
    "fwmark": 39283
}

但是systemctl status cgproxy.service显示如下输出:

● cgproxy.service - cgproxy service                                                                                                                                                          
     Loaded: loaded (/lib/systemd/system/cgproxy.service; enabled; vendor preset: enabled)                                                                                                   
     Active: active (running) since Thu 2021-08-05 16:35:27 CST; 22s ago                                                                                                                     
   Main PID: 48957 (cgproxy)                                                                                                                                                                 
      Tasks: 3 (limit: 9276)                                                                                                                                                                 
     Memory: 1.7M                                                                                                                                                                            
     CGroup: /system.slice/cgproxy.service                                                                                                                                                   
             └─48957 /usr/bin/cgproxy --daemon --execsnoop                                                                                                                                   
                                                                                                                                                                                             
Aug 05 16:35:27 MWM cgproxyd[48957]: info: proxied cgroup: /proxy.slice /                                                                                                                    
Aug 05 16:35:27 MWM cgproxyd[48957]: info: table: 10007, fwmark: 39283, mark_newin: 39271                                                                                                    
Aug 05 16:35:27 MWM cgproxyd[48966]: iptables: /system.slice/v2ray.service not exist, ignore                                                                                                 
Aug 05 16:35:27 MWM cgproxyd[48966]: iptables: applying tproxy iptables                                                                                                                      
Aug 05 16:35:27 MWM cgproxyd[49015]: iptables: noproxy cgroup: /noproxy.slice                                                                                                                
Aug 05 16:35:27 MWM cgproxyd[49015]: iptables: proxied cgroup: /proxy.slice /                                                                                                                
Aug 05 16:35:27 MWM cgproxyd[48957]: info: socketserver thread started                                                                                                                       
Aug 05 16:35:27 MWM cgproxyd[48957]: info: execsnoop thread started                                                                                                                          
Aug 05 16:35:27 MWM cgproxyd[48957]: info: noproxy running process 48760 /home/****/Downloads/v2ray-linux-64/v2ray                                                                       
Aug 05 16:35:27 MWM cgproxyd[48957]: info: noproxy running process 48725 /home/****/Downloads/Qv2ray.v2.7.0-pre2.linux-x64.AppImage  

提示没有找到/system.slice/v2ray.service。对于Appimage版本的Qv2ray,cgroup_noproxy应该怎么设置呢?

@mwmb2
Copy link
Author

mwmb2 commented Aug 5, 2021

我的v2ray直接放在用户目录下,没有注册为系统服务。是这个原因导致的吗?

应该如何设置呢

@unknowndevQwQ
Copy link

我的v2ray直接放在用户目录下,没有注册为系统服务。是这个原因导致的吗?

应该如何设置呢

那是给 systemd 启动的 v2ray 准备的,一般不需要在意

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