Fastpanel:舒适、实用和现代的高颜值海外面板,配合xui

笔记 · 2022-10-25

面板简介:




官网:https://fastpanel.direct/

Demo:https://fastpanel.direct/demo

文档:https://fastpanel.direct/wiki/en/welcome-to-fastpanel-wik

搭建:

wget http://repo.fastpanel.direct/install_fastpanel.sh -O - | bash -

得到初始账号密码,在第一次登录时,FASTPANEL将要求获得一个许可证,为了得到许可证,需要在 https://cp.fastpanel.direct/orders 订购一个订阅,不收钱,不过需要输入一个电子邮件地址然后绑定一个服务器的IP,许可证将被发送到这个电子邮件中。

配合XUI搭建梯子:

浏览器输入:https://ip:8888 登陆面板,创建个站点供XUI伪装使用。

fastlpanel-1
fastlpanel-2
fastlpanel-3

申请SSL,设置HTTPS并保存。

fastlpanel-8
fastlpanel-9

XUI面板安装:

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

设置面板端口和账号密码

面板命令

x-ui                  # 显示管理菜单 (功能更多)
x-ui start            # 启动 x-ui 面板
x-ui stop             # 停止 x-ui 面板
x-ui restart          # 重启 x-ui 面板
x-ui status           # 查看 x-ui 状态
x-ui enable           # 设置 x-ui 开机自启
x-ui disable          # 取消 x-ui 开机自启
x-ui log              # 查看 x-ui 日志
x-ui update           # 更新 x-ui 面板
x-ui install          # 安装 x-ui 面板
x-ui uninstall        # 卸载 x-ui 面板

输入 http://IP:端口 进入面板,切换为新版本,更改面板 url 根路径。

fastlpanel-10
fastlpanel-11

添加入站,备注随意,协议:vless,端口:随意写,传输:ws,路径:随意

fastlpanel-12

反向代理:

手动设置,添加如下配置。

location ^~ /XXXX {  # panel改成自己的面板自定义路径
      proxy_pass http://127.0.0.1:XXXX/XXXX; #端口和panel记得修改
      proxy_set_header Host $host;
      proxy_set_header X-Real-IP $remote_addr;
      proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  }
 location /XXXX {   # magic改成自己的ws自定义路径
          proxy_redirect off;
          proxy_pass http://127.0.0.1:XXXX; # 端口改成自己的配置端口
          proxy_http_version 1.1;
          proxy_set_header Upgrade $http_upgrade;
          proxy_set_header Connection "upgrade";
          proxy_set_header Host $http_host;
          proxy_read_timeout 300s;
          # Show realip in access.log
          proxy_set_header X-Real-IP $remote_addr;
          proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  }

fastlpanel-13
fastlpanel-14

回到XUI面板,将入站列表导入v2rayN,端口改为443,跳过域名验证:true

fastlpanel-15

Theme Jasmine by Kent Liao