x-ui最稳妥的魔术面板

最后编辑时间: 2023-11-03

最近经常有人被封端口,我自己搭的这个方案没被封过,现在分享出来。

系统:Debian10-11

首先要确保自己的vps是纯净的系统,不要商家预装的,在系统启动后操作DD重装脚本进行安装纯净版系统

第一步:DD重装Debian10系统:

wget -N --no-check-certificate https://raw.githubusercontent.com/qingee/dd/master/InstallNET.sh && chmod +x InstallNET.sh && ./InstallNET.sh -d 10 -v 64 -p "notetoday" -port "22"

系统root密码:notetoday
更改root密码:passwd 或者 passwd root输入你想要设置的密码即可,在ssh命令窗口输入密码不显示是正常

第二步:安装WARP接管VPS的出站ip(加入香港节点WireGuard异常:可以去Github

apt update
apt install curl -y
apt install gnupg2 -y
apt install wget -y
# 自动配置 WARP WireGuard IPv4 网络
bash <(curl -fsSL git.io/warp.sh) 4
echo "1" > /proc/sys/net/ipv6/conf/all/disable_ipv6
这个配置后你vps向外请求的所有ip都不是本机的真实ip,速度可能会有所影响,但是会很安全

第三步: 安装适用于流媒体的XanMod内核开启BBR2(FQ+PIE):

1. Register the PGP key:

wget -qO - https://dl.xanmod.org/archive.key | sudo gpg --dearmor -o /usr/share/keyrings/xanmod-archive-keyring.gpg

2. Add the repository:

echo 'deb [signed-by=/usr/share/keyrings/xanmod-archive-keyring.gpg] http://deb.xanmod.org releases main' | sudo tee /etc/apt/sources.list.d/xanmod-release.list

3. Then update and install:     Check platform compatibility in x86-64 psABI level reference below.

sudo apt update && sudo apt install linux-xanmod-x64v3

4. Reboot.

执行完命令代码后等待系统重启,重启完成后执行以下脚本开启BBR2

bash <(curl -Lso- https://git.io/kernel.sh)

2022-10-22T05:09:28.png
2022-10-22T05:13:42.png
2022-10-22T05:15:10.png
再次运行上面的代码,查看参数是否和下图一样,如果是一样的就是开启成功了
2022-10-22T05:17:17.png 

第四步:安装x-ui面板

 

PS:安装VPS开源MW控制面板(要装就装,不装也没事)

使用这套配置操作,所有IP 都是CDNip


curl -fsSL https://gcore.jsdelivr.net/gh/midoks/mdserver-web@latest/scripts/install.sh | bash
curl -fsSL  https://raw.githubusercontent.com/midoks/mdserver-web/dev/scripts/update_dev.sh | bash

2022-10-22T05:25:00.png
记住控制面板的信息登录上去后在安全里关闭防火墙

或者海外宝塔:https://www.aapanel.com/new/download.html 


  1. mapeyau
    2023-03-11 18:45:32

    创建证书失败,提示:please install 'idn' command first

  2. 5656
    2023-02-18 18:40:29

    Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(icon_cool.gif).

  3. Redamancy
    2023-02-15 13:49:40

    wget -N --no-check-certificate https://raw.githubusercontent.com/qingee/dd/master/InstallNET.sh && chmod +x InstallNET.sh && ./InstallNET.sh -d 10 -v 64 -p "notetoday" -port "22"
    --2023-02-15 13:48:27-- https://raw.githubusercontent.com/qingee/dd/master/InstallNET.sh
    正在解析主机 raw.githubusercontent.com (raw.githubusercontent.com)... 0.0.0.0, ::
    正在连接 raw.githubusercontent.com (raw.githubusercontent.com)|0.0.0.0|:443... 失败:拒绝连接。
    正在连接 raw.githubusercontent.com (raw.githubusercontent.com)|:icon_neutral.gif:443... 失败:拒绝连接。

  4. Redamancy
    2023-02-15 09:59:33

    运行这句话,bash

    1. 黑海洋
      2023-02-15 15:47:54

      国内服务器得换github源

  5. 54
    2023-01-26 13:10:08

    为什么只有443挂域名有网,其他端口挂域名通通没网了

  6. look
    2023-01-15 16:47:45

    申请证书失败 报错

  7. beautyfool
    2023-01-13 17:53:40

    请教大神:我按照x-ui面板申请了证书,但无法使用浏览器登录加密面板,后重新重置了面板,但在文件夹cert里找不到证书,后续就无法进行下一步。请大神看看该怎么解决?

    1. oakl
      2023-01-14 12:52:45

      你按照他这个来的话,开启了cloudflare的小云朵就只能用ip加端口号登录,不能加密登录。重置面板的之后要重新申请证书,证书在/root/cert里面

      1. 黑海洋
        2023-01-14 12:55:42

        按照这个办法 是不能开启小云朵的,WARP已经接管VPS的出站ip

请在下方留下您的评论.加入TG吹水群