无限江山

Linux VPS 常用翻墙协议一键搭建脚本

Linux VPS 常用翻墙协议一键搭建脚本
2025-12-10 · 4 min read
Linux

Linux 更新及应用安装 命令

apt-get update && apt-get upgrade   # Debian 更新
apt-get install curl                # Debian 安装 curl
apt-get install wget                # Debian 安装 wget

yum update                          # CentOS 更新
yum install curl                    # CentOS 安装 curl
yum install wget                    # CentOS 安装 wget
yum install xz                      # CentOS 安装 XZ 压缩工具

LinuxMirrors 一键换源

LinuxMirrors:https://linuxmirrors.cn

bash <(curl -sSL https://linuxmirrors.cn/main.sh)

Linux 开启原版BBR

echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf
sysctl -p
lsmod | grep bbr

Speedtest Cli

apt-get install curl && curl -s https://packagecloud.io/install/repositories/ookla/speedtest-cli/script.deb.sh | bash && apt-get install speedtest && speedtest

融合怪测评脚本

curl -L https://gitlab.com/spiritysdx/za/-/raw/main/ecs.sh -o ecs.sh && chmod +x ecs.sh && bash ecs.sh

curl -L https://github.com/spiritLHLS/ecs/raw/main/ecs.sh -o ecs.sh && chmod +x ecs.sh && bash ecs.sh

bash <(wget -qO- bash.spiritlhl.net/ecs)

科技Lion的Shell脚本工具

科技Lion的Shell脚本工具:https://kejilion.sh/index-zh-CN.html

bash <(curl -sL kejilion.sh)

Netflix 解锁检测脚本

bash <(curl -L -s check.unlock.media)

bash <(curl -L -s check.unlock.media) -M 4 # 只检测 IPv4 结果

bash <(curl -L -s check.unlock.media) -M 6 # 只检测 IPv6 结果

bash <(curl -L -s check.unlock.media) -I eth0 # 指定检测的网卡名称

wget -O nf https://github.com/sjlleo/netflix-verify/releases/download/v3.1.0/nf_linux_amd64 && chmod +x nf && ./nf

三网回程脚本

curl https://raw.githubusercontent.com/zhucaidan/mtr_trace/main/mtr_trace.sh|bash  # 检测回程脚本

wget -O jcnf.sh https://raw.githubusercontent.com/Netflixxp/jcnfbesttrace/main/jcnf.sh && bash jcnf.sh

V2ray 一键安装脚本

v2ray-agent

wget -P /root -N --no-check-certificate "https://raw.githubusercontent.com/mack-a/v2ray-agent/master/install.sh" && chmod 700 /root/install.sh && /root/install.sh

vasma

233V2ray

bash <(wget -qO- -o- https://git.io/v2ray.sh)

X-UI

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

3X-UI

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

Alpine linux X-UI

apk add curl&&apk add bash && bash <(curl -Ls https://raw.githubusercontent.com/Lynn-Becky/Alpine-x-ui/main/alpine-xui.sh) ## 安装&升级

/etc/init.d/x-ui restart ## 重启面板

H UI

bash <(curl -fsSL https://raw.githubusercontent.com/jonssonyan/h-ui/main/install.sh)

Warp VPN 一键脚本

#菜单
bash <(curl -fsSL git.io/warp.sh) menu

# 自动配置 WARP WireGuard 双栈全局网络(所有出站流量走 WARP 网络)
bash <(curl -fsSL git.io/warp.sh) d

# 自动配置 WARP WireGuard IPv4 网络(IPv4 出站流量走 WARP 网络)
bash <(curl -fsSL git.io/warp.sh) 4

# 自动配置 WARP WireGuard IPv6 网络(IPv6 出站流量走 WARP 网络)
bash <(curl -fsSL git.io/warp.sh) 6

# 查看 WARP 脚本子命令列表
bash <(curl -fsSL git.io/warp.sh) help

# 重启 WARP WireGuard 网络接口
systemctl restart wg-quick@wgcf

# 禁用 WARP WireGuard 网络接口
systemctl disable wg-quick@wgcf --now