Giter VIP home page Giter VIP logo

v2ray_ws-tls_bash_onekey's People

Contributors

antimoron avatar binglinggroup avatar henrrrychau avatar huangqian8 avatar jackytang avatar jiuqi9997 avatar mr-xn avatar tangyisheng2 avatar upbeat-backbone-bose avatar wcsyzj avatar wulabing avatar xiagw avatar xmdhs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

v2ray_ws-tls_bash_onekey's Issues

GCP上安装提示域名DNS解析IP与本机IP不匹配

gcp
debian buster
防火墙端口已开放

请输入你的域名信息(eg:www.wulabing.com):xxx.xxx
[OK] 正在获取 公网ip 信息,请耐心等待
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 15 0 15 0 0 13 0 --:--:-- 0:00:01 --:--:-- 13
域名dns解析IP:35.xxx.xxx.xxx
本机IP: 162.xxx.xxx.xxx
[错误] 请确保域名添加了正确的 A 记录,否则将无法正常使用 V2ray
[错误] 域名dns解析IP 与 本机IP 不匹配 是否继续安装?(y/n)

域名为cloudflare解析,DNS ONLY,本地windows端可以ping通,显示正确IP地址
其中的本机IP经查询为**cloudflare

测试另一个脚本没问题 - https://github.com/hijkpw/scripts/blob/master/ubuntu_install_v2ray.sh ,只是这个脚本用的是v2fly

抱歉,确定是google的原因

更改默认的443端口问题

大佬您好,想请教下,国庆前可以正常访问,但国庆后突然访问不了,解析域名得知443端口国内已无法访问,但我按照脚本已经更改了端口,但还是解析出443端口出来,想问下还有哪个地方需要同步更改吗,十分感谢
截图如下
image

按vless脚本安装后,v2ray直接启动不起来

重置了云盘,重新装了系统后,运行vles脚本,域名、端口一切正常,但是v2ray 的运行状态是failed 目前版本是5.1.0
后来搜索到有人遇见同样问题,操作时降低版本(参考:https://www.zzygx.cc/?p=1111)
但是我按照操作之后,还是不行,希望5.1.0这个版本无法启动的问题可以尽快解决

v2ray脚本安装过程中kill 80进程,Nginx出错

root@shitizen:~# nginx
nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use)
nginx: [emerg] still could not bind()

站点404

有解决思路吗

关于一键脚本无法一键签发证书的问题

大佬您好,用了您的一键脚本很长时间了,第一次遇到这种问题,自行排查无果,请大佬指点。
目前cloudflare的SSL/TLS设置为关闭,DNS已作正常指向,防火墙未开启,但是提示:
[2022年 12月 11日 星期日 21:56:16 CST] stu.tedspeech.top:Verify error:"我的ip": Fetching http://"我的域名”/.well-known/acme-challenge/mIzVq-I8PVIzDLDEWCTv8ekpMQ64OKySwAYkWhzfZa8: Timeout during connect (likely firewall problem)
[2022年 12月 11日 星期日 21:56:16 CST] Please add '--debug' or '--log' to check more details.
[2022年 12月 11日 星期日 21:56:16 CST] See: https://github.com/acmesh-official/acme.sh/wiki/How-to-debug-acme.sh

两个同样提供商同样配置的服务器,H2模式一个能连一个不能连,求排查方法

两个服务器同样配置,ubuntu 18.04全新安装后upgrade到最新,使用本脚本建立环境并升级最新v2raycore,PC上使用v2rayN均可以正常使用,但是路由器(x86软路由)和手机BifrostV只能连上其中一个,因为路由器和手机上均没有什么日志可以查看,server端查看error.log也没有对应的错误日志记录,求教应该如何排查问题。

更改域名

脚本主菜单能否增加一个选项“更改域名”?

这个脚本做得太棒了,感谢!👍👍👍

gcc: 致命错误:已杀死 signal terminated program cc1

系统:CentOs 8

{standard input}: Assembler messages:
{standard input}:24108: 警告:end of file not at end of a line; newline inserted
{standard input}:24109: 错误:expected symbol name
{standard input}: 错误:open CFI at the end of file; missing .cfi_endproc directive
gcc: 致命错误:已杀死 signal terminated program cc1
编译中断。
make: *** [Makefile:390:src/jemalloc.sym.o] 错误 1
make: *** 正在等待未完成的任务....

只要我一安装,就被挖矿

image
半年了,没停止过。重装了系统,空闲了两个月都没事,前两天又装了一下,第二天就被异地登录了,然后就开始挖矿

[错误] 证书应用 失败

[Sun Apr 24 15:46:34 CST 2022] Installing key to: /data/v2ray.key
touch: cannot touch '/data/v2ray.key': No such file or directory
[错误] 证书应用 失败

有人能帮忙看下这是什么原因吗?

rejected common/drain: common/drain: drained connection > proxy/vmess/encoding: invalid user: VMessAEAD is enforced and a non VMessAEAD connection is received. You can still disable this security feature with environment variable v2ray.vmess.aead.forced = false . You will not be able to enable legacy header workaround in the future.

证书签发失败

[OK] 安装 SSL 证书生成脚本依赖 完成
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 937 0 937 0 0 9968 0 --:--:-- --:--:-- --:--:-- 9968
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 205k 100 205k 0 0 1360k 0 --:--:-- --:--:-- --:--:-- 1351k
[Wed Jan 19 05:30:19 CST 2022] Installing from online archive.
[Wed Jan 19 05:30:19 CST 2022] Downloading https://github.com/acmesh-official/acme.sh/archive/master.tar.gz
[Wed Jan 19 05:30:20 CST 2022] Extracting master.tar.gz
[Wed Jan 19 05:30:20 CST 2022] Installing to /root/.acme.sh
[Wed Jan 19 05:30:20 CST 2022] Installed to /root/.acme.sh/acme.sh
[Wed Jan 19 05:30:20 CST 2022] Installing alias to '/root/.bashrc'
[Wed Jan 19 05:30:20 CST 2022] OK, Close and reopen your terminal to start using acme.sh
[Wed Jan 19 05:30:20 CST 2022] Installing cron job
39 0 * * * "/root/.acme.sh"/acme.sh --cron --home "/root/.acme.sh" > /dev/null
[Wed Jan 19 05:30:20 CST 2022] Good, bash is found, so change the shebang to use bash as preferred.
[Wed Jan 19 05:30:22 CST 2022] OK
[Wed Jan 19 05:30:22 CST 2022] Install success!
[OK] 安装 SSL 证书生成脚本 完成
[Wed Jan 19 05:30:23 CST 2022] Changed default CA to: https://acme-v02.api.letsencrypt.org/directory
[Wed Jan 19 05:30:23 CST 2022] Using ACME_DIRECTORY: https://acme-staging-v02.api.letsencrypt.org/directory
[Wed Jan 19 05:30:24 CST 2022] Using CA: https://acme-staging-v02.api.letsencrypt.org/directory
[Wed Jan 19 05:30:24 CST 2022] Standalone mode.
[Wed Jan 19 05:30:24 CST 2022] Creating domain key
[Wed Jan 19 05:30:24 CST 2022] The domain key is here: /root/.acme.sh/xxx.duckdns.org_ecc/xxx.duckdns.org.key
[Wed Jan 19 05:30:24 CST 2022] Single domain='xxx.duckdns.org'
[Wed Jan 19 05:30:24 CST 2022] Getting domain auth token for each domain
[Wed Jan 19 05:30:25 CST 2022] Getting webroot for domain='xxx.duckdns.org'
[Wed Jan 19 05:30:25 CST 2022] Verifying: xxx.duckdns.org
[Wed Jan 19 05:30:25 CST 2022] Standalone mode server
[Wed Jan 19 05:30:26 CST 2022] Pending, The CA is processing your order, please just wait. (1/30)
[Wed Jan 19 05:30:28 CST 2022] xxx.duckdns.org:Verify error:Fetching http://xxx.duckdns.org/.well-known/acme-challenge/jCLJm_fyD_im2kgKaeHdvgmmXdsvp0_c2graRj5pQh0: Error getting validation data
[Wed Jan 19 05:30:29 CST 2022] Please add '--debug' or '--log' to check more details.
[Wed Jan 19 05:30:29 CST 2022] See: https://github.com/acmesh-official/acme.sh/wiki/How-to-debug-acme.sh
[错误] SSL 证书测试签发失败

错误提示IP不一致

dns解析ip显示正确,但本地ip显示乱码,提示IP不一致,但继续安装也能连接成功

xray core

h2 doesnt work on v2rayng with xray-cpre
io:read/write on closed pipe
what should i do ?

【解决办法】安装vless后v2ray service无法启动

vi /etc/systemd/system/v2ray.service

复制粘贴下面内容

[Unit]
Description=V2Ray Service
After=network.target nss-lookup.target

[Service]
User=root
CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
NoNewPrivileges=true
Environment=V2RAY_LOCATION_ASSET=/usr/local/lib/v2ray/
ExecStart=/usr/local/bin/v2ray run -config /etc/v2ray/config.json
Restart=on-failure

[Install]
WantedBy=multi-user.target

还有

vi /etc/systemd/system/[email protected]

复制粘贴下面内容

[Unit]
Description=V2Ray Service
After=network.target nss-lookup.target

[Service]
User=root
CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
NoNewPrivileges=true
Environment=V2RAY_LOCATION_ASSET=/usr/local/lib/v2ray/
ExecStart=/usr/local/bin/v2ray run -config /etc/v2ray/%i.json
Restart=on-failure

[Install]
WantedBy=multi-user.target

然后

systemctl daemon-reload
systemctl restart v2ray
systemctl status v2ray

查看v2ray service是否运行,运行的话应该能正常使用了

我实际部署过程中的一些自查流程,可供参考

脚本一键安装后,客户端连不上?估计是启动不起来:

  1. 看nginx配置里的反向代理端口是啥,cat /etc/nginx/conf/conf.d/v2ray.conf ,反向代理的 127.0.0.1:端口号 在里面有写
  2. curl 127.0.0.1:刚的端口号 看看服务起没起来,没起来会说refuse connection类似的东西
  3. 如果出现没启动起来,再看下v2ray进程在不在 ps aux | grep v2ray,除了当前这条查询指令之外有没有v2ray对应的pid。
  4. 如果还没找到v2ray对应的pid, 说明v2ray启动错误,cd /etc/systemd/system/v2ray.service.d/,看下里面唯一的一个config文件里,ExecStart那行的启动脚本是啥?
    4.1. 脚本的config不对,可能路径对不上。比如我在某些centos机器上遇到他的启动项是 实际读到/usr/local/v2ray/config.json (貌似这样),我把对应的文件改成软连接到 /etc/v2ray/config.json就好了
    4.2 启动脚本不对,和v2ray脚本有关。比如v2ray 5.x 启动项从 -config 变为 run -config #47

客户端提示io read write on closed pipe

02-28 09:33:18.561 I/GoLog 152.67.204.53
02-28 09:33:18.702 D/com.v2ray.ang(28054): measureV2rayDelay: go.Universe$proxyerror: Get "http://www.google.com/generate_204": io: read/write on closed pipe
02-28 09:33:18.835 I/GoLog (28054): Using Prepared: 152.67.204.53 (28054): Using Prepared:
02-28 09:33:18.836 I/GoLog (28054): Using Prepared: 152.67.204.53
02-28 09:33:18.836 I/GoLog (28054): Using Prepared: 152.67.204.53

不知道跟证书有没有关系,证书更新不成功

启动后Nginx日志报错:connect() failed (111: Connection refused) while connecting to upstream

作者您好:
我使用您的脚本时遇到一个问题,附上排查解决过程,希望对您有参考价值:
启动后Nginx日志报错:connect() failed (111: Connection refused) while connecting to upstream
使用systemctl status v2ray排查发现v2ray启动时读取的配置文件是/usr/local/etc/v2ray/config.json而非/etc/v2ray/config.json,导致v2ray监听的端口不是/etc/nginx/conf/conf.d/v2ray.conf中所配置的。
建议在启动v2ray前加一步用/etc/v2ray/config.json覆盖/usr/local/etc/v2ray/config.json的操作

咨询v2ray最新漏洞问题

大佬您好,想问下您这个一键部署脚本,应该已经升级过最新安全版本的v2ray了吧,因为听说之前v2ray的v4版本有重大漏洞

关于最近<ip.gs>暂时无法提供服务的问题导致IPV4,本地验证结果空白。

尊敬的各位开源开发者你们好,我今日使用该一键脚本发生一种错误,显示结果是本地 IPV4 空白,我查过源码(install.sh)源码,发现是 https://ip.gs 已经无法提供服务了,所以,验证通道上的关于域名 IP 与本地 IP 验证发生错误。以上是发生错误的描述。
非常感谢你们提供开源项目给我们用,非常感谢,各位辛苦了❤。

证书签发失败

[Tue Jan 18 13:11:12 CST 2022] Using CA: https://acme.zerossl.com/v2/DV90
[Tue Jan 18 13:11:12 CST 2022] Standalone mode.
[Tue Jan 18 13:11:12 CST 2022] No EAB credentials found for ZeroSSL, let's get one
[Tue Jan 18 13:11:12 CST 2022] acme.sh is using ZeroSSL as default CA now.
[Tue Jan 18 13:11:12 CST 2022] Please update your account with an email address first.
[Tue Jan 18 13:11:12 CST 2022] acme.sh --register-account -m [email protected]
[Tue Jan 18 13:11:12 CST 2022] See: https://github.com/acmesh-official/acme.sh/wiki/ZeroSSL.com-CA
[Tue Jan 18 13:11:12 CST 2022] Please add '--debug' or '--log' to check more details.
[Tue Jan 18 13:11:12 CST 2022] See: https://github.com/acmesh-official/acme.sh/wiki/How-to-debug-acme.sh
[错误] SSL 证书生成失败

近期是脚本有问题还是vultr服务器问题,新安装的v2ray都无法使用,求大神帮忙看下哎

咨询下,自从2022.1.1起,出现以下报错后按按网上找的办法vi /etc/systemd/system/v2ray.service 将相应段落修改成ExecStart=/usr/bin/env v2ray.vmess.aead.forced=false /usr/bin/v2ray/v2ray -config /etc/v2ray/config.json就可以使用了。

2022.1.1起的错误 `2022/06/22 14:55:41 121.60.47.170:0 rejected common/drain: common/drain: unable to drain connection > read tcp 127.0.0.1:37235->127.0.0.1:48528: i/o timeout > proxy/vmess/encoding: invalid user: VMessAEAD is enforced and a non VMessAEAD connection is received. You can still disable this security feature with environment variable v2ray.vmess.aead.forced = false .

但是近一个月,这样修改后,还是无法使用,提示如下,网上找了很多教程,都没办法解决,请大神们帮忙指导下,万分感谢!

新错误: 2022/06/22 16:12:02 [Warning] failed to handler mux client connection > v2ray.com/core/proxy/vmess/outbound: failed to find an available destination > v2ray.com/core/common/retry: [v2ray.com/core/transport/internet/websocket: failed to dial WebSocket > v2ray.com/core/transport/internet/websocket: failed to dial to (wss://****.********.com/bbbbbbb/): 502 Bad Gateway > websocket: bad handshake] > v2ray.com/core/common/retry: all retry attempts failed

`

[错误] chronyd 启动 失败 root@goorm:~#

OK] 安装 chrony 时间同步服务 完成
Failed to create bus connection: No such file or directory
Synchronizing state of chrony.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable chrony
System has not been booted with systemd as init system (PID 1). Can't operate.
[错误] chronyd 启动 失败

[错误] SSL 证书测试签发失败

[Tue Aug 17 16:40:27 CST 2021] Changed default CA to: https://acme-v02.api.letsencrypt.org/directory
[Tue Aug 17 16:40:27 CST 2021] Using ACME_DIRECTORY: https://acme-staging-v02.api.letsencrypt.org/directory
[Tue Aug 17 16:40:28 CST 2021] Using CA: https://acme-staging-v02.api.letsencrypt.org/directory
[Tue Aug 17 16:40:28 CST 2021] Standalone mode.
[Tue Aug 17 16:40:28 CST 2021] Creating domain key
[Tue Aug 17 16:40:28 CST 2021] The domain key is here: /root/.acme.sh/xxxx.com_ecc/xxxx.com.key
[Tue Aug 17 16:40:28 CST 2021] Single domain='xxxx.com'
[Tue Aug 17 16:40:28 CST 2021] Getting domain auth token for each domain
[Tue Aug 17 16:40:31 CST 2021] Getting webroot for domain='xxxx.com'
[Tue Aug 17 16:40:31 CST 2021] Verifying: xxxx.com
[Tue Aug 17 16:40:31 CST 2021] Standalone mode server
[Tue Aug 17 16:40:33 CST 2021] Pending, The CA is processing your order, please just wait. (1/30)
[Tue Aug 17 16:40:35 CST 2021] xxxx.com:Verify error:Fetching http://xxxx.com/.well-known/acme-challenge/62i-V2LMbhfR2CZPVHgfg9uA8ZJR1tMUAIh3Dv1DN0I: Error getting validation data
[Tue Aug 17 16:40:35 CST 2021] Please add '--debug' or '--log' to check more details.
[Tue Aug 17 16:40:35 CST 2021] See: https://github.com/acmesh-official/acme.sh/wiki/How-to-debug-acme.sh
[错误] SSL 证书测试签发失败

升级到5.0版本适配问题

把v2ray core从旧版本升级到5.0时,因为5.0 v2ray的启动已经变成 v2ray run -config,所以服务一直启动不了。需要更新服务才可以。
旧版本启动命令为v2ray -config ...,

纯ipv6安装失败

只有ipv6,没有ipv4的情况下,显示 curl(7) failed to connect to server, unable to get release list

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.