コンテンツにスキップ

「V2Ray」の版間の差分

提供: ArchWiki
削除された内容 追加された内容
英語版より転載
 
Kgx (トーク | 投稿記録)
 
(3人の利用者による、間の10版が非表示)
1行目: 1行目:
[[Category:プロキシサーバー]]
[[Category:プロキシサーバー]]
[[zh-hans:en]]
[[en:V2Ray]]
[[zh-hans:V2Ray]]
[[zh-hans:V2Ray]]
{{Related articles start}}
{{Related articles start}}
6行目: 6行目:
{{Related articles end}}
{{Related articles end}}


[https://github.com/v2fly/v2ray-core V2Ray] は、主にネットワークプロトコルや機能の実現を担うプロジェクト V の中核ツールであり、他のプロジェクト V との通信を行います。
[https://github.com/v2fly/v2ray-core 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.


== Installation ==
== インストール ==


{{Pkg|v2ray}} パッケージをインストールします。開発版の場合は、{{AUR|v2ray-git}} パッケージをインストールします。
[[Install]] the {{Pkg|v2ray}} package. For the development version, install the {{AUR|v2ray-git}} package.


== Configuration ==
== 設定 ==


V2Ray configuration is done with a JSON formatted file. See [https://www.v2fly.org/en_US/config/overview.html Configuration File Format] and [https://www.v2ray.com/en/configuration/index.html Configuration].
V2Ray の設定は、JSON 形式のファイルによって行われます。[https://www.v2fly.org/en_US/config/overview.html 設定ファイルのフォーマット][https://www.v2ray.com/en/configuration/index.html 設定]を参照してください。


== Usage ==
== 使用方法 ==


=== From the command line ===
=== コマンドラインから ===


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


=== Daemon management ===
=== デーモン管理 ===


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


==== Multiple config ====
==== 複数の設定 ====


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]] を参照してください。


== ヒントとテクニック ==
== Tips and tricks ==


=== Routing rules ===
=== ルーティングルール ===


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}} の依存パッケージとしてデフォルトでインストールされます。


==== プリセットルーティングファイルの置き換え ====
==== Replacing the preset routing rule files ====


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|ファイルの競合]] が発生する場合があります。}}


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

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

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

== 参照 ==


* [https://www.v2fly.org/en_US V2Fly offical Website & Documentation]
* [https://www.v2fly.org/en_US V2Fly offical Website & Documentation]
* [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 です。もし英語版に 変更 があれば、翻訳の同期を手伝うことができます。