Riguz留言 | 贡献
创建页面,内容为“= Install V2Ray = Category:Linux/Unix
 
Riguz留言 | 贡献
标签2017版源代码编辑
 
(未显示同一用户的3个中间版本)
第1行: 第1行:
= Install V2Ray =
= Install V2Ray (Server side) =
== Install ==
https://github.com/v2fly/fhs-install-v2ray


<syntaxhighlight lang="bash">
sudo su -
bash <(curl -L https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-release.sh)
systemctl enable v2ray
systemctl start v2ray
bash <(curl -L https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-dat-release.sh)
v2ray version
V2Ray 5.22.0 (V2Fly, a community-driven edition of V2Ray.) Custom (go1.23.2 linux/amd64)
A unified platform for anti-censorship.
</syntaxhighlight>
== Basic Config ==
<syntaxhighlight lang="json">
{
  "inbounds": [{
    "port": 10086,
    "protocol": "vmess",
    "settings": {
      "clients": [{ "id": "b831381d-6324-4d53-ad4f-8cda48b30811" }]
    }
  }],
  "outbounds": [{
    "protocol": "freedom",
    "settings": {}
  }]
}
</syntaxhighlight>
restart v2ray server:
sudo systemctl restart v2ray
== V2RayU Client ==
Configure -> add v2ray server, input ip/port and client id.
Git ssh over socks proxy:
<syntaxhighlight lang="bash">
# vim ~/.ssh/config
Host github.com
HostName github.com
User git
ProxyCommand nc -v -x 127.0.0.1:1080 %h %p
</syntaxhighlight>


[[Category:Linux/Unix]]
[[Category:Linux/Unix]]

2024年12月31日 (二) 01:16的最新版本

Install V2Ray (Server side)

Install

https://github.com/v2fly/fhs-install-v2ray

sudo su -
bash <(curl -L https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-release.sh)
systemctl enable v2ray
systemctl start v2ray

bash <(curl -L https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-dat-release.sh)

v2ray version
V2Ray 5.22.0 (V2Fly, a community-driven edition of V2Ray.) Custom (go1.23.2 linux/amd64)
A unified platform for anti-censorship.

Basic Config

{
  "inbounds": [{
    "port": 10086,
    "protocol": "vmess",
    "settings": {
      "clients": [{ "id": "b831381d-6324-4d53-ad4f-8cda48b30811" }]
    }
  }],
  "outbounds": [{
    "protocol": "freedom",
    "settings": {}
  }]
}

restart v2ray server:

sudo systemctl restart v2ray


V2RayU Client

Configure -> add v2ray server, input ip/port and client id.

Git ssh over socks proxy:

# vim ~/.ssh/config
Host github.com
HostName github.com
User git
ProxyCommand nc -v -x 127.0.0.1:1080 %h %p