起因我在9月13日购买了 搬瓦工 CN2 GIA 特别限量版 年付300多元,香是确实香,但我没有注意月500G流量是双向计费,实际就是250G,对于我来说是远远不够。随即和搬瓦工协商退款,经过几番邮件拉扯,搬瓦工表示虽然我满足30天内退款政策,但流量已使用超过1/10,所以不给我退款。(上一篇评测时消耗了100G)
于是只能把我的真 • 传家宝 Oracle 甲骨文云日本拿出来当当备胎,鉴于甲骨文日本节点网络常年处于残废状态,完全不能使用。正好 不良林 最新一期视频 使用Hysteria2 歇斯底里来拯救垃圾VPS,尝试一下看看能不能让甲骨文垃圾线路焕发第二春。
部署完Hysteria V2 后先来看一看效果:
VLESS-gRPC-uTLS-REALITY
Hysteria2
VLESS-gRPC-uTLS-REALITY
Hysteria2
VLESS-gRPC-uTLS-REALITY
Hysteria2
VLESS-gRPC-uTLS-REALITY
Hysteria2
效果真是惊人,简直满血复活了!当搬瓦工备胎足也。
总结: 有客户端条件的朋友可以直接上,垃圾线路VPS更是无需犹豫!
不良林 的视频教程已相当详细,按需操作即可 https://youtu.be/CXj-ID33MhU?si=O9rHNhcN7x06ttCL
下面把视频教程相关文档搬运过来方便大家
bash <(curl -fsSL https://get.hy2.sh/)
openssl req -x509 -nodes -newkey ec:<(openssl ecparam -name prime256v1) -keyout /etc/hysteria/server.key -out /etc/hysteria/server.crt -subj "/CN=bing.com" -days 36500 && sudo chown hysteria /etc/hysteria/server.key && sudo chown hysteria /etc/hysteria/server.crt
cat << EOF > /etc/hysteria/config.yaml
listen: :443 #监听端口
#使用CA证书
#acme:
# domains:
# - a.com #你的域名,需要先解析到服务器ip
# email: [email protected]
#使用自签证书
#tls:
# cert: /etc/hysteria/server.crt
# key: /etc/hysteria/server.key
auth:
type: password
password: 123456 #设置认证密码
masquerade:
type: proxy
proxy:
url: https://bing.com #伪装网址
rewriteHost: true
EOF
#启动Hysteria2
systemctl start hysteria-server.service
#重启Hysteria2
systemctl restart hysteria-server.service
#查看Hysteria2状态
systemctl status hysteria-server.service
#停止Hysteria2
systemctl stop hysteria-server.service
#设置开机自启
systemctl enable hysteria-server.service
#查看日志
journalctl -u hysteria-server.service
server: ip:443
auth: 123456
bandwidth:
up: 20 mbps
down: 100 mbps
tls:
sni: a.com
insecure: false #使用自签时需要改成true
socks5:
listen: 127.0.0.1:1080
http:
listen: 127.0.0.1:8080
{
"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",
"server_port": 443,
"up_mbps": 20,
"down_mbps": 100,
"password": "123456",
"tls": {
"enabled": true,
"server_name": "a.com",
"insecure": false
}
},
{
"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
}
}