重要なディレクトリとファイル
- V2Ray binary:
/usr/local/bin/v2ray - データファイル(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 共有 URL:
/root/client.vmess(base64 エンコード済み。V2Ray クライアントにインポートできます)
サービスの管理
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
オプション A:クライアント設定を使用する(client.json)
1. Copy /root/client.json ローカルマシンにダウンロードします。
2. Run V2Ray locally:
v2ray run -config client.json
3. ブラウザまたはシステムの SOCKS5 プロキシを設定します:
Host: 127.0.0.1
Port: 1080
オプション B:VMESS URL を使用する
1. Open /root/client.vmess そして、URLをコピーしてください。
2. クライアントアプリにインポートします。
設定ファイルの編集
Server config: /usr/local/etc/v2ray/config.json
設定変更の例:ポートを変更する 10086 → 443 ファイアウォール回避を強化するために。
After editing:
systemctl restart v2ray
Security Notes
- これは非常にシンプルなデモ環境です。高度な設定やセキュリティ強化は、ユーザー自身で行ってください。
- ドメイン名 + TLS を Nginx + certbot で設定し、検出を回避しましょう。
- UUID は秘密にしてください。以下のコマンドで再生成できます:
v2ray uuid