Important Directories and Files
- V2Ray binary: /usr/local/bin/v2ray
- Data files (geoip, geosite): /usr/local/share/v2ray/
- Logs: /var/log/v2ray/
- Server Config: /usr/local/etc/v2ray/config.json
- Client Config: /root/client.json(SOCKS5 on127.0.0.1:1080)
- VMESS Share URL: /root/client.vmess(base64 encoded, can be imported into V2Ray clients)
Managing the Service
systemctl start v2ray      # Start service
systemctl stop v2ray       # Stop service
systemctl restart v2ray    # Reload configs
systemctl status v2ray     # Show status
journalctl -u v2ray -f     # Live logs
How to Connect
Option A: Using Client Config (client.json)
1. Copy /root/client.json to your local machine.
2. Run V2Ray locally:
v2ray run -config client.json
3. Configure your browser/system to use SOCKS5 proxy:
Host: 127.0.0.1
Port: 1080
Option B: Using VMESS URL
1. Open /root/client.vmess and copy the URL.
2. Import it into a client app.
Editing the Config
Server config: /usr/local/etc/v2ray/config.json
Example modification: change port 10086 → 443 for better firewall evasion.
After editing:
systemctl restart v2ray
Security Notes
- This is a very simple demo setup — advanced users must configure and harden it themselves.
- Use a domain name + TLS (via Nginx + certbot) for stealth.
- Keep UUID secret; regenerate with: v2ray uuid
