有没有老哥有hostlc论坛账号的帮忙看个帖子

https://www.hostloc.com/forum.php?mod=viewthread&tid=611481&highlight=tls
帖子内容是给你们来点弄货:宝塔BT面板+V2Ray:实现Websocket+TLS+Nginx分流
想试下怎么做无奈帖子看不了。谢谢了
2楼:不太懂这个

有没有老哥有hostlc论坛账号的帮忙看个帖子

https://www.hostloc.com/forum.php?mod=viewthread&tid=611481&highlight=tls

帖子内容是给你们来点弄货:宝塔BT面板+V2Ray:实现Websocket+TLS+Nginx分流

想试下怎么做无奈帖子看不了。谢谢了

2楼:不太懂这个,路过顶!d=====( ̄▽ ̄*)b 下

3楼:https://www.cnblogs.com/bndong/p/11763377.html推荐你看看cnblog

4楼:参考资料:

https://injoy.work/archives/ed4e432a.html

https://www.hostloc.com/thread43208211.html

安装V2Ray

SSH连接上远程VPS后,下载安装脚本:

wget https://install.direct/go.sh

然后执行脚本安装V2Ray:

sudo bash go.sh

在安装完V2Ray之后,修改配置文件重启V2Ray即可,配置文件路径为/etc/v2ray/config.json

以下是V2Ray可使用的命令:

sudo service v2ray start #启动V2Ray

sudo service v2ray stop #停止运行V2Ray

sudo service v2ray restart #重启V2Ray

sudo service v2ray status #查看V2Ray状态

安装宝塔BT面板(省略)

登录BT面板后,可一键部署源码,选择安装LNMP环境;

一切都安装完后,点击「网站」——「添加站点」

成功添加完站点后,点击「设置」——SSL——Let’s Encrypt,成功申请SSL后,保存

再点击站点「设置」的「配置文件」选项,在最后一个}前添加如下代码:

================================

location /你的伪装路径 {

proxy_redirect off;

proxy_pass http://127.0.0.1:你的端口;#这个端口不能是80和443,这是本地jian ting端口

proxy_http_version 1.1;

proxy_set_header Upgrade $http_upgrade;

proxy_set_header Connection “upgrade”;

proxy_set_header Host $http_host;

}

===================================

回到「首页」,重启「Nignx服务」

BT面板「安全」,防火墙端口放行,新增你的V2Ray端口

修改V2Ray配置文件

打开面板「文件」,在路径中输入/etc/v2ray,编辑一下文件,并保存

========================================

{

“log” : {

“access”: “/var/log/v2ray/access.log”,

“error”: “/var/log/v2ray/error.log”,

“loglevel”: “warning”

},

“inbound”: {

“port”: 你的端口, #自动生成的端口,须与Nignx设置的相一致,可自定义

“protocol”: “vmess”,

“settings”: {

“clients”: [

{

“id”: “b25e537031004bbab1080367e1239efb”, #自动生成的UUID

“level”: 1,

“alterId”: 64

}

]

},

“streamSettings”: {

“network”:”ws”,

“wsSettings”: {

“path”: “/你的伪装路径”, #path可自定义,这里是/ws,须与Nginx和客户端的path相一致

“headers”: {

“Host”: “你的域名” #Host可自定于任意域名,此处没有添加

}

}

}

},

“outbound”: {

“protocol”: “freedom”,

“settings”: {}

},

“outboundDetour”: [

{

“protocol”: “blackhole”,

“settings”: {},

“tag”: “blocked”

}

],

“routing”: {

“strategy”: “rules”,

“settings”: {

“rules”: [

{

“type”: “field”,

“ip”: [

“0.0.0.0/8”,

“10.0.0.0/8”,

“100.64.0.0/10”,

“127.0.0.0/8”,

“169.254.0.0/16”,

“172.16.0.0/12”,

“192.0.0.0/24”,

“192.0.2.0/24”,

“192.168.0.0/16”,

“198.18.0.0/15”,

“198.51.100.0/24”,

“203.0.113.0/24”,

“::1/128”,

“fc00::/7”,

“fe80::/10”

],

“outboundTag”: “blocked”

}

]

}

}

}

========================================

service v2ray restart #重启V2Ray服务

service v2ray status #查看v2ray是否运行

配置客户端:

========================================

确保你按上述安装好,并且无错误

然后客户端大概就是

你的域名

443

uuid密码

ID:64

ws

伪装类型默认none

伪装域名就是你域名

然后底层tls

path就是上述配置文件中的伪装路径

========================================

下期放出 ssv2ray擦件+宝塔wstlswebnginx

https://www.hostloc.com/forum.ph … age=1&mobile=no

5楼:帮你复制过来了

后面跟帖的还有其他方案

1楼:太麻烦了,直接caddy+v2ray+ws+tls

2楼:V2+ws+tls 速度不如正常酸酸的一半。更别提加了cf的。 用着太难受了

6楼:谢谢老哥了。

我谷歌也搜了些,想看下哪个教程详细点。

https://liubing.me/v2raywebsock … bandwagonhost.html

这个也挺详细的。

7楼:hostloc确实难注册 紫薯布丁

8楼:本帖最后由 我有我奥妙 于 2019125 21:36 编辑

7楼1方案一键脚本:

https://github.com/dylanbai8/Onekey_Caddy_PHP7_Sqlite3宝塔的话5楼给的很详细了

9楼:看看是不是这个 https://888777.xyz/vpstalk/47041.html

(0)

相关推荐