Hysteria2一键安装视频教程:▶ https://youtu.be/N6j3gWde8cQ
Vultr注册账号:https://www.vultr.com/?ref=8753714
FinalShell下载:点击下载>>
备用下载(Windows MacOS Linux):点击下载>>
apt update -y
apt install curl sudo -y
wget -N --no-check-certificate https://raw.githubusercontent.com/flame1ce/hysteria2-install/main/hysteria2-install-main/hy2/hysteria.sh && bash hysteria.sh
systemctl start hysteria-server.service # 启动 hysteria 服务
systemctl enable hysteria-server.service # 设置 hysteria 服务 开机自启
systemctl restart hysteria-server.service # 重启 hysteria 服务
systemctl stop hysteria-server.service # 停止 hysteria 服务
systemctl status hysteria-server.service # 查看 hysteria 服务 状态
-
Windows 建议使用 V2rayN,点击下载>>
如果你不清楚下载哪个文件,请下载 “zz_v2rayN-With-Core-SelfContained.7z” 解压使用。 -
IOS/MAC 建议使用 sing-box 或 Shadowrocket
需要使用美区 AppleID 登录 App Store 下载,如果没有美区ID,可以点击免费申请一个 美区AppleID>> -
安卓手机 建议使用 sing-box
可以在 Google Play 商店下载,或者官方下载>>
请下载.apk文件,建议下载v8a.apk
{
"dns": {
"servers": [
{
"tag": "cf",
"address": "https://1.1.1.1/dns-query"
},
{
"tag": "local",
"address": "223.5.5.5",
"detour": "direct"
},
{
"tag": "block",
"address": "rcode://success"
}
],
"rules": [
{
"geosite": "category-ads-all",
"server": "block",
"disable_cache": true
},
{
"outbound": "any",
"server": "local"
},
{
"geosite": "cn",
"server": "local"
}
],
"strategy": "ipv4_only"
},
"inbounds": [
{
"type": "tun",
"inet4_address": "172.19.0.1/30",
"auto_route": true,
"strict_route": false,
"sniff": true
}
],
"outbounds": [
{
"type": "hysteria2",
"tag": "proxy",
"server": "IP", // VPS ip
"server_port": 443, // 端口
"up_mbps": 20, //上传速率,实际填写,过大会导致流量浪费
"down_mbps": 100, //下载速率,实际填写,过大会导致流量浪费
"password": "88888888", //hysteria2 服务密码
"tls": {
"enabled": true,
"server_name": "www.bing.com",
"insecure": true
}
},
{
"type": "direct",
"tag": "direct"
},
{
"type": "block",
"tag": "block"
},
{
"type": "dns",
"tag": "dns-out"
}
],
"route": {
"rules": [
{
"protocol": "dns",
"outbound": "dns-out"
},
{
"geosite": "cn",
"geoip": [
"private",
"cn"
],
"outbound": "direct"
},
{
"geosite": "category-ads-all",
"outbound": "block"
}
],
"auto_detect_interface": true
}
}
节点如果不能正常使用,请放行端口,请将以下命令复制到搭建工具,再点回车
iptables -I INPUT -p tcp --dport 443 -j ACCEPT
*请将 443 改为你节点的端口再使用