2020-05-22 15:30:07 +08:00
|
|
|
|
# v2ray-agent
|
2021-01-25 11:57:29 +08:00
|
|
|
|
|
2021-01-15 16:56:51 +08:00
|
|
|
|
> [感谢 JetBrains 提供的非商业开源软件开发授权](https://www.jetbrains.com/?from=v2ray-agent)
|
|
|
|
|
|
|
|
|
|
> [Thanks for non-commercial open source development authorization by JetBrains](https://www.jetbrains.com/?from=v2ray-agent)
|
2021-01-15 14:57:16 +08:00
|
|
|
|
|
2021-02-23 10:31:19 +08:00
|
|
|
|
> [English Version](https://github.com/mack-a/v2ray-agent/blob/master/documents/en/README_EN.md)
|
|
|
|
|
|
2020-09-06 11:35:52 +08:00
|
|
|
|
- [Cloudflare 优化方案](https://github.com/mack-a/v2ray-agent/blob/master/documents/optimize_V2Ray.md)
|
2020-09-06 11:29:17 +08:00
|
|
|
|
- [流量中转](https://github.com/mack-a/v2ray-agent/blob/master/documents/traffic_relay.md)
|
2020-09-24 11:43:25 +08:00
|
|
|
|
- [手动自建教程](https://github.com/mack-a/v2ray-agent/blob/master/documents/Cloudflare_install_manual.md)
|
2020-12-16 17:49:43 +08:00
|
|
|
|
- [ssh入门教程](https://www.v2ray-agent.com/2020-12-16-ssh%E5%85%A5%E9%97%A8%E6%95%99%E7%A8%8B)
|
2021-03-19 16:01:00 +08:00
|
|
|
|
- [TG群](https://t.me/technologyshare)、[TG频道-更新通知](https://t.me/v2rayagentshare)、[博客地址](https://www.v2ray-agent.com/)
|
2020-12-15 11:13:47 +08:00
|
|
|
|
- [公益订阅链接](https://github.com/mack-a/v2ray-agent/blob/master/documents/free_account.md)。
|
2021-03-01 16:12:54 +08:00
|
|
|
|
- **请给个⭐支持一下**
|
2020-09-06 11:29:17 +08:00
|
|
|
|
|
2020-09-06 11:32:36 +08:00
|
|
|
|
* * *
|
2021-01-15 14:57:16 +08:00
|
|
|
|
|
2020-09-06 11:33:08 +08:00
|
|
|
|
# 目录
|
2021-01-15 14:57:16 +08:00
|
|
|
|
|
2021-02-23 10:31:19 +08:00
|
|
|
|
- [1.脚本安装](#1vlesstcptlsvlesswstlsvmesstcptlsvmesswstlstrojan-伪装站点-五合一共存脚本)
|
2021-01-15 14:57:16 +08:00
|
|
|
|
* [组合方式](#组合方式)
|
|
|
|
|
* [组合推荐](#组合推荐)
|
|
|
|
|
* [特性](#特性)
|
|
|
|
|
* [注意事项](#注意事项)
|
|
|
|
|
* [安装脚本](#安装脚本)
|
|
|
|
|
|
2020-09-06 11:32:36 +08:00
|
|
|
|
* * *
|
2020-11-29 14:45:06 +08:00
|
|
|
|
|
2021-02-23 10:31:19 +08:00
|
|
|
|
# 1.七合一共存脚本+伪装站点
|
2021-01-25 11:57:29 +08:00
|
|
|
|
|
2021-01-26 16:15:47 +08:00
|
|
|
|
- [Cloudflare入门教程](https://github.com/mack-a/v2ray-agent/blob/master/documents/cloudflare_init.md)
|
2020-09-23 09:55:47 +08:00
|
|
|
|
|
2020-12-02 11:12:42 +08:00
|
|
|
|
## 特性
|
2021-01-15 14:57:16 +08:00
|
|
|
|
|
2020-12-02 11:12:42 +08:00
|
|
|
|
- 支持[Xray-core[XTLS]](https://github.com/XTLS/Xray-core)、v2ray-core [XTLS]、v2ray-core
|
2021-03-01 13:57:37 +08:00
|
|
|
|
- 支持不同核心之间的配置文件互相读取
|
2021-02-23 10:31:19 +08:00
|
|
|
|
- 支持 VLESS/VMess/trojan/trojan-go[ws]
|
2021-01-15 15:06:00 +08:00
|
|
|
|
- 支持Debian、Ubuntu、Centos,支持主流的cpu架构。**不建议使用Centos以及低版本的系统,2.3.x后不再支持Centos6**
|
2021-03-01 13:57:37 +08:00
|
|
|
|
- 支持个性化安装
|
|
|
|
|
- 支持多用户管理
|
2021-03-04 21:48:38 +08:00
|
|
|
|
- 支持Netflix检测、支持DNS流媒体解锁、支持任意门解锁Netflix
|
2021-03-10 14:38:59 +08:00
|
|
|
|
- 无需卸载即可安装、重装任意组合
|
|
|
|
|
- 支持卸载时保留Nginx、tls证书。如果acme.sh申请的证书有效的情况下,不会重新签发。
|
2021-01-27 16:52:50 +08:00
|
|
|
|
- 支持纯IPv6,[IPv6注意事项](https://github.com/mack-a/v2ray-agent/blob/master/documents/IPv6_help.md)
|
|
|
|
|
- 支持利用IPv6排除Google的人机验证,**需自己申请IPv6隧道,不建议使用自带的IPv6**
|
2021-01-12 16:52:25 +08:00
|
|
|
|
- [支持自定义证书安装](https://github.com/mack-a/v2ray-agent/blob/master/documents/install_tls.md)
|
2020-12-02 11:12:42 +08:00
|
|
|
|
|
2021-01-26 16:15:47 +08:00
|
|
|
|
## 支持的安装类型
|
2021-01-15 14:57:16 +08:00
|
|
|
|
|
2020-09-28 11:28:04 +08:00
|
|
|
|
- VLESS+TCP+TLS
|
2020-12-02 11:06:13 +08:00
|
|
|
|
- VLESS+TCP+xtls-rprx-direct【**推荐**】
|
2021-01-27 16:52:50 +08:00
|
|
|
|
- VLESS+WS+TLS【支持CDN、IPv6】
|
2020-09-28 11:28:04 +08:00
|
|
|
|
- VMess+TCP+TLS
|
2021-01-27 16:52:50 +08:00
|
|
|
|
- VMess+WS+TLS【支持CDN、IPv6】
|
2020-12-02 11:06:13 +08:00
|
|
|
|
- Trojan【**推荐**】
|
2021-01-27 16:52:50 +08:00
|
|
|
|
- Trojan-Go+WS【支持CDN、不支持IPv6】
|
2020-09-28 11:28:04 +08:00
|
|
|
|
|
2020-11-08 13:17:40 +08:00
|
|
|
|
## 线路推荐
|
2021-01-15 14:57:16 +08:00
|
|
|
|
|
2020-11-08 13:20:56 +08:00
|
|
|
|
- 1.GIA
|
2020-11-08 13:17:21 +08:00
|
|
|
|
- 2.上海CN2+HK
|
|
|
|
|
- 3.上海联通+台湾TFN
|
|
|
|
|
- 4.上海联通+Vultr东京
|
2021-01-26 16:15:47 +08:00
|
|
|
|
- 5.广移/珠移+HKIX/CMI/NTT
|
2020-11-08 13:18:34 +08:00
|
|
|
|
- 6.苏日IPLC+日本/美国
|
|
|
|
|
- 7.莞港IPLC+HK
|
2021-01-26 16:15:47 +08:00
|
|
|
|
- 8.广移/CN2+Cloudflare+全球
|
2021-01-26 16:22:33 +08:00
|
|
|
|
- 9.广移/CN2/南联+香港AZ+全球
|
2021-01-26 16:15:47 +08:00
|
|
|
|
- 10.北联+西伯利亚、伯力ttk/RT
|
|
|
|
|
- 11.CN2+HE
|
2021-01-26 16:22:33 +08:00
|
|
|
|
- 12.电信+台湾远传电信
|
2020-09-28 11:28:04 +08:00
|
|
|
|
|
|
|
|
|
## 组合推荐
|
2021-01-15 14:57:16 +08:00
|
|
|
|
|
2020-11-16 14:10:43 +08:00
|
|
|
|
- 中专/gia ---> VLESS+TCP+TLS/XTLS、Trojan【推荐使用XTLS的xtls-rprx-direct】
|
2021-01-15 14:57:16 +08:00
|
|
|
|
- 移动宽带 ---> VMESS+WS+TLS/Trojan-Go+WS + Cloudflare
|
2020-12-02 11:06:13 +08:00
|
|
|
|
- Trojan建议开启Mux【**多路复用**】,仅需客户端开启,服务端自适应。
|
2020-10-14 14:18:39 +08:00
|
|
|
|
- VMess/VLESS也可开启Mux,效果需要自己尝试,XTLS不支持Mux。仅需客户端开启,服务端自适应。
|
2020-09-28 11:28:04 +08:00
|
|
|
|
|
2020-09-10 15:18:09 +08:00
|
|
|
|
## 注意事项
|
2021-01-15 14:57:16 +08:00
|
|
|
|
|
2021-03-10 14:38:59 +08:00
|
|
|
|
- **修改Cloudflare->SSL/TLS->Overview->Full**
|
|
|
|
|
- **Cloudflare ---> A记录解析的云朵必须为灰色**
|
2021-01-26 16:19:15 +08:00
|
|
|
|
- **使用纯净系统安装,如使用其他脚本安装过,请重新build系统再安装**
|
2021-01-15 14:57:16 +08:00
|
|
|
|
- wget: command not found [**这里需要自己手动安装下wget**]
|
|
|
|
|
,如未使用过Linux,[点击查看](https://github.com/mack-a/v2ray-agent/tree/master/documents/install_tools.md)安装教程
|
2020-11-16 10:13:58 +08:00
|
|
|
|
- 不支持非root账户
|
2020-12-19 22:31:59 +08:00
|
|
|
|
- **中间的版本号升级意味可能不兼容之前安装的内容,如果不是追新用户或者必须升级的版本请谨慎升级。** 例如 2.2.\*,不兼容2.1.\*
|
2021-01-26 16:19:15 +08:00
|
|
|
|
- **如发现Nginx相关问题,请卸载掉自编译的nginx或者重新build系统**
|
2021-01-26 16:15:47 +08:00
|
|
|
|
- **为了节约时间,反馈请带上详细截图或者按照模版规范,无截图或者不按照规范的issue会被直接关闭**
|
2021-02-03 11:50:08 +08:00
|
|
|
|
- **不建议GCP用户使用**
|
2021-02-22 14:47:40 +08:00
|
|
|
|
- **不建议使用Centos以及低版本的系统,2.3.x后不再支持Centos6**
|
2020-11-20 09:40:54 +08:00
|
|
|
|
|
2020-11-29 14:43:16 +08:00
|
|
|
|
## 脚本目录
|
2021-01-15 14:57:16 +08:00
|
|
|
|
|
2021-04-02 13:49:13 +08:00
|
|
|
|
- v2ray-core 【**/etc/v2ray-agent/v2ray、/etc/v2ray-agent/v2ray/conf**】
|
|
|
|
|
- Xray-core 【**/etc/v2ray-agent/xray、/etc/v2ray-agent/xray/conf**】
|
2020-12-02 11:08:42 +08:00
|
|
|
|
- Trojan 【**/etc/v2ray-agent/trojan**】
|
|
|
|
|
- TLS证书 【**/etc/v2ray-agent/tls**】
|
2021-02-23 10:31:19 +08:00
|
|
|
|
- Nginx配置文件 【**/etc/nginx/conf.d/alone.conf**】、Nginx伪装站点目录 【**/usr/share/nginx/html**】
|
2020-11-29 14:42:44 +08:00
|
|
|
|
|
2021-03-01 14:16:03 +08:00
|
|
|
|
## [脚本功能详解、错误处理、常用命令](https://github.com/mack-a/v2ray-agent/blob/master/documents/how_to_use.md)
|
2021-03-01 14:00:31 +08:00
|
|
|
|
|
2020-09-10 15:18:09 +08:00
|
|
|
|
## 安装脚本
|
2021-01-15 14:57:16 +08:00
|
|
|
|
|
2021-01-26 16:19:15 +08:00
|
|
|
|
- 支持快捷方式启动,安装完毕后,shell输入[**vasma**]即可打开脚本,脚本执行路径[**/etc/v2ray-agent/install.sh**]
|
2021-01-26 16:15:47 +08:00
|
|
|
|
|
2021-03-10 14:38:59 +08:00
|
|
|
|
- Latest Version
|
2021-01-15 15:06:00 +08:00
|
|
|
|
|
2020-11-20 09:40:54 +08:00
|
|
|
|
```
|
2020-11-21 00:19:31 +08:00
|
|
|
|
wget -P /root -N --no-check-certificate "https://raw.githubusercontent.com/mack-a/v2ray-agent/master/install.sh" && chmod 700 /root/install.sh && /root/install.sh
|
2020-11-20 09:40:54 +08:00
|
|
|
|
```
|
2020-11-16 10:03:47 +08:00
|
|
|
|
|
2021-03-10 14:38:59 +08:00
|
|
|
|
- Stable-v2.2.24
|
2021-01-15 15:06:00 +08:00
|
|
|
|
|
2021-01-15 14:57:16 +08:00
|
|
|
|
```
|
|
|
|
|
wget -P /root -N --no-check-certificate "https://raw.githubusercontent.com/mack-a/v2ray-agent/9ae23c13a56460d8c14f27c8eb65efc73b173f46/install.sh" && chmod 700 /root/install.sh && /root/install.sh
|
|
|
|
|
```
|
|
|
|
|
|
2021-03-10 14:38:59 +08:00
|
|
|
|
- Stable-v2.1.27
|
2021-01-15 15:06:00 +08:00
|
|
|
|
|
2021-01-15 14:57:16 +08:00
|
|
|
|
```
|
|
|
|
|
wget -P /root -N --no-check-certificate "https://raw.githubusercontent.com/mack-a/v2ray-agent/3f8ea0aa364ae2e1e407056074c11b448396261f/install.sh" && chmod 700 /root/install.sh && /root/install.sh
|
|
|
|
|
```
|
|
|
|
|
|
2020-09-06 11:29:17 +08:00
|
|
|
|
- 示例图
|
2021-01-15 16:48:01 +08:00
|
|
|
|
|
|
|
|
|
<img src="https://raw.githubusercontent.com/mack-a/v2ray-agent/master/fodder/install/install.jpg" width=700>
|
2020-05-23 23:21:43 +08:00
|
|
|
|
|
2020-09-24 15:19:37 +08:00
|
|
|
|
# 许可证
|
2021-01-15 14:57:16 +08:00
|
|
|
|
|
2020-11-27 11:16:48 +08:00
|
|
|
|
[GPL-3.0](https://github.com/mack-a/v2ray-agent/blob/master/LICENSE)
|
2020-09-24 15:19:37 +08:00
|
|
|
|
|
2020-09-24 11:43:25 +08:00
|
|
|
|
## Stargazers over time
|
|
|
|
|
|
|
|
|
|
[![Stargazers over time](https://starchart.cc/mack-a/v2ray-agent.svg)](https://starchart.cc/mack-a/v2ray-agent)
|