Coder Social home page Coder Social logo

xray_onekey's Issues

关于http2

目前v2ray-core应该是支持了http/2.
能否弄一个这样的一键脚本??

关于ws lts 脚本问题

我看了下
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

关于证书更新自动的问题,已经明白证书更新后会自动安装了

  感谢dalao的脚本,已经稳稳的吃上了V2,不过我发现一个问题,虽然证书添加了脚本能自动更新,但是由于证书安装在V2目录下,所以即使证书更新了,也是需要手动重新安装一次renew的证书到V2目录下,所以希望能增加脚本实现如果证书更新了,就自动安装到V2目录下,并重新加载nginx服务。
 再次感谢!

Google云(GCE)安装时发生的80端口被占用问题

我在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}
我把第一句删除了然后执行,发现可以了
如果其他同学出现类似的情况可以试试

Cloudflare 嵌套问题

用CF 嵌套之后,小计算器显示不正常了,不知道是不是证书问题?
其他都不影响,强迫症驱使哈
image

trojan onekey

Hello,
is there a plan to write a script about installing trojan with one click? Similar to vmess for websocket+tls?

NGINX 在Ubuntu 16.04 和17.10上无法启动

作者你好!上次出现的这个问题今天安装时候又出现了,看来是脚本新版本的问题?^_^ 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)

Virtualization type

Hello,

Can I install the script for OPENVZ\KVM\XEN? Which one does not fit?

GCP安装出错

环境:Ubuntu 16.04LTS/18.04LTS
错误提示:SSL证书安装失败
联系:TG无法与wulabing会话,有个BOT,无回复。

需求:目前是否有GCP成功的范例,如果可能,请提供环境参数,谢谢。
备注:本人小白,请说的具体些,便于理解。

TLS1.3

你好,请问这个脚本支持TLS1.3吗?

Nginx无法启动

作者您好!我刚刚新开的机器,在执行脚本前未安装任何软件。域名已确认解析到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.。 网站无法访问。

请教一下,关于使用腾讯CDN加速是遇到的问题,报错404!!!

不用腾讯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": {}
  }
}

Google云安装的问题

Google云vm,全新系统(试过Ubuntu16和Debian9),在我完全确定端口80没有线程占用和端口80确定开放了的情况下,脚本都说80被占,请检查并关闭相关线程重试。
请问有其他朋友遇到么?

这不是一个issue。大赞V3.0版本

V3版直接可以套CF了, SSL 用strict,上一个版本一直不行我以为是我的CF 配置不对。
然后web页面换上了可爱的计算器。
性能还没多测试但是至少已经work。
大赞!

v2ray更新

你好,如果v2ray发布新版本,那么如何更新?

vps重启之后不能自动运行nginx和v2ray服务

我在搬瓦工的openvz服务器上用您这个脚本安装了v2ray,各方面都工作挺好,但是碰到了一个问题:
服务器重启之后需要手动启动这两个服务。请问如何使机器重启后自动运行这两个服务?

解决 Path 分流的 Bad Request 问题

解决 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页面,或者直接跳转回首页。

请问一个域名2个vps怎么搞

想一个域名绑定2个vps的ip。因为用此脚本,2个vps的v2rya配置文件不一样,是不是需要自己手动修改成一样的呢?

TLS 与Mux 之间区别

谢谢作者,

本人有一个知识上的小问题,经过nginx web tls后发现网速明显下降,据说是TLS过程中握手导致的。
可如果在客户端上加mux协议,网速几乎与之前(裸vmess)相差无几,这是为什么?
还有的就是服务端的access log上之前都是走433端口的变成mux.cool:9527

谢谢大家

关于ip限速

我搭建的v2ray账号想分享给朋友使用,但考虑到流量问题,想对连接v2ray服务器的ip进行限速,比如单个ip限速300kb/s,请问能做到吗?

SSL 证书生成失败

[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

  • base: repos-lax.psychz.net
  • elrepo-kernel: repos.lax-noc.com
  • extras: mirror.fileplanet.com
  • updates: mirror.fileplanet.com
    Package 1:nginx-1.15.6-1.el7_4.ngx.x86_64 already installed and latest version
    Nothing to do
    [OK] nginx 安装完成
    [OK] V2ray 配置修改 完成
    [OK] Nginx 配置修改 完成
    Cloning into 'sCalc'...
    remote: Enumerating objects: 86, done.
    remote: Total 86 (delta 0), reused 0 (delta 0), pack-reused 86
    Unpacking objects: 100% (86/86), done.
    [OK] web 站点伪装 完成
    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 socat-1.7.3.2-2.el7.x86_64 already installed and latest version
    Package 2:nmap-ncat-6.40-13.el7.x86_64 already installed and latest version
    Nothing to do
    [OK] 安装 SSL 证书生成脚本依赖 完成
    % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed
    100 705 100 705 0 0 1752 0 --:--:-- --:--:-- --:--:-- 1753
    % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed
    100 164k 100 164k 0 0 865k 0 --:--:-- --:--:-- --:--:-- 866k
    [Sun Nov 11 06:45:16 EST 2018] Installing from online archive.
    [Sun Nov 11 06:45:16 EST 2018] Downloading https://github.com/Neilpang/acme.sh/archive/master.tar.gz
    [Sun Nov 11 06:45:17 EST 2018] Extracting master.tar.gz
    [Sun Nov 11 06:45:17 EST 2018] Installing to /root/.acme.sh
    [Sun Nov 11 06:45:17 EST 2018] Installed to /root/.acme.sh/acme.sh
    [Sun Nov 11 06:45:17 EST 2018] Installing alias to '/root/.bashrc'
    [Sun Nov 11 06:45:17 EST 2018] OK, Close and reopen your terminal to start using acme.sh
    [Sun Nov 11 06:45:17 EST 2018] Installing alias to '/root/.cshrc'
    [Sun Nov 11 06:45:17 EST 2018] Installing alias to '/root/.tcshrc'
    [Sun Nov 11 06:45:17 EST 2018] Installing cron job
    7 0 * * * "/root/.acme.sh"/acme.sh --cron --home "/root/.acme.sh" > /dev/null
    [Sun Nov 11 06:45:17 EST 2018] Good, bash is found, so change the shebang to use bash as preferred.
    [Sun Nov 11 06:45:18 EST 2018] OK
    [Sun Nov 11 06:45:18 EST 2018] Install success!
    [OK] 安装 SSL 证书生成脚本 完成
    [Sun Nov 11 06:45:19 EST 2018] Standalone mode.
    [Sun Nov 11 06:45:19 EST 2018] Single domain='xxx.ga'
    [Sun Nov 11 06:45:19 EST 2018] Getting domain auth token for each domain
    [Sun Nov 11 06:45:19 EST 2018] Getting webroot for domain='xxx.ga'
    [Sun Nov 11 06:45:19 EST 2018] Getting new-authz for domain='xxx.ga'
    [Sun Nov 11 06:45:20 EST 2018] The new-authz request is ok.
    [Sun Nov 11 06:45:20 EST 2018] Verifying:xxx.ga
    [Sun Nov 11 06:45:20 EST 2018] Standalone mode server
    [Sun Nov 11 06:45:23 EST 2018] xxx.ga:Verify error:Fetching http://xxx.ga/.well-known/acme-challenge/yg2rVlcWPLscADDkpegjPvG3yunm50ZHrsY3Nm50ryA: Error getting validation data
    [Sun Nov 11 06:45:23 EST 2018] Please add '--debug' or '--log' to check more details.
    [Sun Nov 11 06:45:23 EST 2018] See: https://github.com/Neilpang/acme.sh/wiki/How-to-debug-acme.sh
    [错误] SSL 证书生成失败

如何使用本脚本通过 cloudflare 拯救被墙的 IP

近期,由于众所周知的原因,那个又那个了。我的谷歌云服务器4个都是瘫痪状态,没死,就是瘫着。我在推里面也看到不止一个人有这个反应。
这时候想重提一下cf嵌套的事情,能否把你这个case #11 里面提到的3点具体如何实现说一下。特殊时候用的上。
谢谢!🙏

使用http2 over tls脚本没有安装nginx

您好,我在全新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:
#

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.