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

v2ray.service not working #26

Open
4kanesora opened this issue Oct 24, 2020 · 3 comments
Open

v2ray.service not working #26

4kanesora opened this issue Oct 24, 2020 · 3 comments

Comments

@4kanesora
Copy link

After setting the config, v2ray -c /etc/v2ray/config.json works fine.
But sytemctal start v2ray.serivce, where v2ray.serivce is copy from /v2ray_config/v2ray.service, it seems dns query never return and soon I got the two many open files error.

I have checked that Oct 24 22:05:08 arch cgproxyd[467855]: info: execsnoop; noproxy: 601056 /usr/bin/v2ray exist.

@4kanesora
Copy link
Author

solved by reboot with unit file as

❯ cat /etc/systemd/system/v2ray.service
[Unit]
Description=V2Ray Service
After=network.target nss-lookup.target

[Service]
User=nobody
AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
ExecStart=/usr/bin/v2ray -confdir /etc/v2ray/

[Install]
WantedBy=multi-user.target

@4kanesora 4kanesora reopened this Oct 24, 2020
@4kanesora
Copy link
Author

Noticed that restart/reload will also cause the v2ray service stop working.
Same as issue as above, please help to check.

@Ali-Flt
Copy link

Ali-Flt commented Feb 12, 2023

I just found out that if you restart cgproxy's service after starting v2ray's service it works. I think cgproxy's cgnoproxy list should be updated so it needs a restart

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