v2ray icon indicating copy to clipboard operation
v2ray copied to clipboard

回国VPN搭建出现问题

Open Jas0n0ss opened this issue 10 months ago • 4 comments

我目前国外,国内某云平台买了一台VPS,在其上面同理搭建VPN,已实现IP回国目的,我在VPS上运行脚本老是报错如下

........... Xray script by 233boy ..........

11:51:04) 开始安装...
11:51:04) 下载 Xray > https://github.com/xtls/xray-core/releases/latest/download/xray-linux-64.zip
11:51:04) 下载 Xray 脚本 > https://github.com/233boy/xray/releases/latest/download/code.zip
11:53:25) 获取服务器 IP 失败.
11:53:25) 哦豁..
11:53:25) 安装过程出现错误...
反馈问题) https://github.com/233boy/xray/issues

Jas0n0ss avatar Mar 02 '25 04:03 Jas0n0ss

看了一下获取公网IP的这段,似乎是这里除了问题:

get_ip() {
    export "$(_wget -4 -qO- https://one.one.one.one/cdn-cgi/trace | grep ip=)" &>/dev/null
    [[ -z $ip ]] && export "$(_wget -6 -qO- https://one.one.one.one/cdn-cgi/trace | grep ip=)" &>/dev/null
}

修改后的依然有问题,麻烦大佬看下

get_ip() {
    ip=$(curl -s https://ip.msfts.org/plain)
    [[ -z $ip ]] && {
        msg err "获取服务器 IP 失败."
        exit_and_del_tmpdir
    }
    export ip
}

Jas0n0ss avatar Mar 02 '25 04:03 Jas0n0ss

不要在国内安装

233boy avatar Mar 02 '25 13:03 233boy

不要在国内安装

我也是同样在国内的vps,搭建回国线,输入:bash <(wget -qO- -o- https://git.io/v2ray.sh)后没有任何反应,请问该怎么解决呢?

lzr5410 avatar Jun 01 '25 09:06 lzr5410

不要在国内安装

我也是同样在国内的vps,搭建回国线,输入:bash <(wget -qO- -o- https://git.io/v2ray.sh)后没有任何反应,请问该怎么解决呢?%E5%90%8E%E6%B2%A1%E6%9C%89%E4%BB%BB%E4%BD%95%E5%8F%8D%E5%BA%94%EF%BC%8C%E8%AF%B7%E9%97%AE%E8%AF%A5%E6%80%8E%E4%B9%88%E8%A7%A3%E5%86%B3%E5%91%A2%EF%BC%9F)

不要在国内安装此脚本!

233boy avatar Jun 01 '25 13:06 233boy