Woiden Hax-OpenVZ VPS 跑 GitHub 脚本报错 port 443: Connection timed out
Hax / Woiden
在
curl: (28) Failed to connect to api.github.com port 443: Connection timed out
解决方案:
打开
WARP
跑
具体过程
打开 TUN 模式
https://woiden.id/vps-control
可以重启一下,确保
准备工作
分别执行
apt update
apt install -y curl screen
screen
WARP 安装 IPv4 出站 并设置 /etc/wireguard/wgcf.conf 使得共享 IPv4 的 SSH 端口继续可用
bash <(curl -L https://github.crazypeace.workers.dev/https://raw.githubusercontent.com/crazypeace/warp.sh/main/warp.sh) 4 && bash <(curl -L https://github.crazypeace.workers.dev/https://raw.githubusercontent.com/crazypeace/warp.sh/main/wgcf_postup_postdown.sh)
* 这是一行命令。对,非常长。
跑 GitHub 脚本
执行你想做的。比如
bash <(curl -L https://github.com/crazypeace/V2ray_VLESS_WebSocket_TLS_CaddyV2/raw/main/install.sh)
========
后记
如果你在跑脚本时遇到下面这个
ERROR: (wgcf) 2022/09/15 07:18:35 Failed to create TUN device: operation not permitted
说明你的
如果你在安装 WARP 时,老是卡在下面这一步
[INFO] Starting WireGuard...
Created symlink /etc/systemd/system/multi-user.target.wants/wg-quick@wgcf.service → /lib/systemd/system/wg-quick@.service.
------
如果你是在 Hax-OpenVZ 环境下
先设置
echo -e "nameserver 2001:67c:2b0::4\nnameserver 2001:67c:2b0::6" > /etc/resolv.conf
然后记得打开
然后跑
bash <(curl -L https://github.crazypeace.workers.dev/https://raw.githubusercontent.com/crazypeace/warp.sh/main/warp.sh) 4
------
如果上面都弄好了还是不行,可以试试设置 IPv4 优先
bash <(curl -L https://raw.githubusercontent.com/crazypeace/warp.sh/main/ipv4v6.sh) 4
------
如果遇到报错 wgcf 安装不成功,获取不到 warp 的配置
那么你可以试一下
https://github.com/fscarmen/warp#warp-go-%E8%BF%90%E8%A1%8C%E8%84%9A%E6%9C%AC
bash <( cur -L https://raw.githubusercontent.com/fscarmen/warp/main/warp-go.sh) 4
如果报错访问
命令行直接开 TUN
https://zelikk.blogspot.com/2023/02/hax-woiden-ipv6-only-vps-tun-warp.html