コンテンツにスキップ

「V2Ray」の版間の差分

提供: ArchWiki
削除された内容 追加された内容
言語間リンクを修正
Kgx (トーク | 投稿記録)
 
(3人の利用者による、間の8版が非表示)
18行目: 18行目:
== 使用方法 ==
== 使用方法 ==


=== マンドラインから ===
=== マンドラインから ===


V2Ray は、{{ic|v2ray}} コマンドで起動します。[https://www.v2ray.com/en/welcome/command.html コマンドライン]を参照してください。
V2Ray は、{{ic|v2ray}} コマンドで起動します。[https://www.v2ray.com/en/welcome/command.html コマンドライン] を参照してください。


=== デーモン管理 ===
=== デーモン管理 ===


{{ic|v2ray.service}} を[[開始/有効化]]します。
{{ic|v2ray.service}} を[[起動/有効化]] します。


==== 複数の設定 ====
==== 複数の設定 ====


To use [https://www.v2fly.org/config/multiple_config.html multiple config], you can [[edit]] {{ic|/etc/systemd/system/v2ray.service}}, add the following:
[https://www.v2fly.org/config/multiple_config.html 複数の設定] を使用するには、{{ic|/etc/systemd/system/v2ray.service}} [[編集]] して、以下を追加します。


{{hc|/etc/systemd/system/v2ray.service|
{{hc|/etc/systemd/system/v2ray.service|
47行目: 47行目:
=== GUI Client ===
=== GUI Client ===


See [[Qv2ray]].
[[Qv2ray]] を参照してください。


== ヒントとコツ ==
== ヒントとテクニック ==


=== ルーティングルール ===
=== ルーティングルール ===


See [https://www.v2ray.com/en/configuration/routing.html Routing] and [https://guide.v2fly.org/en_US/basics/routing/basics_routing.html Routing of V2Ray] .
[https://www.v2ray.com/en/configuration/routing.html Routing] [https://guide.v2fly.org/en_US/basics/routing/basics_routing.html Routing of V2Ray] を参照してください。


The preset routing rule files are {{ic|geosite.dat}} and {{ic|geoip.dat}} in {{ic|/usr/share/v2ray}}. They are provided by the {{Pkg|v2ray-domain-list-community}} and {{Pkg|v2ray-geoip}} packages respectively. These two packages are installed by default as dependencies of {{Pkg|v2ray}}.
ルーティングルールのプリセットファイルは、{{ic|/usr/share/v2ray}} にある {{ic|geosite.dat}} {{ic|geoip.dat}} です。これらは、それぞれ {{Pkg|v2ray-domain-list-community}} {{Pkg|v2ray-geoip}} パッケージによって提供されています。この2つのパッケージは、{{ic|v2ray}} の依存パッケージとしてデフォルトでインストールされます。


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


There are ready-made packages for some routing rule files. For example, you can install the {{AUR|v2ray-rules-dat-git}} package for [https://github.com/Loyalsoldier/v2ray-rules-dat @Loyalsoldier/v2ray-rules-dat].
いくつかのルーティングルールファイルには、既製のパッケージがあります。例えば、[https://github.com/Loyalsoldier/v2ray-rules-dat @Loyalsoldier/v2ray-rules-dat] に対して {{AUR|v2ray-rules-dat-git}} パッケージをインストールすることができます。


既成のパッケージがないルーティングルールファイルについては、[[パッケージの作成]] をして [[pacman#Removing packages|依存パッケージを削除せず]] に、{{Pkg|v2ray-domain-list-community}} と {{Pkg|v2ray-geoip}} をインストールまたは削除して、ルーティングルールファイルを {{ic|/usr/share/v2ray}} ディレクトリに配置することが可能です。
For routing rule files without ready-made packages, you can [[create packages]] and install or remove {{Pkg|v2ray-domain-list-community}} and {{Pkg|v2ray-geoip}} [[pacman#Removing packages|without removing the dependent package]] and put the routing rule files in the {{ic|/usr/share/v2ray}} directory.


{{Warning|Replacing {{ic|geosite.dat}} and {{ic|geoip.dat}} directly may cause [[pacman#"Failed to commit transaction (conflicting files)" error|file conflicts]].}}
{{Warning|{{ic|geosite.dat}} {{ic|geoip.dat}} を直接差し替えると、[[pacman#"Failed to commit transaction (conflicting files)" error|ファイルの競合]] が発生する場合があります。}}

== トラブルシューティング ==

=== Failed with result 'exit-code' ===

ログに次のエラーが表示される場合: {{ic|Failed with result 'exit-code'}} は、V2Ray に /var/log/v2ray/access.log への書き込み権限がないことが原因です。問題を解決するには、次のコマンドを使用します。
chown -R nobody /var/log/v2ray


== 参照 ==
== 参照 ==
70行目: 77行目:
* [https://guide.v2fly.org/en_US V2Ray Beginner's Guide]
* [https://guide.v2fly.org/en_US V2Ray Beginner's Guide]
* [https://qv2ray.net Qv2ray official Website & Documentation]
* [https://qv2ray.net Qv2ray official Website & Documentation]

{{TranslationStatus|V2Ray|2023-12-03|740721}}

2023年12月3日 (日) 18:01時点における最新版

関連記事

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

インストール

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

設定

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

使用方法

コマンドラインから

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

デーモン管理

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

GUI Client

Qv2ray を参照してください。

ヒントとテクニック

ルーティングルール

RoutingRouting of V2Ray を参照してください。

ルーティングルールのプリセットファイルは、/usr/share/v2ray にある geosite.datgeoip.dat です。これらは、それぞれ v2ray-domain-list-communityv2ray-geoip パッケージによって提供されています。この2つのパッケージは、v2ray の依存パッケージとしてデフォルトでインストールされます。

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

いくつかのルーティングルールファイルには、既製のパッケージがあります。例えば、@Loyalsoldier/v2ray-rules-dat に対して v2ray-rules-dat-gitAUR パッケージをインストールすることができます。

既成のパッケージがないルーティングルールファイルについては、パッケージの作成 をして 依存パッケージを削除せず に、v2ray-domain-list-communityv2ray-geoip をインストールまたは削除して、ルーティングルールファイルを /usr/share/v2ray ディレクトリに配置することが可能です。

警告 geosite.datgeoip.dat を直接差し替えると、ファイルの競合 が発生する場合があります。

トラブルシューティング

Failed with result 'exit-code'

ログに次のエラーが表示される場合: Failed with result 'exit-code' は、V2Ray に /var/log/v2ray/access.log への書き込み権限がないことが原因です。問題を解決するには、次のコマンドを使用します。

chown -R nobody /var/log/v2ray

参照

翻訳ステータス: このページは en:V2Ray の翻訳バージョンです。最後の翻訳日は 2023-12-03 です。もし英語版に 変更 があれば、翻訳の同期を手伝うことができます。