Giter Club home page Giter Club logo

dns's Introduction

科学上网:VPS 搭建 X-ui 面板,用 DNS 申请 SSL 证书

使用 X-ui 搭建代理服务,具有以下优点:

  • 支持系统状态监控:如 CPU、内存、硬盘等状态
  • 支持多用户多协议,网页可视化操作
  • 支持流量统计
  • 支持自定义 Xray 配置模板
  • 支持HTTPS访问面板
  • 支持面板自定义端口,账号与密码
  • 快速生成分享连接或二维码
  • 支持 CDN 套用
  • 支持 Fallback 分流设置

与本期视频相关教程

本期合作 VPS 六六云:https://bit.ly/3hBENuF

域名注册教程:https://youtu.be/2uJQdWpM46k

Cloudflare 接管域名教程:https://youtu.be/1GtDTWybJNM

X-ui 搭建教程一:https://youtu.be/n5koU-pj094

准备工作

  • 1、域名一个,托管到 Cloudflare (方法见上)

  • 2、VPS 一台,例如:Debian/Ubuntu/CentOS

  • 3、下载并安装 FinalShell SSH 工具

Windows 版本下载地址: http://www.hostbuf.com/downloads/finalshell_install.exe

MacOS 版本下载地址: http://www.hostbuf.com/downloads/finalshell_install.pkg

更新安装系统

下面环境的安装方式,大家根据自己的系统选择命令安装就好了。

1、Debian/Ubuntu 系统执行以下命令:

apt update -y         
apt install -y curl    
apt install -y socat    

2、CentOS 系统执行以下命令:

yum update -y         
yum install -y curl   
yum install -y socat   

安装 BBR 加速

本脚本建议在Debian≥9或是CentOS≥8以上的系统中使用

wget -N --no-check-certificate "https://raw.githubusercontent.com/chiakge/Linux-NetSpeed/master/tcp.sh" && chmod +x tcp.sh && ./tcp.sh

一键安装面板

bash <(curl -Ls https://raw.githubusercontent.com/vaxilu/x-ui/master/install.sh)

完成 X-ui 安装以后,我们可以输入 VPS IP:端口(如1.1.1.1:12345) 登录 X-ui 的管理面板(可以登录代表安装成功,登录不了请放行端口。)

放行端口指令

放行443端口:

iptables -I INPUT -p tcp --dport 443 -j ACCEPT

放行54321端口:

iptables -I INPUT -p tcp --dport 54321 -j ACCEPT

申请 SSL 的证书

输入命令 x-ui ,进入 X-ui 的命令菜单 选择 16,申请 SSL 的证书。(申请需要有 Cloudflare API ,可以 观看视频 获取 API)

申请的时候是申请的泛域名证书,所以,填写域名的时候,只填入 域 也就好了,例如 xxx.com 的格式。

申请成功以后,证书和密钥文件在 VPS 目录的 /root/cert 文件夹里面

x-ui 管理面板设置

添加证书和密钥路径,重启面板 通过域名访问x-ui 管理面板:https://域名:54321

添加科学上网节点

这一步扩展性很强,大家可以根据自己的需求设置相关的节点规则。

关于x-ui节点电脑V2ray能连接上,扫描导入手机V2rayNG连接不了?

在 X-ui面板设置中,“面板证书公钥文件路径”,不要用带自己域名的证书,输入 /root/cert/fullchain.cer (这是标准的CA证书集的文件之一)的路径。然后重启面板。在创建的节点时候,公钥文件路径同样填入 /root/cert/fullchain.cer 。 这样设置之后,解决了问题: io read/write on closed pipe


这种 Xray 可视化管理面板 的方式,也是支持伪装网站以及多网站并存的,包括支持宝塔面板的搭建方式。

dns's People

Contributors

kejixiaolu 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

Watchers

 avatar

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.