V2Ray

提供: ArchWiki
2022年8月9日 (火) 14:41時点におけるKusanaginoturugi (トーク | 投稿記録)による版 (飜訳)
ナビゲーションに移動 検索に移動

関連記事

V2Ray は、主にネットワークプロトコルや機能の実現を担うプロジェクト V の中核ツールであり、他のプロジェクト V との通信を行います。

インストール

v2ray パッケージをインストールします。開発版の場合は、v2ray-gitAUR パッケージをインストールします。

設定

V2Ray の設定は、JSON 形式のファイルによって行われます。設定ファイルのフォーマット設定を参照してください。

使用方法

ゴマンドラインから

V2Ray は、v2ray コマンドで起動します。コマンドラインを参照してください。

デーモン管理

v2ray.service開始/有効化します。

複数の設定

To use multiple config, you can edit /etc/systemd/system/v2ray.service, add the following:

/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

GUI Client

See Qv2ray.

ヒントとコツ

ルーティングルール

See Routing and Routing of V2Ray .

The preset routing rule files are geosite.dat and geoip.dat in /usr/share/v2ray. They are provided by the v2ray-domain-list-community and v2ray-geoip packages respectively. These two packages are installed by default as dependencies of v2ray.

プリセットルーティングファイルの置き換え

There are ready-made packages for some routing rule files. For example, you can install the v2ray-rules-dat-gitAUR package for @Loyalsoldier/v2ray-rules-dat.

For routing rule files without ready-made packages, you can create packages and install or remove v2ray-domain-list-community and v2ray-geoip without removing the dependent package and put the routing rule files in the /usr/share/v2ray directory.

警告: Replacing geosite.dat and geoip.dat directly may cause file conflicts.

参照