现在还能继续翻墙吗?2026年最新科学上网自建节点搭建教程!VLESS+Reality,线路优化实测 YouTube 4K,V2RayN与Clash使用全流程!
一、准备工作
1、VPS一台重置好 Debian 系统
2、下载 FinalShell SSH 工具
windows 下载:
https://dl.hostbuf.com/finalshell3/finalshell_windows_x64.exe
MacOS M芯片下载:
https://dl.hostbuf.com/finalshell3/finalshell_macos_arm64.pkg
MacOS intel 芯片下载:
https://dl.hostbuf.com/finalshell3/finalshell_macos_x64.pkg
3、本期视频用到的VPS官网:【点此进入】
二、Debian / Ubuntu 安装 sudo curl
apt update && apt install -y sudo curl
CentOS 安装 sudo curl
yum install -y sudo curl
三、关闭防火墙
Debian / Ubuntu / CentOS 关闭防火墙命令
sudo bash -c "systemctl stop ufw firewalld nftables 2>/dev/null; systemctl disable ufw firewalld nftables 2>/dev/null; ufw disable 2>/dev/null; nft flush ruleset 2>/dev/null; iptables -P INPUT ACCEPT 2>/dev/null; iptables -P FORWARD ACCEPT 2>/dev/null; iptables -P OUTPUT ACCEPT 2>/dev/null; iptables -F 2>/dev/null; iptables -X 2>/dev/null; ip6tables -P INPUT ACCEPT 2>/dev/null; ip6tables -P FORWARD ACCEPT 2>/dev/null; ip6tables -P OUTPUT ACCEPT 2>/dev/null; ip6tables -F 2>/dev/null; ip6tables -X 2>/dev/null; echo -e '\n✅ 成功:各大常见防火墙均已关闭,且所有拦截规则已清空放行!'"
Debian / Ubuntu / CentOS 检查防火墙是否关闭
sudo bash -c "echo -e '\n🔍 防火墙状态巡检:'; echo -n 'UFW状态: '; ufw status 2>/dev/null | head -n1 || echo '未安装/找不到'; echo -n 'Firewalld服务: '; systemctl is-active firewalld 2>/dev/null || echo '未运行/未安装'; echo -n 'Nftables服务: '; systemctl is-active nftables 2>/dev/null || echo '未运行/未安装'; echo 'Iptables默认策略:'; iptables -L | grep -E 'Chain (INPUT|FORWARD|OUTPUT)' | awk '{print $1,$2,$3,$4}' 2>/dev/null; echo -e '-------------------\n✅ 如果上面显示 inactive、未运行,且 Iptables 都是 ACCEPT,则防火墙已彻底关闭!\n'"
PS:如果关闭防火墙失败请执行下方两种方法,任选其一关闭防火墙即可,如执行上述命令没有问题则无需执行下方两种方法!
方法一 Debian 系统关闭防火墙命令
sudo ufw disable
方法二 Debian / Ubuntu / CentOS 通用命令
bash <(curl -fsSL https://raw.githubusercontent.com/V2RaySSR/OneKey/main/disable_firewall.sh)
四、安装 BBR 拥赛控制算法
Debian / Ubuntu / CentOS 推荐脚本
wget -N --no-check-certificate "https://raw.githubusercontent.com/chiakge/Linux-NetSpeed/master/tcp.sh" && chmod +x tcp.sh && ./tcp.sh
五、安装 3x-ui 面板
bash <(curl -Ls https://raw.githubusercontent.com/mhsanaei/3x-ui/master/install.sh)
六、VPS 流媒体与 AI 解锁测试
bash <(curl -sL IP.Check.Place)