I'm trying to use v2ray vmess protocol on my local Linux machine (Ubuntu 22.04) as a client. I've set a vmess server and I can connect to it on my Android phone without problem and it works (using NapsternetV and V2rayNG), but it doesn't work on my Ubuntu. It says "V2ray started", but when I ping some websites, the situation is the same as without v2ray (some websites are censored).
I use the default config file described here and which failed and I also converted the vmess://... to a *.json file using vmess2json.
The debug-level log is this:
A unified platform for anti-censorship.
2022/10/22 22:27:58 [Info] main/jsonem: Reading config: /home/livingbeing/v2ray-linux-64/config.json
2022/10/22 22:27:58 [Debug] app/log: Logger started
2022/10/22 22:27:58 [Debug] app/proxyman/inbound: creating stream worker on 127.0.0.1:1080
2022/10/22 22:27:58 [Info] transport/internet/tcp: listening TCP on 127.0.0.1:1080
2022/10/22 22:27:58 [Info] transport/internet/udp: listening UDP on 127.0.0.1:1080
2022/10/22 22:27:58 [Warning] V2Ray 4.45.2 started
I use v2ray-linux-64.zip from here which has the same result as using v2ray from APT package manager (sudo apt install v2ray).
CodePudding user response:
v2ray client set a proxy url in your device in linux and you should set this url for your apps that need to use v2ray . you can see this url and port in your config file and with check listen port on your device . if you need use proxy for all system you need to set http_proxy ,HTTPS_PROXY , ALL_PROXY in your system env.