Coder Social home page Coder Social logo

hello-yunshu / xray_bash_onekey Goto Github PK

View Code? Open in Web Editor NEW
450.0 18.0 190.0 142 KB

Xray+Nginx 包含 VLESS WebSocket/gPRC+TLS / XTLS+TCP 协议的一键安装脚本

Home Page: https://www.idleleo.com/12/4876

License: GNU General Public License v3.0

Shell 100.00%
xray tls-websocket-xray xtls-nginx xray-nginx xtls xray-bash grcp uuidv5 nginx websocket

xray_bash_onekey's Issues

安装失败。

-- A start job for unit nginx.service has begun execution.

-- The job identifier is 1035.
Jul 11 17:12:32 beta nginx[46380]: nginx: [emerg] duplicate location "/data" in /etc/idleleo/conf/nginx/xray.conf:36
Jul 11 17:12:32 beta nginx[46380]: nginx: configuration file /etc/nginx/conf/nginx.conf test failed
Jul 11 17:12:32 beta systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support

-- An ExecStartPre= process belonging to unit nginx.service has exited.

-- The process' exit code is 'exited' and its exit status is 1.
Jul 11 17:12:32 beta systemd[1]: nginx.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support

-- The unit nginx.service has entered the 'failed' state with result 'exit-code'.
Jul 11 17:12:32 beta systemd[1]: Failed to start The NGINX HTTP and reverse proxy server.
-- Subject: A start job for unit nginx.service has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support

-- A start job for unit nginx.service has finished with a failure.

-- The job identifier is 1035 and the job result is failed.
Jul 11 17:12:56 beta sshd[46629]: Received disconnect from 49.51.12.25 port 51022:11: Bye Bye [preauth]
Jul 11 17:12:56 beta sshd[46629]: Disconnected from authenticating user root 49.51.12.25 port 51022 [preauth]
Jul 11 17:17:01 beta CRON[49225]: pam_unix(cron:session): session opened for user root by (uid=0)
Jul 11 17:17:01 beta CRON[49233]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Jul 11 17:17:01 beta CRON[49225]: pam_unix(cron:session): session closed for user root
Jul 11 17:17:43 beta sshd[49650]: Received disconnect from 121.4.127.97 port 48966:11: Bye Bye [preauth]
Jul 11 17:17:43 beta sshd[49650]: Disconnected from authenticating user root 121.4.127.97 port 48966 [preauth]

另外,脚本可以自定义安装路径吗? 还有之前有证书的能不能不再申请了?

Debian11安装错误

[OK] 当前用户是 root用户, 进入安装流程
[错误] 当前系统为 debian 不在支持的系统列表内, 安装中断!

使用脚本时退格键(BackSpace)无法正常起作用

首先感谢大佬的脚本!
有一个小问题不知道能否该进:
我使用的SSH工具是MobaXterm,默认的终端设置选项里有“BackSpace sends ^H”,而脚本第四行是“stty erase ^?”。
结果就是脚本在运行中和运行后,退格键(BackSpace)都无法起作用,只能显示^H。小白一开始碰到这个问题还是很困惑的~~
假如终端默认设置了“erase = ^?”,那“stty erase ^?”似乎也没什么必要。
或者是这句还有其他用途?恳请大佬指教~~

安装不成功

选项3(nginx+tls+ws)安装到最后在选tls时出现代码错误,安装失败,但选项4(xtls+ws+nginx)安装成功,选9后出现“不支持该模式”

支持新的 VLESS UUID 映射标准

支持新的 VLESS UUID 映射标准

根据 XTLS 项目的提案,本脚本决定支持 UUIDv5 标准。

1. 亮点

提案可以让任何一个字符串(30字节内)遵循 UUIDv5 标准进行一系列变换,最终生成 UUIDv5。

此提案加强了 UUID 的可视性,方便日常使用和分享。

简单说 Xray 可以自定义密码了。

2. 实现

根据提案,本脚本服务端将保持 UUID ,但会提供用户输入自定义字符串的机会。

用户可以在客户端 UUID 处输入自定义字符串。

3. 注意事项

对于客户端,由于不能保证客户端的 Xray-core 是否为最新版,因此在 UUID 处输入自定义字符串未必有效。

在使用 UUID 自定义字符串功能时,请务必注意客户端 Xray-core 版本,这也是此 issue 的目的。

用超级用户打开脚本时会出现死循环

`/bin/idleleo: line 2841: /tmp/version_cmp.tmp: Permission denied
/bin/idleleo: line 2842: /tmp/version_cmp.tmp: Permission denied
(standard_in) 1: syntax error
--2021-12-24 04:38:05-- https://raw.githubusercontent.com/paniy/Xray_bash_onekey/main/install.sh
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.108.133, 185.199.111.133, 185.199.110.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.108.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 132499 (129K) [text/plain]
Saving to: ‘/etc/idleleo/install.sh’

install.sh 100%[=====================================>] 129.39K --.-KB/s in 0.002s

Last-modified header missing -- time-stamps turned off.
2021-12-24 04:38:05 (54.1 MB/s) - ‘/etc/idleleo/install.sh’ saved [132499/132499]

[OK] 下载最新脚本 完成 `

无法使用xtls协议,但是tls 协议正常

我debian10选择安装 Xray (VLESS + TCP + XTLS / TLS + Nginx 及 VLESS + TCP + TLS + Nginx + WebSocket 回落并存模式)
image

服务端没有对应log的输出,客户端日志显示访问成功

SSL 证书测试签发失败

RT
开在这一步了,日志如下:
[OK] 安装 SSL 证书生成脚本 完成 [2021年 02月 05日 星期五 15:30:17 CST] Using ACME_DIRECTORY: https://acme-staging-v02.api.letsencrypt.org/directory [2021年 02月 05日 星期五 15:30:19 CST] Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code: 35 [2021年 02月 05日 星期五 15:30:19 CST] Can not init api. [2021年 02月 05日 星期五 15:30:19 CST] Using CA: https://acme-staging-v02.api.letsencrypt.org/directory [2021年 02月 05日 星期五 15:30:19 CST] Standalone mode. [2021年 02月 05日 星期五 15:30:21 CST] Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code: 35 [2021年 02月 05日 星期五 15:30:21 CST] Can not init api. [2021年 02月 05日 星期五 15:30:21 CST] Registering account: https://acme-staging-v02.api.letsencrypt.org/directory [2021年 02月 05日 星期五 15:30:24 CST] Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code: 35 [2021年 02月 05日 星期五 15:30:24 CST] Could not get nonce, let's try again. [2021年 02月 05日 星期五 15:30:36 CST] Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code: 35 [2021年 02月 05日 星期五 15:30:36 CST] Could not get nonce, let's try again. [2021年 02月 05日 星期五 15:30:40 CST] Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code: 35 [2021年 02月 05日 星期五 15:30:40 CST] Could not get nonce, let's try again. [2021年 02月 05日 星期五 15:30:46 CST] Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code: 35 [2021年 02月 05日 星期五 15:30:46 CST] Could not get nonce, let's try again. [2021年 02月 05日 星期五 15:30:52 CST] Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code: 35 [2021年 02月 05日 星期五 15:30:52 CST] Could not get nonce, let's try again. [2021年 02月 05日 星期五 15:30:57 CST] Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code: 35 [2021年 02月 05日 星期五 15:30:57 CST] Could not get nonce, let's try again. [2021年 02月 05日 星期五 15:31:01 CST] Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code: 35 [2021年 02月 05日 星期五 15:31:01 CST] Could not get nonce, let's try again. [2021年 02月 05日 星期五 15:31:06 CST] Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code: 35 [2021年 02月 05日 星期五 15:31:06 CST] Could not get nonce, let's try again. [2021年 02月 05日 星期五 15:31:13 CST] Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code: 35 [2021年 02月 05日 星期五 15:31:13 CST] Could not get nonce, let's try again. [2021年 02月 05日 星期五 15:31:19 CST] Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code: 35 [2021年 02月 05日 星期五 15:31:19 CST] Could not get nonce, let's try again. [2021年 02月 05日 星期五 15:31:25 CST] Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code: 35 [2021年 02月 05日 星期五 15:31:25 CST] Could not get nonce, let's try again. [2021年 02月 05日 星期五 15:31:31 CST] Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code: 35 [2021年 02月 05日 星期五 15:31:31 CST] Could not get nonce, let's try again. [2021年 02月 05日 星期五 15:31:36 CST] Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code: 35 [2021年 02月 05日 星期五 15:31:36 CST] Could not get nonce, let's try again. [2021年 02月 05日 星期五 15:31:42 CST] Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code: 35 [2021年 02月 05日 星期五 15:31:42 CST] Could not get nonce, let's try again. [2021年 02月 05日 星期五 15:32:01 CST] Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code: 35 [2021年 02月 05日 星期五 15:32:01 CST] Could not get nonce, let's try again. [2021年 02月 05日 星期五 15:32:06 CST] Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code: 35 [2021年 02月 05日 星期五 15:32:06 CST] Could not get nonce, let's try again. [2021年 02月 05日 星期五 15:32:19 CST] Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code: 35 [2021年 02月 05日 星期五 15:32:19 CST] Could not get nonce, let's try again. [2021年 02月 05日 星期五 15:32:37 CST] Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code: 35 [2021年 02月 05日 星期五 15:32:37 CST] Could not get nonce, let's try again. [2021年 02月 05日 星期五 15:32:43 CST] Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code: 35 [2021年 02月 05日 星期五 15:32:43 CST] Could not get nonce, let's try again. [2021年 02月 05日 星期五 15:33:01 CST] Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code: 35 [2021年 02月 05日 星期五 15:33:01 CST] Could not get nonce, let's try again. [2021年 02月 05日 星期五 15:33:04 CST] Giving up sending to CA server after 20 retries. [2021年 02月 05日 星期五 15:33:04 CST] Register account Error: [2021年 02月 05日 星期五 15:33:04 CST] Please add '--debug' or '--log' to check more details. [2021年 02月 05日 星期五 15:33:04 CST] See: https://github.com/acmesh-official/acme.sh/wiki/How-to-debug-acme.sh

使用脚本安装成功,但之前的firewalld中配置的转发forward都失效了

public
  target: default
  icmp-block-inversion: no
  interfaces: 
  sources: 
  services: ssh dhcpv6-client
  ports: 80/tcp 443/tcp 34579/tcp 34579/udp 27607/tcp 34580/tcp 34580/udp 11111/tcp
  protocols: 
  masquerade: yes
  forward-ports: port=34579:proto=tcp:toport=443:toaddr=xxx
        port=34579:proto=udp:toport=443:toaddr=xxx
        port=34580:proto=tcp:toport=443:toaddr=xxx
        port=34580:proto=udp:toport=443:toaddr=xxx
  source-ports: 
  icmp-blocks: 
  rich rules:

原来都是可用的,但是用了你的脚本后这块就失败了是什么原因呀?

连通状态无法连通

大神,安装好后,连通性显示无法连通,节点也用不了,请教下是什么原因?谢谢

[错误] 脚本维护中.. 请稍后再试!

[错误] 脚本维护中.. 请稍后再试!
这个错误已经好久了,是服务器不维护了吗?

  • check_online_version_connect
    ++ curl_local_connect www.idleleo.com api/xray_shell_versions
    ++ curl -Is -o /dev/null -w '%{http_code}' https://www.idleleo.com/api/xray_shell_versions
  • xray_online_version_status=403
  • [[ 403 != \2\0\0 ]]
  • [[ 403 == \4\0\3 ]]
  • echo -e '\033[1;31m[错误]\033[0m \033[41;30m 脚本维护中.. 请稍后再试! \033[0m'
    [错误] 脚本维护中.. 请稍后再试!
  • sleep 0.5
  • exit 0

编译nginx时设置的nginx.conf路径问题

我这里查看到启动配置文件目录是在/etc/nginx/conf/nginx.conf
--conf-path=/etc/nginx/nginx.conf
导致使用nginx -s reload或者nginx -t等提示/etc/nginx/nginx.conf not found

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

使用的ip v6 vps, cloudflare dns, 请问如何解决,谢谢

[Wed Aug 4 01:49:23 UTC 2021] The domain key is here: /root/.acme.sh/xxx.xxx.net_ecc/xxx.xxx.net.key
[Wed Aug 4 01:49:23 UTC 2021] Single domain='xxx.xxx.net'
[Wed Aug 4 01:49:23 UTC 2021] Getting domain auth token for each domain
[Wed Aug 4 01:49:25 UTC 2021] Getting webroot for domain='xxx.xxx.net'
[Wed Aug 4 01:49:25 UTC 2021] Verifying: xxx.xxx.net
[Wed Aug 4 01:49:25 UTC 2021] Standalone mode server
[Wed Aug 4 01:49:27 UTC 2021] Pending, The CA is processing your order, please just wait. (1/30)
[Wed Aug 4 01:49:30 UTC 2021] xxx.xxx.net:Verify error:Fetching http://xxx.xxx.net/.well-known/acme-challenge/bdfxYdznQY8p60_RQ3G0-vRvb3fDdUnicK7Yx-2tIik: Connection refused
[Wed Aug 4 01:49:30 UTC 2021] Please add '--debug' or '--log' to check more details.
[Wed Aug 4 01:49:30 UTC 2021] See: https://github.com/acmesh-official/acme.sh/wiki/How-to-debug-acme.sh
[错误] SSL 证书测试签发失败

无法通过连通性测试的问题

您好,感谢您提供的脚本!
我在昨天(4月18日)尝试通过您的脚本配置完成ngix + ws + tls,即模式一,在运行状态一栏中,始终显示“连通性:无法连通”。
尝试重新安装脚本或者升级Xray均无效。系统版本为Ubuntu18.04,还请您提供指导,感谢!
1650299957(1)

vless搭建失败

之前一直正常使用没问题,前天出现问题;手机v2rayng链接提示 失败 io: read/write on close pipe;
用最新版重新搭建,问题依旧;

Oracle cloud
ubuntu系统

Problem with xray

Doesn't work, installation of xray. Broken template link. Please fix that.

运行成功但是连接总是不成功

image

尝试了3、4、5全部尝试了且运行成功。但是只有模式5扫描二维码之后能够翻墙;3、4扫描二维码之后都不能进行翻墙

How to add a SNI on server , please .

Hello .
Could you tell me how to add on the server configuración a SNI ( server name indication ) , please.

Because my ISP provider only let me connect to internet using a SNI .

Or could you add a feature that tell us if we want to add a SNI , please . It is the only way I can connect to internet.

The client configuration similar like this :

{
"dns": {
"hosts": {
"domain:googleapis.cn": "googleapis.com"
},
"servers": [
"https://1.0.0.1/dns-query",
{
"address": "https+local://223.5.5.5/dns-query",
"domains": [
"full:ca1.vless.co"
],
"skipFallback": true
}
]
},
"inbounds": [
{
"listen": "127.0.0.1",
"port": 2081,
"protocol": "socks",
"settings": {
"auth": "noauth",
"udp": true,
"userLevel": 8
},
"sniffing": {
"destOverride": [
"http",
"tls"
],
"enabled": true,
"metadataOnly": false
},
"tag": "socks"
},
{
"listen": "127.0.0.1",
"port": 9081,
"protocol": "http",
"settings": {
"allowTransparent": true,
"userLevel": 8
},
"sniffing": {
"destOverride": [
"http",
"tls"
],
"enabled": true,
"metadataOnly": false
},
"tag": "http"
},
{
"listen": "127.0.0.1",
"port": 6451,
"protocol": "dokodemo-door",
"settings": {
"address": "1.0.0.1",
"network": "tcp,udp",
"port": 53
},
"tag": "dns-in"
}
],
"log": {
"loglevel": "error"
},
"outbounds": [
{
"protocol": "vless",
"settings": {
"vnext": [
{
"address": "ca1.vless.co",
"port": 443,
"users": [
{
"encryption": "none",
"id": "81f1f510-3ca7-4734-8956-0f4fce670af5",
"level": 8
}
]
}
]
},
"streamSettings": {
"network": "ws",
"security": "tls",
"tlsSettings": {
"serverName": "www.yahoo.com"
},
"wsSettings": {
"headers": {
"Host": "www.yahoo.com"
},
"path": "/fastssh?u\u003dmamamio\u0026p\u003d6147b8242bcbc\u0026"
}
},
"tag": "proxy-global-2"
},
{
"protocol": "freedom",
"settings": {
"domainStrategy": "UseIP"
},
"tag": "direct"
},
{
"protocol": "freedom",
"settings": {
"domainStrategy": "UseIP"
},
"tag": "bypass"
},
{
"protocol": "blackhole",
"tag": "block"
},
{
"protocol": "dns",
"settings": {},
"tag": "dns-out"
}
],
"policy": {
"levels": {
"8": {
"connIdle": 300,
"downlinkOnly": 1,
"handshake": 4,
"uplinkOnly": 1
}
},
"system": {
"statsOutboundDownlink": true,
"statsOutboundUplink": true
}
},
"routing": {
"domainMatcher": "mph",
"domainStrategy": "IPIfNonMatch",
"rules": [
{
"inboundTag": [
"dns-in"
],
"outboundTag": "dns-out",
"type": "field"
}
]
},
"stats": {}
}

能不能添加流量控制

对于多账号控制使用流量限额,x-ui面板支持流量控制,但是好像不能设置Xray+Nginx

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.