V2Ray (简体中文)
Jump to navigation
Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
V2Ray 是 Project V 的核心工具,其主要负责网络协议和功能的实现,与其它 Project V 通信。
安装
配置
V2Ray 支持多文件配置。
一个简易的结构是:
/etc/v2ray/
. ├── 00_log.json ├── 01_api.json ├── 02_dns.json ├── 03_routing.json ├── 04_policy.json ├── 05_inbounds.json ├── 06_outbounds.json ├── 07_transport.json ├── 08_stats.json └── 09_reverse.json 0 directories, 10 files
使用
启动/启用 v2ray.service
。
要使用多文件配置,请编辑 /etc/systemd/system/v2ray.service
,加入以下内容:
/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
配置方式
V2Ray 有多种配置方式,目前较为有效的是 WebSocket+TLS。
提示: 将 TLS 交由 Nginx 配置,是一种更合理,也更易于管理的方式。