配置

```======================================================================================
Hysteria 2 代理服务安装完成
Hysteria 2 客户端 YAML 配置文件 hy-client.yaml 内容如下,并保存到 /root/hy/hy-client.yaml
server: 104.28.192.77:19516

auth: 47a9e758

tls:
  sni: www.bing.com
  insecure: true

quic:
  initStreamReceiveWindow: 16777216
  maxStreamReceiveWindow: 16777216
  initConnReceiveWindow: 33554432
  maxConnReceiveWindow: 33554432

fastOpen: true

socks5:
  listen: 127.0.0.1:5080

transport:
  udp:
    hopInterval: 30s 
Hysteria 2 客户端 JSON 配置文件 hy-client.json 内容如下,并保存到 /root/hy/hy-client.json
{
  "server": "104.28.192.77:19516",
  "auth": "47a9e758",
  "tls": {
    "sni": "www.bing.com",
    "insecure": true
  },
  "quic": {
    "initStreamReceiveWindow": 16777216,
    "maxStreamReceiveWindow": 16777216,
    "initConnReceiveWindow": 33554432,
    "maxConnReceiveWindow": 33554432
  },
  "fastOpen": true,
  "socks5": {
    "listen": "127.0.0.1:5080"
  },
  "transport": {
    "udp": {
      "hopInterval": "30s"
    }
  }
}
Clash Meta 客户端配置文件已保存到 /root/hy/clash-meta.yaml
Hysteria 2 节点分享链接如下,并保存到 /root/hy/url.txt
hysteria2://[email protected]:19516/?insecure=1&sni=www.bing.com#Misaka-Hysteria2
Hysteria 2 节点单端口的分享链接如下,并保存到 /root/hy/url.txt
hysteria2://[email protected]:19516/?insecure=1&sni=www.bing.com#Misaka-Hysteria2

教程

apt update -y           Debian/Ubuntu 命令

apt install -y curl socat   Debian/Ubuntu 命令

yum update -y               CentOS 命令

yum install -y curl socat   CentOS 命令

添加一个v4地址 wget -N https://gitlab.com/fscarmen/warp/-/raw/main/menu.sh && bash menu.sh [option] [lisence/url/token]

安装hysteria2 wget -N —no-check-certificate https://raw.githubusercontent.com/Misaka-blog/hysteria-install/main/hy2/hysteria.sh && bash hysteria.sh