V2Ray is the core tool of Project V, which is mainly responsible for the realization of network protocols and functions, and communicates with other Project V.
Install the package. For the development version, install the AUR package.
From the command line
V2Ray is started with the
v2ray command. See Commandline.
[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
Tips and tricks
The preset routing rule files are
/usr/share/v2ray. They are provided by the and packages respectively. These two packages are installed by default as dependencies of .
Replacing the preset routing rule files
There are ready-made packages for some routing rule files. For example, you can install the @Loyalsoldier/v2ray-rules-dat.AUR package for
For routing rule files without ready-made packages, you can create packages and install or remove and without removing the dependent package and put the routing rule files in the
geoip.datdirectly may cause file conflicts.