标题:Woiden IPv6 VPS 搭 V2ray 梯子 VLESS+Websocket+TLS 模式 免费 白嫖 全程手机操作
时间:2022年04月09日
ref:https://zelikk.blogspot.com/2022/04/woiden-ipv6-vps-v2ray-vless-websocket-tls.html
后续更新:
最近因为Woiden的网络环境有一些变化,请看这里的最新更新: https://zelikk.blogspot.com/2022/08/woiden-ipv6-vps-v2ray-2022-8-1.html
---------------------
HAX 的 IPv6 VPS 大火之后,现在库存已经被抢完了。目前手里有鸡的朋友,谨慎删鸡哦。
同样一套班子,又搭了一个Woiden.id出来,机器是基于OpenVZ虚拟的NAT VPS,有共享的IPv4,独立的IPv6。
整个搭建过程和HAX差不多。准备工作有一点点不一样。一开始要关闭自带的apache2服务,最后也不需要WARP获得IPv4'网口'
前提条件:
手机能上Telegram.
手机有个翻墙工具,比如 Shadowrocket,或者 V2rayNG.
手机走数据流量有IPv6。一般来说都有。用你的手机流量访问 http://test-ipv6.com/ 测试一下。
转载注:其实电脑也可以的。
手机要有个SSH工具。
iOS可以用 Termius 图标是这个
安卓可以用 JuiceSSH (官方网站changelog)
搭建过程:
1. 创建 HAX VPS
1.1 注册Woiden账号
访问 https://woiden.id/ 点击左上角 "三" - Register
也可以直接访问 https://woiden.id/register

点击机器人的名字,发送 /getid 给机器人,就会得到你的 Telegram ID,将其填到此页面内。点击"Submit"
接收验证码,填写到页面中,输入你的Woiden账户密码。点击"Submit"
登录Woiden账户,也可以直接访问 https://woiden.id/login

输入用户名,密码,通过人机验证,点击"Submit"

1.2 创建VPS
点击 "三" - "VPS" - "Create VPS",也可以直接访问 https://woiden.id/create-vps/
数据中心随便选,操作系统推荐 Debian 11,root密码自己定一个,推荐用 https://git.io/xkcdpw 生成,VPS目的随便选,勾上一堆"我同意",再通过一下人机验证。点击 "CREATE VPS"
过几分钟去看 VPS - VPS Info,也可以直接访问 https://woiden.id/vps-info/
把你的 VPS 的 IPv6 地址记下来
2. SSH 登录 VPS
打开 Termius,进入 Host
右上角的 "+" 号,添加 Host
Hostname 填 VPS 的 IPv6 地址
Username 填 root
Password 填 root 密码 (Create VPS那一步填的密码)
点击 "Save"
点击刚刚保存的 Host
第一次登录 要同意服务器的指纹。
点击 连接好的 Host
就可以命令行操作 Woiden VPS 了。
推荐优化一下 Termius 的设置,以方便你自己使用:Termius 附加键盘设置
https://zelikk.blogspot.com/2022/03/termius-ctrl-paste.html
不作此设置也可以,不影响以下步骤,只是操作方便与否。
3. 申请Hax提供的免费域名
登录 Login (如果没有注册过, 那么请注册一个账户, 注册过程和Woiden一样的)
点击 DNS Pointing CF
也可以直接访问 https://hax.co.id/dns-pointing

CF Proxy - No
DNS Name - 数字字母组合随便弄一个
IPv6 Address - 你的VPS的IPv6地址
通过人机验证
点击 Create DNS

你申请出来的域名是这样的

如果不成功,可以把Domain Name那一栏换一下
4. 搭建 VLESS + WebSocket + TLS 模式的 V2Ray
用SSH工具登录VPS
4.1 关闭并删除 Apache2 服务
service apache2 stop
systemctl disable apache2
4.2 安装V2Ray
apt update
apt install -y curl
bash <(curl -L https://github.com/crazypeace/V2ray_VLESS_WebSocket_TLS_CaddyV2/raw/main/install.sh)
* 注意第3条命令很长,其实是一条命令。
一路上按提示输入。
域名填你刚刚申请的
问你IPv4还是IPv6输入6
其它的选项都可以回车默认
最终得到一个vless://链接。
脚本最后提示"用 WARP 创建 IPv4" 时按Ctrl+C取消

复制那个vless链接,添加到你手机的翻墙软件里面。访问google.com试试(手机使用纯数据流量, 不要开WiFi)。
--------------------
到目前为止,这个梯子只能接受IPv6访问。也就是说只有你的手机数据流量能用。如果你想给你的电脑使用,我们可以利用Cloudflare的CDN在中间作个转换。
5. 打开CDN
先删除CF Proxy为No的那条DNS

再申请一个CF Proxy为Yes的DNS,注意只有CF Proxy为Yes,DNS name与之前的保持一致。

生效IPv4的访问需要多一点时间,你可以在你的IPv4环境上ping你的域名,有解析IP地址了就可以用这个梯子了。
梯子的配置参数没有变化,可以使用安装完成时显示的vless://链接。
---------------------
完
---------------------
后记
Hax域名的CF Proxy - Yes生效可能会很久。还可能生效了一小会又失效。(电脑家宽网络环境,一会儿能打开伪装站,一会儿打不开)
Woiden的网络出口波动很大。我昨天装好连接fast.com测速只有1Mbps左右,今天一会儿只能看720p油管,一会儿又可以刚刚勉强1080p油管(缓冲区数据只有10秒左右)
---------------------
如果你的域名解析很长时间都没有在你的IPv4环境(电脑)生效。
先检查一下Cloudflare服务器上的IPv4解析是否生效了。蓝色部分换成你的域名。
curl -sH 'accept: application/dns-json' "https://cloudflare-dns.com/dns-query?name=chacuoganzao.ipv6a.my.id&type=A" | jq -r '.Answer[0].data'
如果返回了一个IPv4地址。说明Cloudflare那边已经生效了。

如果这个IPv4你在自己的网络环境可以ping通,你可以自行修改你的IPv4环境(电脑)hosts文件,添加一行。蓝色部分换成你自己的IPv4和域名。
104.21.46.211 chacuoganzao.ipv6a.my.id
你也可以试试Cloudflare的IP优选找出你能用的Cloudflare的CDN的IPv4。https://github.com/XIU2/CloudflareSpeedTest
---------------------
有时候hax和woiden的网络环境影响脚本查询本机IP地址,你确认准备工作都是正确的,但是脚本就是提示"你的域名未解析到xxxxxx"。
此时你可以带域名参数跑脚本,这样可以跳过IP地址检查。
bash <(curl -L https://github.com/crazypeace/V2ray_VLESS_WebSocket_TLS_CaddyV2/raw/main/install.sh) 你的域名 6---------------------
想在电脑上操作也不是不行。先要通过端口转发让电脑IPv4可以登录到HAX的IPv6的22端口上。目前Hax.co.id提供了端口转发,参考此文的第4步和第5步。不过有些转发机的IPv4已经被封了。目前还有可用的,不知道未来怎么样。
https://zelikk.blogspot.com/2022/02/gfw-hax-swap-ssh.html
update:
如果Hax是你的第一个VPS
IPv4环境下 Xshell 使用本地Socks5代理 + IPv4-IPv6 Gateway SSH 登录 IPv6 only VPS 服务器
https://zelikk.blogspot.com/2022/05/ipv4-xshell-socks5-gateway-ipv6-only-vps.html
youtube视频:https://youtu.be/0a1rKuTaJ3c
---------------------
没有IPv6的环境还有一个办法操作VPS,WebBase-SSH Client.

---------------------
附正常安装日志:
root@391032510woiden:~# service apache2 stop
root@391032510woiden:~# systemctl disable apache2
Synchronizing state of apache2.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install disable apache2
insserv: script bind9: service bind9 already provided!
insserv: warning: current start runlevel(s) (empty) of script `apache2' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `apache2' overrides LSB defaults (0 1 6).
insserv: script bind9: service bind9 already provided!
Removed /etc/systemd/system/multi-user.target.wants/apache2.service.
root@391032510woiden:~# root@391032510woiden:~# apt update
Get:1 http://security.debian.org/debian-security bullseye-security InRelease [44.1 kB]
Get:2 http://deb.debian.org/debian bullseye InRelease [116 kB]
Get:3 http://deb.debian.org/debian bullseye-updates InRelease [39.4 kB]
Get:4 http://security.debian.org/debian-security bullseye-security/main amd64 Packages [124 kB]
Get:5 http://security.debian.org/debian-security bullseye-security/main Translation-en [79.1 kB]
Get:6 http://deb.debian.org/debian bullseye/main amd64 Packages [8182 kB]
Get:7 http://deb.debian.org/debian bullseye/main Translation-en [6241 kB]
Get:8 http://deb.debian.org/debian bullseye/contrib amd64 Packages [50.5 kB]
Get:9 http://deb.debian.org/debian bullseye/non-free amd64 Packages [93.8 kB]
Get:10 http://deb.debian.org/debian bullseye/non-free Translation-en [91.3 kB]
Get:11 http://deb.debian.org/debian bullseye-updates/main amd64 Packages.diff/Index [6117 B]
Get:12 http://deb.debian.org/debian bullseye-updates/main Translation-en.diff/Index [3873 B]
Get:13 http://deb.debian.org/debian bullseye-updates/main amd64 Packages T-2022-03-26-2012.00-F-2021-10-26-2004.40.pdiff [1641 B]
Get:13 http://deb.debian.org/debian bullseye-updates/main amd64 Packages T-2022-03-26-2012.00-F-2021-10-26-2004.40.pdiff [1641 B]
Get:14 http://deb.debian.org/debian bullseye-updates/main Translation-en T-2021-10-26-2004.40-F-2021-10-26-2004.40.pdiff [347 B]
Get:14 http://deb.debian.org/debian bullseye-updates/main Translation-en T-2021-10-26-2004.40-F-2021-10-26-2004.40.pdiff [347 B]
Fetched 15.1 MB in 16s (948 kB/s)
Reading package lists... Done
Building dependency tree... Done
79 packages can be upgraded. Run 'apt list --upgradable' to see them.
N: Repository 'http://deb.debian.org/debian bullseye InRelease' changed its 'Version' value from '11.0' to '11.3'root@391032510woiden:~# apt install -y curl
Reading package lists... Done
Building dependency tree... Done
The following additional packages will be installed:
libcurl4
The following NEW packages will be installed:
curl
The following packages will be upgraded:
libcurl4
1 upgraded, 1 newly installed, 0 to remove and 78 not upgraded.
Need to get 608 kB of archives.
After this operation, 435 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bullseye/main amd64 libcurl4 amd64 7.74.0-1.3+deb11u1 [341 kB]
Get:2 http://deb.debian.org/debian bullseye/main amd64 curl amd64 7.74.0-1.3+deb11u1 [267 kB]
Fetched 608 kB in 0s (1663 kB/s)
(Reading database ... 28243 files and directories currently installed.)
Preparing to unpack .../libcurl4_7.74.0-1.3+deb11u1_amd64.deb ...
Unpacking libcurl4:amd64 (7.74.0-1.3+deb11u1) over (7.74.0-1.3+b1) ...
Selecting previously unselected package curl.
Preparing to unpack .../curl_7.74.0-1.3+deb11u1_amd64.deb ...
Unpacking curl (7.74.0-1.3+deb11u1) ...
Setting up libcurl4:amd64 (7.74.0-1.3+deb11u1) ...
Setting up curl (7.74.0-1.3+deb11u1) ...
Processing triggers for man-db (2.9.4-2) ...
Processing triggers for libc-bin (2.31-13) ...root@391032510woiden:~# bash <(curl -L https://github.com/crazypeace/V2ray_VLESS_WebSocket_TLS_CaddyV2/raw/main/install.sh)
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 160 100 160 0 0 220 0 --:--:-- --:--:-- --:--:-- 220
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
此脚本仅兼容于Debian 10+系统. 如果你的系统不符合,请Ctrl+C退出脚本
可以去 https://github.com/crazypeace/V2ray_VLESS_WebSocket_TLS_CaddyV2 查看脚本整体思路和关键命令, 以便针对你自己的系统做出调整.
有问题加群 https://t.me/+-wsJtBhlbQ8zMzRl
----------------------------------------------------------------
100 13455 100 13455 0 0 11599 0 0:00:01 0:00:01 --:--:-- 33721
按 Enter 回车键 继续....或按 Ctrl + C 取消.
Hit:1 http://security.debian.org/debian-security bullseye-security InRelease
Hit:2 http://deb.debian.org/debian bullseye InRelease
Hit:3 http://deb.debian.org/debian bullseye-updates InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
78 packages can be upgraded. Run 'apt list --upgradable' to see them.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
bash is already the newest version (5.1-2+b3).
curl is already the newest version (7.74.0-1.3+deb11u1).
sudo is already the newest version (1.9.5p2-3).
The following additional packages will be installed:
libjq1 libonig5
The following NEW packages will be installed:
jq libjq1 libonig5
0 upgraded, 3 newly installed, 0 to remove and 78 not upgraded.
Need to get 384 kB of archives.
After this operation, 1148 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bullseye/main amd64 libonig5 amd64 6.9.6-1.1 [185 kB]
Get:2 http://deb.debian.org/debian bullseye/main amd64 libjq1 amd64 1.6-2.1 [135 kB]
Get:3 http://deb.debian.org/debian bullseye/main amd64 jq amd64 1.6-2.1 [64.9 kB]
Fetched 384 kB in 5s (71.7 kB/s)
Selecting previously unselected package libonig5:amd64.
(Reading database ... 28250 files and directories currently installed.)
Preparing to unpack .../libonig5_6.9.6-1.1_amd64.deb ...
Unpacking libonig5:amd64 (6.9.6-1.1) ...
Selecting previously unselected package libjq1:amd64.
Preparing to unpack .../libjq1_1.6-2.1_amd64.deb ...
Unpacking libjq1:amd64 (1.6-2.1) ...
Selecting previously unselected package jq.
Preparing to unpack .../archives/jq_1.6-2.1_amd64.deb ...
Unpacking jq (1.6-2.1) ...
Setting up libonig5:amd64 (6.9.6-1.1) ...
Setting up libjq1:amd64 (1.6-2.1) ...
Setting up jq (1.6-2.1) ...
Processing triggers for man-db (2.9.4-2) ...
Processing triggers for libc-bin (2.31-13) ...
安装V2ray最新版本
----------------------------------------------------------------
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 21647 100 21647 0 0 46254 0 --:--:-- --:--:-- --:--:-- 46353
info: Installing V2Ray v4.44.0 for x86_64
Downloading V2Ray archive: https://github.com/v2fly/v2ray-core/releases/download/v4.44.0/v2ray-linux-64.zip
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 657 100 657 0 0 744 0 --:--:-- --:--:-- --:--:-- 744
100 13.2M 100 13.2M 0 0 5712k 0 0:00:02 0:00:02 --:--:-- 10.6M
Downloading verification file for V2Ray archive: https://github.com/v2fly/v2ray-core/releases/download/v4.44.0/v2ray-linux-64.zip.dgst
info: Extract the V2Ray package to /tmp/tmp.cNMTF7JoWp and prepare it for installation.
info: Systemd service files have been installed successfully!
warning: The following are the actual parameters for the v2ray service startup.
warning: Please make sure the configuration file path is correctly set.
# /etc/systemd/system/v2ray.service
[Unit]
Description=V2Ray Service
Documentation=https://www.v2fly.org/
After=network.target nss-lookup.target
[Service]
User=nobody
CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
NoNewPrivileges=true
ExecStart=/usr/local/bin/v2ray -config /usr/local/etc/v2ray/config.json
Restart=on-failure
RestartPreventExitStatus=23
[Install]
WantedBy=multi-user.target
# /etc/systemd/system/v2ray.service.d/10-donot_touch_single_conf.conf
# In case you have a good reason to do so, duplicate this file in the same directory and make your customizes there.
# Or all changes you made will be lost! # Refer: https://www.freedesktop.org/software/systemd/man/systemd.unit.html
[Service]
ExecStart=
ExecStart=/usr/local/bin/v2ray -config /usr/local/etc/v2ray/config.json
installed: /usr/local/bin/v2ray
installed: /usr/local/bin/v2ctl
installed: /usr/local/share/v2ray/geoip.dat
installed: /usr/local/share/v2ray/geosite.dat
installed: /usr/local/etc/v2ray/config.json
installed: /var/log/v2ray/
installed: /var/log/v2ray/access.log
installed: /var/log/v2ray/error.log
installed: /etc/systemd/system/v2ray.service
installed: /etc/systemd/system/[email protected]
removed: /tmp/tmp.cNMTF7JoWp
info: V2Ray v4.44.0 is installed.
You may need to execute a command to remove dependent software: apt purge curl unzip
Please execute the command: systemctl enable v2ray; systemctl start v2ray
安装CaddyV2最新版本
----------------------------------------------------------------
sudo: unable to resolve host 391032510woiden.localdomain: Name or service not known
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
debian-archive-keyring is already the newest version (2021.1.1).
The following NEW packages will be installed:
apt-transport-https debian-keyring
0 upgraded, 2 newly installed, 0 to remove and 78 not upgraded.
Need to get 31.3 MB of archives.
After this operation, 32.7 MB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bullseye/main amd64 apt-transport-https all 2.2.4 [160 kB]
Get:2 http://deb.debian.org/debian bullseye/main amd64 debian-keyring all 2021.07.26 [31.1 MB]
Fetched 31.3 MB in 2s (18.4 MB/s)
Selecting previously unselected package apt-transport-https.
(Reading database ... 28270 files and directories currently installed.)
Preparing to unpack .../apt-transport-https_2.2.4_all.deb ...
Unpacking apt-transport-https (2.2.4) ...
Selecting previously unselected package debian-keyring.
Preparing to unpack .../debian-keyring_2021.07.26_all.deb ...
Unpacking debian-keyring (2021.07.26) ...
Setting up apt-transport-https (2.2.4) ...
Setting up debian-keyring (2021.07.26) ...
sudo: unable to resolve host 391032510woiden.localdomain: Name or service not known
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
OK
sudo: unable to resolve host 391032510woiden.localdomain: Name or service not known
# Source: Caddy
# Site: https://github.com/caddyserver/caddy
# Repository: Caddy / stable
# Description: Fast, multi-platform web server with automatic HTTPS
deb https://dl.cloudsmith.io/public/caddy/stable/deb/debian any-version main
deb-src https://dl.cloudsmith.io/public/caddy/stable/deb/debian any-version main
sudo: unable to resolve host 391032510woiden.localdomain: Name or service not known
Hit:1 http://security.debian.org/debian-security bullseye-security InRelease
Hit:2 http://deb.debian.org/debian bullseye InRelease
Hit:3 http://deb.debian.org/debian bullseye-updates InRelease
Get:4 https://dl.cloudsmith.io/public/caddy/stable/deb/debian any-version InRelease [7491 B]
Get:5 https://dl.cloudsmith.io/public/caddy/stable/deb/debian any-version/main amd64 Packages [1248 B]
Fetched 8739 B in 4s (2436 B/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
78 packages can be upgraded. Run 'apt list --upgradable' to see them.
sudo: unable to resolve host 391032510woiden.localdomain: Name or service not known
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
caddy
0 upgraded, 1 newly installed, 0 to remove and 78 not upgraded.
Need to get 11.7 MB of archives.
After this operation, 34.0 MB of additional disk space will be used.
Get:1 https://dl.cloudsmith.io/public/caddy/stable/deb/debian any-version/main amd64 caddy amd64 2.4.6 [11.7 MB]
Fetched 11.7 MB in 3s (4572 kB/s)
Selecting previously unselected package caddy.
(Reading database ... 28284 files and directories currently installed.)
Preparing to unpack .../archives/caddy_2.4.6_amd64.deb ...
Unpacking caddy (2.4.6) ...
Setting up caddy (2.4.6) ...
Created symlink /etc/systemd/system/multi-user.target.wants/caddy.service → /lib/systemd/system/caddy.service.
打开BBR
----------------------------------------------------------------
配置 VLESS_WebSocket_TLS 模式
----------------------------------------------------------------
请输入 V2RayID
(默认ID: 4520d087-c4df-4af9-b17d-204a5189dc85):
V2RayID = 4520d087-c4df-4af9-b17d-204a5189dc85
----------------------------------------------------------------
请输入 V2Ray 端口 [1-65535], 不能选择 80 或 443 端口
(默认端口: 28441):
V2Ray 端口 = 28441
----------------------------------------------------------------
请输入一个 正确的域名 Input your domain
(例如: mydomain.com): erzhanlarou.ipv6a.my.id
你的域名 = erzhanlarou.ipv6a.my.id
----------------------------------------------------------------
如果你的小鸡是双栈(同时有IPv4和IPv6的IP),请选择你把v2ray搭在哪个'网口'上
如果你不懂这段话是什么意思, 请直接回车
Input 4 for IPv4, 6 for IPv6: 6
请将 erzhanlarou.ipv6a.my.id 解析到: 2001:bc8:2146:300:1235:1235:1446:1
Resolve erzhanlarou.ipv6a.my.id to: 2001:bc8:2146:300:1235:1235:1446:1
请将 erzhanlarou.ipv6a.my.id 解析到: 2001:bc8:2146:300:1235:1235:1446:1
----------------------------------------------------------------
(是否已经正确解析: [Y]): Is resolution correct?y
域名解析 = 我确定已经有解析了
----------------------------------------------------------------
请输入想要 用来分流的路径 , 例如 /v2raypath , 那么只需要输入 v2raypath 即可
(默认: [204a5189dc85]):
分流的路径 = /204a5189dc85
----------------------------------------------------------------
请输入 一个正确的 网址 用来作为 网站的伪装 , 例如 https://zelikk.blogspot.com
(默认: [https://zelikk.blogspot.com]):
伪装的网址 = https://zelikk.blogspot.com
----------------------------------------------------------------
配置 /usr/local/etc/v2ray/config.json
----------------------------------------------------------------
配置 /etc/caddy/Caddyfile
----------------------------------------------------------------
重启 V2Ray
----------------------------------------------------------------
重启 CaddyV2
----------------------------------------------------------------
---------- V2Ray 配置信息 -------------
---提示..这是 VLESS 服务器配置---
地址 (Address) = erzhanlarou.ipv6a.my.id
端口 (Port) = 443
用户ID (User ID / UUID) = 4520d087-c4df-4af9-b17d-204a5189dc85
流控 (Flow) = 空
加密 (Encryption) = none
传输协议 (Network) = ws
伪装类型 (header type) = none
伪装域名 (host) = erzhanlarou.ipv6a.my.id
路径 (path) = /204a5189dc85
底层传输安全 (TLS) = tls
---------- V2Ray VLESS URL ----------
vless://[email protected]:443?encryption=none&security=tls&type=ws&host=erzhanlarou.ipv6a.my.id&path=204a5189dc85#VLESS_WSS_erzhanlarou.ipv6a.my.id
---------- END -------------
这是一个 IPv6 小鸡,用 WARP 创建 IPv4
----------------------------------------------------------------
按 Enter 回车键 继续....或按 Ctrl + C 取消. 




