1
0
mirror of https://github.com/proxysu/ProxySU.git synced 2025-03-27 10:33:59 +03:00
This commit is contained in:
ProxySU 2020-04-13 12:44:36 +08:00
commit 1dcd30377c

View File

@ -3,41 +3,44 @@ V2ray install tools for windows
学习C#用来练手的小工具。代码写的很菜大佬勿喷。编译环境Visual Studio 2017 使用WPF界面
可一键安装的模式有tcp、tcp+http伪装、http2(需要域名)、WebSocket+TLS+Web(需要域名)、mKCP及各种伪装、QUIC及各种伪装。
可一键安装的模式有:
* tcp
* tcp+http伪装
* http2(需要域名)
* WebSocket+TLS+Web(需要域名)
* mKCP及各种伪装
* QUIC及各种伪装。
支持的VPS系统为
CentOS 7/8
Debian 8/9/10(推荐)
Ubuntu 16.04及以上
* CentOS 7/8
* Debian 8/9/10(推荐)
* Ubuntu 16.04及以上
(注意如果系统启用了SELinux且工作在Enforcing模式下时需要将Enforcing更改为Permissive模式否则使用WebSocket+TLS+Web时Caddy的service无法开机启动这种情形一般出现在Centos7/8中本程序在安装过程中将自动处理。)
目前已支持生成用于
1>v2ray官方程序配置文件(客户端配置)
2>v2rayN (windows)客户端导入二维码和网址
3>Shadowrocket (ios)导入二维码和网址
4>v2rayNG (Android)导入二维码和网址
* v2ray官方程序配置文件(客户端配置)
* v2rayN (windows)客户端导入二维码和网址
* Shadowrocket (ios)导入二维码和网址
* v2rayNG (Android)导入二维码和网址
程序中只实现在生成v2rayN的但是Shadowrocket和v2rayNG都可以导入。所以就偷了个懒
## 程序工作流程:
1.使用[SSH.NET](https://github.com/sshnet/SSH.NET)登录远程主机
2.调用V2ray官方安装脚本("bash <(curl -L -s https://install.direct/go.sh)")安装V2ray。
3.根据选择读取相应配置模板,调用[Newtonsoft.Json](https://github.com/JamesNK/Newtonsoft.Json)生成相应配置文件,并上传到服务器。
4.如果使用WebSocket+TLS+Web模式则调用Caddy官方安装脚本("curl https://getcaddy.com -o getcaddy")
("bash getcaddy personal hook.service")安装Caddy。
5.如果使用Http2模式则调用("curl https://raw.githubusercontent.com/acmesh-official/acme.sh/master/acme.sh | INSTALLONLINE=1 sh")安装acme.sh使用acme.sh申请并安装证书到V2ray.
6.安装成功后,使用[Newtonsoft.Json](https://github.com/JamesNK/Newtonsoft.Json)生成兼容于v2rayN的json文件用C#内置的Base64库将json生成url链接,使用[QRcoder](https://github.com/codebude/QRCoder)生成二维码。
1. 使用[SSH.NET](https://github.com/sshnet/SSH.NET)登录远程主机
2. 调用V2ray官方安装脚本 `bash <(curl -L -s https://install.direct/go.sh)` 安装V2ray。
3. 根据选择读取相应配置模板,调用[Newtonsoft.Json](https://github.com/JamesNK/Newtonsoft.Json)生成相应配置文件,并上传到服务器。
4. 如果使用WebSocket+TLS+Web模式则调用Caddy官方安装脚本 `curl https://getcaddy.com -o getcaddy`
`bash getcaddy personal hook.service` 安装Caddy。
5. 如果使用Http2模式则调用( `curl https://raw.githubusercontent.com/acmesh-official/acme.sh/master/acme.sh | INSTALLONLINE=1 sh` 安装acme.sh使用acme.sh申请并安装证书到V2ray.
6. 安装成功后,使用[Newtonsoft.Json](https://github.com/JamesNK/Newtonsoft.Json)生成兼容于v2rayN的json文件用C#内置的Base64库将json生成url链接,使用[QRcoder](https://github.com/codebude/QRCoder)生成二维码。
## License
[(GPL-V3)](https://raw.githubusercontent.com/proxysu/windows/master/LICENSE)
## exe运行文件下载(随代码更新可能有bug)
## 运行文件下载(随代码更新可能有bug)
[下载](https://github.com/proxysu/windows/raw/master/ProxySU/bin/Release/Release.zip)