Code Monkey home page Code Monkey logo

v2ray-wss's Introduction

搭建 Shadowsocks-rust, V2ray+ Nginx + WebSocket 和 Reality, Hysteria2 代理脚本,支持 Debian、Ubuntu、Centos,并支持甲骨文ARM平台。

简单点讲,没域名的用户可以安装 Reality 和 hy2 代理,有域名的可以安装 V2ray+ Nginx + WebSocket 代理,各取所需。

运行脚本:

wget https://raw.githubusercontent.com/yeahwu/v2ray-wss/main/tcp-wss.sh && bash tcp-wss.sh

便宜VPS推荐: https://hostalk.net/deals.html

image

已测试系统如下:

Debian 9, 10, 11, 12

Ubuntu 16.04, 18.04, 20.04, 22.04

CentOS 7

WSS客户端配置信息保存在: cat /usr/local/etc/v2ray/client.json

Shadowsocks客户端配置信息: cat /etc/shadowsocks/config.json

Reality客户端配置信息保存在: cat /usr/local/etc/xray/reclient.json

Hysteria2客户端配置信息保存在: cat /etc/hysteria/hyclient.json

卸载方法如下: https://1024.day/d/1296

提醒:连不上的朋友,建议先检查一下服务器自带防火墙有没有关闭?

v2ray-wss's People

Contributors

azoway avatar yeahwu 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

v2ray-wss's Issues

无法连接

东西安装好,防火墙也开了,打开代理就是无法科学上网:

image

image

大佬,请教一下什么原因?

ss安装后报错

systemctl status:
shadowsocks.service - Shadowsocks Server
Loaded: loaded (/etc/systemd/system/shadowsocks.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since 二 2022-04-12 23:09:37 CST; 2s ago
Process: 8463 ExecStart=/usr/bin/ss-server -c /etc/shadowsocks-libev/config.json (code=exited, status=203/EXEC)
Main PID: 8463 (code=exited, status=203/EXEC)

4月 12 23:09:37 C20220412219383 systemd[1]: Started Shadowsocks Server.
4月 12 23:09:37 C20220412219383 systemd[1]: shadowsocks.service: main process exited, code=exited, status=203/EXEC
4月 12 23:09:37 C20220412219383 systemd[1]: Unit shadowsocks.service entered failed state.
4月 12 23:09:37 C20220412219383 systemd[1]: shadowsocks.service failed.

journalctl:
4月 12 23:44:13 C20220412219383 systemd[4861]: Failed at step EXEC spawning /usr/bin/ss-server: Permission denied
-- Subject: Process /usr/bin/ss-server could not be executed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

-- The process /usr/bin/ss-server could not be executed and failed.

-- The error number returned by this process is 13.
4月 12 23:44:13 C20220412219383 systemd[1]: shadowsocks.service: main process exited, code=exited, status=203/EXEC
4月 12 23:44:13 C20220412219383 systemd[1]: Unit shadowsocks.service entered failed state.
4月 12 23:44:13 C20220412219383 systemd[1]: shadowsocks.service failed.
4月 12 23:44:13 C20220412219383 polkitd[1530]: Unregistered Authentication Agent for unix-process:4855:249422 (system bus n

centos 7.6
搜了一下可能是启动.sh第一行少#!/bin/sh,但是没找到启动.sh在哪,请大佬教一下

安装过程中报错

安装过程中报错,代码跳太快,没法复制过来,试了azure和aws的都在安装过程中报错用不了

这个脚本支持IPV6吗

听说IPV6的墙没那么高,想试试IPV6

安装失败,查看Nginx状态,systemctl status nginx
cannot load certificate... 加载不了证书,acme申请失败了?

● nginx.service - A high performance web server and a reverse proxy server
     Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Wed 2023-09-13 09:58:31 CST; 58s ago
       Docs: man:nginx(8)
    Process: 49175 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE)

Sep 13 09:58:31 sunway-la systemd[1]: Starting A high performance web server and a reverse proxy server...
Sep 13 09:58:31 sunway-la nginx[49175]: nginx: [emerg] cannot load certificate "/etc/letsencrypt/live/la688.sunway.run/fullchain.pem": PEM_read_bio_X509_AUX() failed (SSL: error:0909006C:PEM routines:get_name:no start line:Expecting: >
Sep 13 09:58:31 sunway-la nginx[49175]: nginx: configuration file /etc/nginx/nginx.conf test failed
Sep 13 09:58:31 sunway-la systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE
Sep 13 09:58:31 sunway-la systemd[1]: nginx.service: Failed with result 'exit-code'.
Sep 13 09:58:31 sunway-la systemd[1]: Failed to start A high performance web server and a reverse proxy server.

域名是在cloudflare解析的ipv6

##报错如下:
[Wed Sep 13 09:58:30 CST 2023] Invalid status, la688.sunway.run:Verify error:"error":{
[Wed Sep 13 09:58:30 CST 2023] Please add '--debug' or '--log' to check more details.
[Wed Sep 13 09:58:30 CST 2023] See: https://github.com/acmesh-official/acme.sh/wiki/How-to-debug-acme.sh

详细信息

2023-09-13 09:58:04 (160 MB/s) - ‘tcp-wss.sh’ saved [8191/8191]
 ================================================== 
 论坛:https://1024.day                              
 介绍:一键安装SS-libev,v2ray+ws+tls和Reality代理    
 系统:Ubuntu、Debian、CentOS                        
 ================================================== 

 1. 安装 Shadowsocks-libev
 2. 安装 v2ray+ws+tls
 3. 安装 Reality
 0. 退出脚本

请输入数字:2
====输入已经DNS解析好的域名====
la688.sunway.run
回车或等待15秒为默认端口443,或者自定义端口请输入(1-65535):33333
Hit:1 https://download.docker.com/linux/ubuntu focal InRelease
Hit:2 http://security.ubuntu.com/ubuntu focal-security InRelease                                                    
Hit:3 http://archive.ubuntu.com/ubuntu focal InRelease                          
Hit:4 http://archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:5 http://archive.ubuntu.com/ubuntu focal-backports InRelease
Reading package lists... Done
Reading package lists... Done
Building dependency tree       
Reading state information... Done
net-tools is already the newest version (1.60+git20180626.aebd88e-1ubuntu1).
curl is already the newest version (7.68.0-1ubuntu2.19).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
cron is already the newest version (3.0pl1-136ubuntu1).
socat is already the newest version (1.7.3.3-2).
nginx is already the newest version (1.18.0-0ubuntu1.4).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1032    0  1032    0     0  15876      0 --:--:-- --:--:-- --:--:-- 15876
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  216k  100  216k    0     0  9837k      0 --:--:-- --:--:-- --:--:-- 9837k
[Wed Sep 13 09:58:19 CST 2023] Installing from online archive.
[Wed Sep 13 09:58:19 CST 2023] Downloading https://github.com/acmesh-official/acme.sh/archive/master.tar.gz
[Wed Sep 13 09:58:19 CST 2023] Extracting master.tar.gz
[Wed Sep 13 09:58:19 CST 2023] Installing to /root/.acme.sh
[Wed Sep 13 09:58:19 CST 2023] Installed to /root/.acme.sh/acme.sh
[Wed Sep 13 09:58:19 CST 2023] Installing alias to '/root/.bashrc'
[Wed Sep 13 09:58:19 CST 2023] OK, Close and reopen your terminal to start using acme.sh
[Wed Sep 13 09:58:19 CST 2023] Installing cron job
47 0 * * * "/root/.acme.sh"/acme.sh --cron --home "/root/.acme.sh" > /dev/null
[Wed Sep 13 09:58:19 CST 2023] Good, bash is found, so change the shebang to use bash as preferred.
[Wed Sep 13 09:58:20 CST 2023] OK
[Wed Sep 13 09:58:20 CST 2023] Install success!
[Wed Sep 13 09:58:20 CST 2023] Using CA: https://acme.zerossl.com/v2/DV90
[Wed Sep 13 09:58:20 CST 2023] Run pre hook:'systemctl stop nginx'
[Wed Sep 13 09:58:20 CST 2023] Standalone mode.
[Wed Sep 13 09:58:20 CST 2023] Creating domain key
[Wed Sep 13 09:58:21 CST 2023] The domain key is here: /root/.acme.sh/la688.sunway.run_ecc/la688.sunway.run.key
[Wed Sep 13 09:58:21 CST 2023] Single domain='la688.sunway.run'
[Wed Sep 13 09:58:21 CST 2023] Getting domain auth token for each domain
[Wed Sep 13 09:58:23 CST 2023] Getting webroot for domain='la688.sunway.run'
[Wed Sep 13 09:58:23 CST 2023] Verifying: la688.sunway.run
[Wed Sep 13 09:58:23 CST 2023] Standalone mode server
[Wed Sep 13 09:58:25 CST 2023] Processing, The CA is processing your order, please just wait. (1/30)
[Wed Sep 13 09:58:30 CST 2023] Invalid status, la688.sunway.run:Verify error:"error":{
[Wed Sep 13 09:58:30 CST 2023] Please add '--debug' or '--log' to check more details.
[Wed Sep 13 09:58:30 CST 2023] See: https://github.com/acmesh-official/acme.sh/wiki/How-to-debug-acme.sh
[Wed Sep 13 09:58:30 CST 2023] Run post hook:'~/.acme.sh/acme.sh --installcert -d la688.sunway.run --ecc --fullchain-file /etc/letsencrypt/live/la688.sunway.run/fullchain.pem --key-file /etc/letsencrypt/live/la688.sunway.run/privkey.pem --reloadcmd "systemctl start nginx"'
[Wed Sep 13 09:58:30 CST 2023] Installing key to: /etc/letsencrypt/live/la688.sunway.run/privkey.pem
[Wed Sep 13 09:58:30 CST 2023] Installing full chain to: /etc/letsencrypt/live/la688.sunway.run/fullchain.pem
cat: /root/.acme.sh/la688.sunway.run_ecc/fullchain.cer: No such file or directory
[Wed Sep 13 09:58:30 CST 2023] Error when run post hook.
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 22454  100 22454    0     0  1289k      0 --:--:-- --:--:-- --:--:-- 1289k
info: No new version. The current version of V2Ray is v5.7.0 .
Job for nginx.service failed because the control process exited with error code.
See "systemctl status nginx.service" and "journalctl -xe" for details.

安装已经完成

===========v2ray配置参数============
协议:VMess
地址:la688.sunway.run
端口:33333
UUID:15a6bb1c-25ba-4947-b446-de58a7f7c05f
加密方式:aes-128-gcm
传输协议:ws
路径:/09d5d4
底层传输:tls
注意:8080是免流端口不需要打开tls
====================================
vmess://eyJwb3J0IjozMzMzMywicHMiOiIxMDI0LXdzcyIsInRscyI6InRscyIsImlkIjoiMTVhNmJiMWMtMjViYS00OTQ3LWI0NDYtZGU1OGE3ZjdjMDVmIiwiYWlkIjowLCJ2IjoyLCJob3N0IjoibGE2LnN1bndheS5ydW4iLCJ0eXBlIjoibm9uZSIsInBhdGgiOiIvMDlkNWQ0IiwibmV0Ijoid3MiLCJhZGQiOiJsYTYuc3Vud2F5LnJ1biIsImFsbG93SW5zZWN1cmUiOjAsIm1ldGhvZCI6Im5vbmUiLCJwZWVyIjoibGE2LnN1bndheS5ydW4iLCJzbmkiOiJsYTYuc3Vud2F5LnJ1biJ9

最后这个vmess是不可用的,因为nginx都起不来了,加载不了证书

sudo 执行脚本报错

./scripts/tcp-wss.sh: 4: [[: not found
./scripts/tcp-wss.sh: 110: Syntax error: "(" unexpected

建议加个提醒,一定要通过防火墙打开相应的端口

建议加个提醒,一定要通过防火墙打开相应的端口,我是debian 11的折腾了一晚上,死活nmap检测端口一会存活,一会关闭,一会可以访问,一会就不行了,然后换了其他的脚本,都是一个样子,最后把防火墙关了就好了

建议增加自定义端口

因为此前有部分端口(443、80等)被封了,建议可以随机生成端口或让用户手动填写~

配置v2ray后443端口不能使用

配置以后ss和8080能正常使用,可是443端口无法使用,ssh到主机使用netstat命令查看端口状态,显示没有进程在监听443端口,应该如何启用443端口和tls加密功能?
mmexport1667805363148

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.