2024年2月27日星期二

【低价VPS】AC云,纯IPV6 VPS搭建Vless节点,使用 Cloudflare Worker 将流量从域名代理到不同端口,解锁ChatGPT、流媒体,使用优选域名,4k视频高速流畅

 


前期准备:

注册链接


ssh连接工具


地址生成器


worker.js脚本


  1. addEventListener('fetch', event => {  
  2.   
  3.   event.respondWith(handleRequest(event.request))  
  4.   
  5. })  
  6.   
  7.   
  8.   
  9. async function handleRequest(request) {  
  10.   
  11.   const url = new URL(request.url)  
  12.   
  13.   const newUrl = new URL('http://域名:端口')  
  14.   
  15.   newUrl.pathname = url.pathname  
  16.   
  17.   newUrl.search = url.search  
  18.   
  19.   
  20.   
  21.   return fetch(newUrl, request)  
  22.   
  23.   
  24. }  


优选IP程序下载

(访问密码: 9054)












搭建Vless节点步骤:

1、更新软件包


##CentOS 命令

yum update -y 

yum install curl wget -y


##Debian / Ubuntu 命令

apt update -y 

apt install curl wget -y


2、安装X-UI


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


3、搭建两个worker,将流量从域名代理到不同端口












worker创建好后,再创建触发器







4、访问x-ui面板,然后在 

入站列表>添加入站














创建完节点后,V2ray 扫码导入,然后修改















5、优选IP

















没有评论:

发表评论