第一次翻墙? 如何搭建你的第一个V2Ray梯子 【保姆级教程】
第一次翻墙? 如何搭建你的第一个V2Ray梯子 【保姆级教程】
具体流程
1. 购买 VPS
便宜的小鸡一
如果你仅用于自用翻墙梯子,512MB
如果你还想多玩几个花样,比如,你自己的博客
2. 申请域名
试试 申请
还可以试试 申请免费.dev .app域名
3. SSH 终端工具
4. 搭建梯子
5. 翻墙客户端
Windows V2RayN (GitHub)
iOS Shadowrocket (App Store)
Android V2RayNG (APKMirror)
操作过程:
* 以下描述
0. 用 SSH 终端工具登录你的 VPS
Xshell 入门使用说明
00. 下载翻墙客户端
Windows V2RayN 官方下载位置 https://github.com/2dust/v2rayN/releases/latest 选择 v2rayN-Core.zip
如果 GitHub 被墙,需要在墙内搜索安装文件。如果担心墙内的文件不安全,我们可以用
在
wget https://github.com/2dust/v2rayN/releases/download/5.23/v2rayN-Core.zip
sz v2rayN-Core.zip
如果
Xshell
把文件拖到本地
1. 搭建 TCP 协议的 V2Ray
apt update
apt install -y curl
bash <(curl -L https://github.com/crazypeace/V2ray_Vmess_TCP/raw/main/install.sh)
* 注意第
2.a 翻墙, 全局模式
鼠标选择上一步骤的这段
运行
在
右键右下角的
右键右下角的
点击
2.b 申请 Freenom 免费域名
确保你使用了
打开
点击
默认是申请
你会收到一个
Freenom
如果一切顺利的话,你会在
3. 将域名添加到 Cloudflare 的 DNS 解析
打开 https://www.cloudflare.com/ 注册一个账户
选择添加站点,输入你申请的域名
选择免费计划
等待一会儿,然后手动添加
点击
点击
在接下来的页面中,注意两项
点击
在
如果状态为绿色的对勾,那么说明名称服务器切换生效了。点击它,我们继续修改一些设置。
点击
===================
===================
root@nash:~# bash <(curl -L https://github.com/crazypeace/V2ray_Vmess_TCP/raw/main/install.sh)
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
_ ___
___ ___ __ __ ___ _| | _|___ __ __ _ ___
|-_ |_ | | |-_ | _ | |- _| | |_| |_ |
|___|___| _ |___|___|_|_|___| _ |___|___|
|_____| |_____|
此脚本仅兼容于Debian 10+系统. 如果你的系统不符合,请Ctrl+C退出脚本
可以去 https://github.com/crazypeace/V2ray_Vmess_TCP 查看脚本整体思路和关键命令, 以便针对你自己的系统做出调整.
有问题加群 https://t.me/+D8aqonnCR3s1NTRl
----------------------------------------------------------------
100 8418 100 8418 0 0 15502 0 --:--:-- --:--:-- --:--:-- 15502
Get:1 http://security.debian.org/debian-security bullseye-security InRelease [44.1 kB]
Hit:2 http://deb.debian.org/debian bullseye InRelease
Get:3 http://deb.debian.org/debian bullseye-updates InRelease [39.4 kB]
Get:4 http://security.debian.org/debian-security bullseye-security/main Sources [124 kB]
Get:5 http://security.debian.org/debian-security bullseye-security/main amd64 Packages [153 kB]
Get:6 http://security.debian.org/debian-security bullseye-security/main Translation-en [95.4 kB]
Fetched 455 kB in 0s (1398 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
1 package can be upgraded. Run 'apt list --upgradable' to see it.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
curl is already the newest version (7.74.0-1.3+deb11u1).
jq is already the newest version (1.6-2.1).
sudo is already the newest version (1.9.5p2-3).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
当前系统时间-UTC
Tue May 31 06:16:12 UTC 2022
当前系统时间-上海时区
2022-05-31 14:16:12
安装V2ray最新版本
----------------------------------------------------------------
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 21647 100 21647 0 0 603k 0 --:--:-- --:--:-- --:--:-- 603k
info: Installing V2Ray v4.45.0 for x86_64
Downloading V2Ray archive: https://github.com/v2fly/v2ray-core/releases/download/v4.45.0/v2ray-linux-64.zip
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 13.1M 100 13.1M 0 0 13.6M 0 --:--:-- --:--:-- --:--:-- 23.9M
Downloading verification file for V2Ray archive: https://github.com/v2fly/v2ray-core/releases/download/v4.45.0/v2ray-linux-64.zip.dgst
info: Extract the V2Ray package to /tmp/tmp.vWaU1XRqEa 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: /etc/systemd/system/v2ray.service
installed: /etc/systemd/system/[email protected]
removed: /tmp/tmp.vWaU1XRqEa
info: V2Ray v4.45.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
打开BBR
----------------------------------------------------------------
配置 Vmess_TCP 模式
----------------------------------------------------------------
请输入 V2RayID
(默认ID: 948408f2-ce7d-4db4-b59f-15041e737005):
V2RayID = 948408f2-ce7d-4db4-b59f-15041e737005
----------------------------------------------------------------
请输入 V2Ray 端口 [1-65535]
(默认端口: 44657):
V2Ray 端口 = 44657
----------------------------------------------------------------
配置 /usr/local/etc/v2ray/config.json
----------------------------------------------------------------
重启 V2Ray
----------------------------------------------------------------
---------- V2Ray 配置信息 -------------
地址 (Address) = 45.88.178.183
端口 (Port) = 44657
用户ID (User ID / UUID) = 948408f2-ce7d-4db4-b59f-15041e737005
额外ID (Alter Id) = 0
传输协议 (Network) = tcp
伪装类型 (header type) = none
---------- V2Ray Vmess URL ----------
vmess://ICAgIHsgICAgInYiOiAiMiIsICAgICJwcyI6ICJWbWVzc19UQ1BfNDUuODguMTc4LjE4MyIsICAgICJhZGQiOiAiNDUuODguMTc4LjE4MyIsICAgICJwb3J0IjogIjQ0NjU3IiwgICAgImlkIjogIjk0ODQwOGYyLWNlN2QtNGRiNC1iNTlmLTE1MDQxZTczNzAwNSIsICAgICJhaWQiOiAiMCIsICAgICJuZXQiOiAidGNwIiwgICAgInR5cGUiOiAibm9uZSIsICAgICJob3N0IjogIiIsICAgICJwYXRoIjogIiIsICAgICJ0bHMiOiAiIiAgICB9
---------- END -------------
root@nash:~#
网友留言(1 条)