跳至主要內容
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?

4563博客

全新的繁體中文 WordPress 網站
  • 首頁
  • 用自己的小鸡搭建机场
未分類
24 11 月 2021

用自己的小鸡搭建机场

MikuP 大佬有话说 :

用自己的小鸡搭建机场

本帖最后由 MikuP 于 2021-11-24 18:11 编辑

吃灰机/祖传机太多但不舍得卖? 可以来建一个机场嘛
本教程采用 V2Board前端+第三方后端
前端搭建请参考官方教程,推荐手动搭建,因为这个自动脚本废了 (https://docs.v2board.com/deploy/aapanel.html)

搭建前端时有几个要注意的地方

aaPanel 面板 > App Store > 找到PHP 7.3点击Setting > Disabled functions 将 putenv proc_open pcntl_alarm pcntl_signal 从列表中删除。

通过SSH登录到服务器后访问站点路径如:/www/wwwroot/你的站点域名。

以下命令都需要在站点目录进行执行。

# 删除目录下文件
chattr -i .user.ini
rm -rf .htaccess 404.html index.html .user.ini

安装php-Redis扩展和 php-fileinfo扩展

在访问后台成功后,证明前端已经基本搭好
不过要在系统配置————服务端——通讯密钥里添加密钥
例子:703eff20-26d3-45e2-9834-bbcd5f3cdb3c
这个以后会用到

下面是后端搭建 例子均采用v2ray+webSocket+tls(过CDN)

1.在节点管理处点击+号,添加节点,节点地址选择已经解析好的域名,服务端口和链接端口选择443
AlterlID选择 1 TLS选择支持

如果需要审计规则,可以参考官方文档 (https://docs.v2board.com/use/node.html)

2.使用第三方后端一件脚本到节点机安装 (https://crackair.gitbook.io/xrayr-project/xrayr-xia-zai-he-an-zhuang/install/one-click)
安装好后请打开 etc/XrayR/config.yml 进行配置,以下配置仅供参考

Log:
Level: none # Log level: none, error, warning, info, debug
AccessPath: # /etc/XrayR/access.Log
ErrorPath: # /etc/XrayR/error.log
DnsConfigPath: # /etc/XrayR/dns.json # Path to dns config, check https://xtls.github.io/config/base/dns/ for help
RouteConfigPath: # /etc/XrayR/route.json # Path to route config, check https://xtls.github.io/config/base/route/ for help
OutboundConfigPath: # /etc/XrayR/custom_outbound.json # Path to custom outbound config, check https://xtls.github.io/config/base/outbound/ for help
ConnetionConfig:
Handshake: 4 # Handshake time limit, Second
ConnIdle: 30 # Connection idle time limit, Second
UplinkOnly: 2 # Time limit when the connection downstream is closed, Second
DownlinkOnly: 4 # Time limit when the connection is closed after the uplink is closed, Second
BufferSize: 64 # The internal cache size of each connection, kB
Nodes:
   –
   PanelType: "V2board" # Panel type: SSpanel, V2board
   ApiConfig:
       ApiHost: "你的站点网址:"
       ApiKey: "你的服务端通讯密钥:"
       NodeID: 节点ID
       NodeType: V2ray # Node type: V2ray, Shadowsocks, Trojan
       Timeout: 30 # Timeout for the api request
       EnableVless: false # Enable Vless for V2ray Type
       EnableXTLS: false # Enable XTLS for V2ray and Trojan
       SpeedLimit: 100 # Mbps, Local settings will replace remote settings
       DeviceLimit: 0 # Local settings will replace remote settings
   ControllerConfig:
       ListenIP: 0.0.0.0 # IP address you want to listen
       UpdatePeriodic: 10 # Time to update the nodeinfo, how many sec.
       EnableDNS: false # Use custom DNS config, Please ensure that you set the dns.json well
       CertConfig:
         CertMode: http # Option about how to get certificate: none, file, http, dns
         CertDomain: "节点端所解析的域名" # Domain to cert
         CertFile: #./cert/node1.test.com.cert # Provided if the CertMode is file
         KeyFile: #./cert/node1.test.com.pem
         Provider: cloudflare # DNS cert provider, Get the full support list here: https://go-acme.github.io/lego/dns/
         Email: [email protected]
         DNSEnv: # DNS ENV option used by DNS provider
         CLOUDFLARE_DNS_API_TOKEN: 你的API令牌,记得用编辑区域模板
更多配置需要参考后端配置文件说明

3.搭建好后输入xrayr重启服务,显示重启成功后查看前端节点列表,显示黄色即可

需要注意的几个坑
1.使用域名需要在服务端自签证书的时候需要确保防火墙放行443端口
2.在服务端部署时发现开了一会就自动关且没有日志的时候需要确认一下是否有其他的服务占用80端口
3.出现tls handshake error时,若客户端能用就不要管,不能用就等一会
4.在节点端部署服务时,建议排查一下80,443端口是否被占用

最后建议在前端根目录添加robots.txt
User-agent: *
Disallow: /

已高权限,版主请手下留情

louiejordan 大佬有话说 :

让我们来赌一赌楼主的账号多长时间会被封yc010t

sunete 大佬有话说 :

欧阳老贼还有 5 秒到达战场 :lol

游戏人生超 大佬有话说 :

这里好像 不能分享这样的入狱内容哦。

很刑 可铐 日子越来越有判头了

ghlaaa 大佬有话说 :

刑啊。

mhsl 大佬有话说 :

技术贴bdhttps://cdn.jsdelivr.net/gh/master-of-forums/master-of-forums/public/images/patch.gif

榆榆不可及 大佬有话说 :

自己用
用这个https://github.com/sprov065/soga
更简单

citywar 大佬有话说 :

本帖最后由 citywar 于 2021-11-24 15:47 编辑

全球航空交流论坛 一大批机场建设中

raingoc 大佬有话说 :

很刑 可铐 日子越来越有判头了https://cdn.jsdelivr.net/gh/master-of-forums/master-of-forums/public/images/patch.gif

asd1314s 大佬有话说 :

鸡场从入门到入狱https://cdn.jsdelivr.net/gh/master-of-forums/master-of-forums/public/images/patch.gif

LikeOracle 大佬有话说 :

绑定,很有用,感觉离进去不远了

文章導覽

上一篇文章
下一篇文章

AD

其他操作

  • 登入
  • 訂閱網站內容的資訊提供
  • 訂閱留言的資訊提供
  • WordPress.org 台灣繁體中文

51la

4563博客

全新的繁體中文 WordPress 網站
返回頂端
本站採用 WordPress 建置 | 佈景主題採用 GretaThemes 所設計的 Memory
4563博客
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?
在這裡新增小工具