272 字
1 分钟
如何让vps通过xui面板搭建安全的v2ray服务
2022-07-01

首先需要一台vps;

命令行安装xui面板; apt update -y && apt install -y curl socat wget bash <(curl -Ls https://raw.githubusercontent.com/FranzKafkaYu/x-ui/master/install.sh)

此时后台会要求你设置相关信息,然而在通过端口进入xui,点击修改配置后,会跳出xui面板自动选择了新目录,此时再关闭的话就不能通过ip:端口来进入xui了,而是要记住xui新的目录地址; m515erqi.png 例如https://xui3.dreamlazy.site:4321/6biN/xui/setting这里我就需要加入相对应的域名来访问;

添加ssl证书增强安全性: curl https://get.acme.sh | sh ~/.acme.sh/acme.sh —register-account -m 你的邮箱 ~/.acme.sh/acme.sh —issue -d 你的域名 —standalone

这三步后会实现申请证书,注意域名要提前解析到对应的服务器ip地址; 如下; VJRchA/rgweZawZBh7wBK1d622n3x4Bz2YOgKw== -----END CERTIFICATE----- [Mon Dec 23 14:36:09 UTC 2024] Your cert is in: /root/.acme.sh/xui3.dreamlazy.site_ecc/xui3.dreamlazy.site.cer [Mon Dec 23 14:36:09 UTC 2024] Your cert key is in: /root/.acme.sh/xui3.dreamlazy.site_ecc/xui3.dreamlazy.site.key [Mon Dec 23 14:36:09 UTC 2024] The intermediate CA cert is in: /root/.acme.sh/xui3.dreamlazy.site_ecc/ca.cer [Mon Dec 23 14:36:09 UTC 2024] And the full-chain cert is in: /root/.acme.sh/xui3.dreamlazy.site_ecc/fullchain.cer

此时注意路径,要填入面板证书实现让面板https访问;

m515i7zx.png

入站列表如下设置:

m515j98c.png m515ng6v.png

如何让vps通过xui面板搭建安全的v2ray服务
https://www.sherlocklands.site/posts/v2ray/
作者
应作如是观
发布于
2022-07-01
许可协议
CC BY-NC-SA 4.0

部分信息可能已经过时

封面
示例歌曲
示例艺术家
封面
示例歌曲
示例艺术家
0:00 / 0:00
检测中...
速度

扫码添加好友

QR Code

扫码添加我的微信/QQ好友