wulabing / xray_onekey Goto Github PK
View Code? Open in Web Editor NEWXray 基于 Nginx 的 VLESS + XTLS 一键安装脚本
License: MIT License
Xray 基于 Nginx 的 VLESS + XTLS 一键安装脚本
License: MIT License
其实就在acme那里加个 --listen-v6,nginx改成[::]:443就好。
Nginx 的 TLS 1.3 怎么弄
[2018年 03月 04日 星期日 17:20:38 CST] See: https://github.com/Neilpang/acme.sh/wiki/How-to-debug-acme.sh
[错误] SSL 证书生成失败
我搭建的v2ray账号想分享给朋友使用,但考虑到流量问题,想对连接v2ray服务器的ip进行限速,比如单个ip限速300kb/s,请问能做到吗?
腳本出現acme生成ssl證書錯誤
error:Fetching http://mondayblue5487.gq/.well-known/acme-challenge/-EP55WnAoVbCQ56lCbykkbx_iZJihBfdAt8vl6jTvjM: Timeout during connect (likely firewall problem)
應該怎麼處理?
你好,请问这个脚本支持TLS1.3吗?
作者您好!我刚刚新开的机器,在执行脚本前未安装任何软件。域名已确认解析到VPS上,然后用V2Ray_ws-tls_bash_onekey一键脚本安装,SSL证书可以正常获取,安装中间一切正常,但在结束安装时会提示: job for nginx.service failed because the control process exited with error code. see "systemctl status nginx.service" and "journalctl -xe" for details.。 网站无法访问。
V3版直接可以套CF了, SSL 用strict,上一个版本一直不行我以为是我的CF 配置不对。
然后web页面换上了可爱的计算器。
性能还没多测试但是至少已经work。
大赞!
这个脚本是否集成了bbr?
就这个时候,可能和签发工具更新有关
昨天紧跟你的步伐更新了一下脚本
奇怪 centos 下 http 跳转不起作用,最终还是没搞明白
18.11.20 bug反馈谷歌云安装脚本失败摸索一个星期仍未解决确定步骤无误请作者看看有许多详细截图2.docx
里面有很多高清截图,我又不懂怎么把word里的内容粘贴到github上,只好把word上传给作者解决。
好人一生平安,事事顺利,大吉大利,家里有矿。
是否可以通过nginx来实现v2ray的流控呢。参考文献:http://blog.51cto.com/dragondragon/1692339
不用腾讯CDN直连正常工作,网上查了一下腾讯是支持websocket 的,因为我实在太菜非程序员,不知道问题出在了什么地方,所以在这里请教一下大家;
###套用腾讯CDN时报错如下:
2018/03/21 19:24:43 [Info] App|Proxyman|Mux: failed to read metadata > context canceled
2018/03/21 19:24:43 [Info] [440304669] Proxy|Socks: TCP Connect request to tcp:github.com:443
2018/03/21 19:24:43 tcp:127.0.0.1:54648 accepted tcp:github.com:443
2018/03/21 19:24:43 [Info] App|Router: looking for IP for domain: github.com
2018/03/21 19:24:43 [Info] [440304669] App|Dispatcher: default route for tcp:github.com:443
2018/03/21 19:24:43 [Info] [440304669] App|Proxyman|Mux: dispatching request to tcp:github.com:443
2018/03/21 19:24:43 [Info] Transport|Internet|WebSocket: creating connection to tcp:jiasu.vps.vcom:443
2018/03/21 19:24:43 [Info] [1335284310] App|Proxyman|Inbound: connection ends > Proxy|Socks: connection ends > context canceled
2018/03/21 19:24:43 [Info] [2911097121] App|Proxyman|Inbound: connection ends > Proxy|Socks: connection ends > context canceled
2018/03/21 19:24:43 [Info] Transport|Internet|WebSocket: creating connection to tcp:jiasu.vps.vcom:443
2018/03/21 19:24:43 [Info] Transport|Internet|WebSocket: creating connection to tcp:jiasu.vps.vcom:443
2018/03/21 19:24:44 [Info] Transport|Internet|WebSocket: creating connection to tcp:jiasu.vps.vcom:443
2018/03/21 19:24:44 [Info] Transport|Internet|WebSocket: creating connection to tcp:jiasu.vps.vcom:443
2018/03/21 19:24:45 [Warning] failed to handler mux client connection > Proxy|VMess|Outbound: failed to find an available destination > Retry: [Transport|Internet|WebSocket: failed to dial WebSocket > Transport|Internet|WebSocket: failed to dial to (wss://jiasu.vps.vcom/): 404 Not Found > websocket: bad handshake] > Retry: all retry attempts failed
Nginx配置如下:
server {
listen 80;
server_name jiasu.vps.vcom;
rewrite ^(.*)$ https://${server_name}$1 permanent;
}
server {
listen 443 ssl;
ssl_certificate /etc/v2ray/v2ray.crt;
ssl_certificate_key /etc/v2ray/v2ray.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!MD5;
server_name jiasu.vps.vcom;
root /www;
location / {
proxy_redirect off;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $http_host;
if ($http_host = "www.aff03341-e680-4c55f-9386-0233a94144.com" ) {
proxy_pass http://127.0.0.1:27463;
}
}
}
###server config.json配置内容
{
"inbound": {
"port":27463,
"listen":"127.0.0.1",
"protocol": "vmess",
"settings": {
"clients": [
{
"id":"b8e12435-0d37-41cf-94344-21dd5b43c8b",
"alterId":64
}
]
},
"streamSettings":{
"network":"ws",
"wsSettings": {
"path": "/",
"headers": {
"Host": "www.aff43c41-e180-4cff-9386-02dca9434343.com"
}
}
}
},
"outbound": {
"protocol": "freedom",
"settings": {}
}
}
请问,能不能添加个让用户使用自己已有的ssl证书的功能?
我在搬瓦工的openvz服务器上用您这个脚本安装了v2ray,各方面都工作挺好,但是碰到了一个问题:
服务器重启之后需要手动启动这两个服务。请问如何使机器重启后自动运行这两个服务?
域名dns解析IP 与 本机IP 不匹配 是否继续安装?(y/n),请问怎么解决啊,谷歌云
目前v2ray-core应该是支持了http/2.
能否弄一个这样的一键脚本??
是否只是替换/etc/v2ray/目录下的.crt和.key就可以?
环境:Ubuntu 16.04LTS/18.04LTS
错误提示:SSL证书安装失败
联系:TG无法与wulabing会话,有个BOT,无回复。
需求:目前是否有GCP成功的范例,如果可能,请提供环境参数,谢谢。
备注:本人小白,请说的具体些,便于理解。
部分vps缺少crontab
反馈一下,误报 “域名dns解析IP 与 本机IP 不匹配 是否继续安装?”,按y后正常安装,其它一切正常。
域名确定解析正确,可以ping到正确ip。
您好!
今天突然发现不能用v2ray,但是vps是正常运行的,重启vps之后能用v2ray了。可能是v2ray进程被杀掉了。能加入判断v2ray进程状态并自动重启的功能吗?
谢谢!
谢谢作者,
本人有一个知识上的小问题,经过nginx web tls后发现网速明显下降,据说是TLS过程中握手导致的。
可如果在客户端上加mux协议,网速几乎与之前(裸vmess)相差无几,这是为什么?
还有的就是服务端的access log上之前都是走433端口的变成mux.cool:9527
谢谢大家
1、用的是阿里云的 .top域名 [便宜]
2、安装都是现实成功的。域名A记录绑定都是对的
是因为阿里云域名的关系吗?
域名进去后变成一个计算机在线的网页了
在安装过程中出现了这个情况,我是用的是debian 8 64
[错误] V2ray 安装文件下载失败,请检查下载地址是否可用
Err:5 http://nginx.org/packages/mainline/ubuntu bionic InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY ABF5BD827BD9BF62
Reading package lists...
W: GPG error: http://nginx.org/packages/mainline/ubuntu bionic InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY ABF5BD827BD9BF62
E: The repository 'http://nginx.org/packages/mainline/ubuntu bionic InRelease' is not signed.
解决 Path 分流的 Bad Request 问题
1.开启Bad Request错误跳转
vi /etc/nginx/nginx.conf
在代码http{}段里添加一句
proxy_intercept_errors on;
2.设置跳转页
vi /etc/nginx/conf.d/v2ray.conf
在443端口的配置里加一句
error_page 400 = /400.html;
跳转到400页面,或者直接跳转回首页。
我在google cloud上安装你的一键脚本的时候发现一个问题
系统环境 ubuntu 16.04.执行一键脚本的时候提示80端口被占用,新的虚拟机,未安装其他软件。
netstat -anp | grep 80
pe -ef | grep 80
lsof -i 80
都没有输出
在看脚本的时候发现,此处有代码
port_exist_check 80
port_exist_check ${port}
我把第一句删除了然后执行,发现可以了
如果其他同学出现类似的情况可以试试
great!
感谢dalao的脚本,已经稳稳的吃上了V2,不过我发现一个问题,虽然证书添加了脚本能自动更新,但是由于证书安装在V2目录下,所以即使证书更新了,也是需要手动重新安装一次renew的证书到V2目录下,所以希望能增加脚本实现如果证书更新了,就自动安装到V2目录下,并重新加载nginx服务。
再次感谢!
执行: bash <(curl -L -s https://install.direct/go.sh) 会升级到最新版,但是客户端总是不可能跟版本升级跟的那么紧,总是比服务器低一点。然后又要求客户端版本>=服务器。
这样实质就是没办法升级服务器了。
Hello,
Can I install the script for OPENVZ\KVM\XEN? Which one does not fit?
您好,我在全新debian 8 x64系统上使用Vmess + HTTP2 over TLS 脚本,执行之后发现没有安装nginx。在v2rayN中导入配置json文件也无法翻墙。
root@vultr:~# systemctl status v2ray
● v2ray.service - V2Ray Service
Loaded: loaded (/etc/systemd/system/v2ray.service; enabled)
Active: active (running) since Wed 2018-04-11 06:10:52 UTC; 41s ago
Main PID: 447 (v2ray)
CGroup: /system.slice/v2ray.service
└─447 /usr/bin/v2ray/v2ray -config /etc/v2ray/config.json
Apr 11 06:10:52 vultr.guest systemd[1]: Starting V2Ray Service...
Apr 11 06:10:52 vultr.guest systemd[1]: Started V2Ray Service.
Apr 11 06:10:52 vultr.guest v2ray[447]: V2Ray v3.16 (die Commanderin) 20180405
Apr 11 06:10:52 vultr.guest v2ray[447]: A unified platform for anti-censorship.
Apr 11 06:10:52 vultr.guest v2ray[447]: 2018/04/11 06:10:52 [Warning] Core: V2Ray v3.16 started
root@vultr:# systemctl status nginx#
● nginx.service
Loaded: not-found (Reason: No such file or directory)
Active: inactive (dead)
root@vultr:
想一个域名绑定2个vps的ip。因为用此脚本,2个vps的v2rya配置文件不一样,是不是需要自己手动修改成一样的呢?
你好,如果v2ray发布新版本,那么如何更新?
不该选ali
作者你好!上次出现的这个问题今天安装时候又出现了,看来是脚本新版本的问题?^_^ Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details. (系统为Ubuntu 16.04 和 17.10)
近期,由于众所周知的原因,那个又那个了。我的谷歌云服务器4个都是瘫痪状态,没死,就是瘫着。我在推里面也看到不止一个人有这个反应。
这时候想重提一下cf嵌套的事情,能否把你这个case #11 里面提到的3点具体如何实现说一下。特殊时候用的上。
谢谢!🙏
我看了下
nginx_conf_add(){
touch ${nginx_conf_dir}/v2ray.conf
cat>${nginx_conf_dir}/v2ray.conf<<EOF
server {
listen 443 ssl http2;
ssl on;
ssl_certificate /etc/v2ray/v2ray.crt;
ssl_certificate_key /etc/v2ray/v2ray.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3;
listen 443 ssl http2这里为何是http2
[root@host ~]# bash <(curl -L -s https://raw.githubusercontent.com/wulabing/V2Ray_ws-tls_bash_onekey/master/install.sh) | tee v2ray_ins.log
[OK] 当前用户是root用户,进入安装流程
[OK] 当前系统为 Centos 7 Core
[OK] SElinux 设置中,请耐心等待,不要进行其他操作
setsebool: SELinux is disabled.
[OK] SElinux 设置完成
[OK] Nginx 源 安装完成
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
base: repos-lax.psychz.net
elrepo-kernel: repos.lax-noc.com
extras: mirror.fileplanet.com
updates: mirror.fileplanet.com
Package ntpdate-4.2.6p5-28.el7.centos.x86_64 already installed and latest version
Nothing to do
[OK] 安装 NTPdate 时间同步服务 完成
[信息] 正在进行时间同步
11 Nov 06:44:29 ntpdate[3728]: adjust time server 132.163.96.1 offset -0.000819 sec
[OK] 时间同步成功
[OK] 当前系统时间 Sun, 11 Nov 2018 06:44:29 -0500(请注意时区间时间换算,换算后时间误差应为三分钟以内)
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
base: repos-lax.psychz.net
elrepo-kernel: repos.lax-noc.com
extras: mirror.fileplanet.com
updates: mirror.fileplanet.com
Package wget-1.14-15.el7_4.1.x86_64 already installed and latest version
Package git-1.8.3.1-14.el7_5.x86_64 already installed and latest version
Package lsof-4.87-5.el7.x86_64 already installed and latest version
Nothing to do
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
base: repos-lax.psychz.net
elrepo-kernel: repos.lax-noc.com
extras: mirror.fileplanet.com
updates: mirror.fileplanet.com
Package crontabs-1.11-6.20121102git.el7.noarch already installed and latest version
Nothing to do
[OK] 安装 crontab 完成
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
base: repos-lax.psychz.net
elrepo-kernel: repos.lax-noc.com
extras: mirror.fileplanet.com
updates: mirror.fileplanet.com
Package bc-1.06.95-13.el7.x86_64 already installed and latest version
Nothing to do
[OK] 安装 bc 完成
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
base: repos-lax.psychz.net
elrepo-kernel: repos.lax-noc.com
extras: mirror.fileplanet.com
updates: mirror.fileplanet.com
Package unzip-6.0-19.el7.x86_64 already installed and latest version
Nothing to do
[OK] 安装 unzip 完成
请输入你的域名信息(eg:www.wulabing.com):xxx.ga
[OK] 正在获取 公网ip 信息,请耐心等待
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 14 0 14 0 0 45 0 --:--:-- --:--:-- --:--:-- 45
域名dns解析IP:xxx
本机IP: xxx
[OK] 域名dns解析IP 与 本机IP 匹配
请输入连接端口(default:443):
请输入alterID(default:64):
--2018-11-11 06:44:54-- https://install.direct/go.sh
Resolving install.direct (install.direct)... 104.27.175.71, 104.27.174.71, 2606:4700:30::681b:af47, ...
Connecting to install.direct (install.direct)|104.27.175.71|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/plain]
Saving to: ‘go.sh’
[ <=> ] 13,636 --.-K/s in 0s
2018-11-11 06:44:54 (26.2 MB/s) - ‘go.sh’ saved [13636]
Installing V2Ray v4.3 on x86_64
Downloading V2Ray.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 608 0 608 0 0 1654 0 --:--:-- --:--:-- --:--:-- 1656
100 11.2M 100 11.2M 0 0 7067k 0 0:00:01 0:00:01 --:--:-- 16.1M
Extracting V2Ray package to /tmp/v2ray.
Archive: /tmp/v2ray/v2ray.zip
inflating: /tmp/v2ray/config.json
creating: /tmp/v2ray/doc/
inflating: /tmp/v2ray/doc/readme.md
inflating: /tmp/v2ray/geoip.dat
inflating: /tmp/v2ray/geosite.dat
creating: /tmp/v2ray/systemd/
inflating: /tmp/v2ray/systemd/v2ray.service
creating: /tmp/v2ray/systemv/
inflating: /tmp/v2ray/systemv/v2ray
inflating: /tmp/v2ray/v2ctl
extracting: /tmp/v2ray/v2ctl.sig
inflating: /tmp/v2ray/v2ray
extracting: /tmp/v2ray/v2ray.sig
inflating: /tmp/v2ray/vpoint_socks_vmess.json
inflating: /tmp/v2ray/vpoint_vmess_freedom.json
V2Ray v4.3 is installed.
[OK] 安装 V2ray 完成
[错误] 检测到 80 端口被占用,以下为 80 端口占用信息
XXXXXXXXXXXXXXXXXXX
[OK] 5s 后将尝试自动 kill 占用进程
[OK] kill 完成
[OK] 443 端口未被占用
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Hello,
is there a plan to write a script about installing trojan with one click? Similar to vmess for websocket+tls?
Google云vm,全新系统(试过Ubuntu16和Debian9),在我完全确定端口80没有线程占用和端口80确定开放了的情况下,脚本都说80被占,请检查并关闭相关线程重试。
请问有其他朋友遇到么?
能否快速上线,还有能否加入客户端配置文件生成功能,方便直接导入
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.