第八节:节点免费提速方案(bbr拥塞控制优化链路速度)
时间:2023-09-30 阅读:56
(文章与视频转自:不良林)
这是节点搭建系列的最后一节,给大家讲讲不花钱的免费提升节点速度的方案,主要给大家介绍套用cloudflare提供的免费CDN以及BBR拥塞控制算法,并且通过配合x-ui面板实现vless+ws+tls+web+cdn的节点搭建
x-ui面板:https://github.com/vaxilu/x-ui
CF优选IP:https://github.com/XIU2/CloudflareSpeedTest
CF官网:https://cloudflare.com
CF-CDN-IP段:https://www.cloudflare.com/zh-cn/ips/
# 安装nginx: apt install nginx # 配置nginx: vim /etc/nginx/nginx.conf # 重新加载nginx配置: systemctl reload nginx.service
nginx配置:
user www-data; worker_processes auto; pid /run/nginx.pid; include /etc/nginx/modules-enabled/*.conf; events { worker_connections 768; } http { server { listen 80 default_server; listen [::]:80 default_server; ssl_protocols TLSv1.2 TLSv1.3; ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384; ssl_prefer_server_ciphers off; location / { proxy_pass https://www.bing.com; #伪装网址 proxy_ssl_server_name on; proxy_redirect off; sub_filter_once off; sub_filter "www.bing.com" $server_name; proxy_set_header Host "www.bing.com"; proxy_set_header Referer $http_referer; proxy_set_header X-Real-IP $remote_addr; proxy_set_header User-Agent $http_user_agent; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto https; proxy_set_header Accept-Encoding ""; proxy_set_header Accept-Language "zh-CN"; } location /ray { proxy_redirect off; proxy_pass http://127.0.0.1:8388; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; 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 /xui { proxy_redirect off; proxy_pass http://127.0.0.1:9999; proxy_http_version 1.1; proxy_set_header Host $host; } } }
拥塞控制:
#查询当前使用的 TCP 拥塞控制算法 sysctl net.ipv4.tcp_congestion_control #查询当前Linux版本 uname -r #启用BBR TCP拥塞控制算法 echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf sysctl -p
视频时间线:
00:00 前言
01:07 使用x-ui搭建vless+ws
04:18 CDN的原理
07:14 CDN竟然是减速器?
08:35 套用cloudflare免费CDN
11:50 利用CDN翻墙的原理
14:50 手动更换CDN服务器
18:21 CDN优选IP原理与使用
21:34 套用CDN之后TLS、回源相关知识
26:00 搭建vless+ws+tls+web+cdn
31:40 TCP拥塞控制的原理
37:43 启用BBR拥塞控制算法
39:43 hysteria提速垃圾线路原理
41:55 完结撒花、感谢大家
网友评论