• Hysteria垃圾救星

    Hysteria 2 GitHub 项目地址:https://github.com/apernet/hysteria

    Hysteria 2 下载:https://github.com/apernet/hysteria/releases

    官方脚本

    1. # 安装或升级到最新版本 Hysteria 2:
    2. bash <(curl -fsSL https://get.hy2.sh/)
    3.  
    4. # 移除 Hysteria 2:
    5. bash <(curl -fsSL https://get.hy2.sh/) –remove

    自签证书

    命令会在 VPS 目录 /etc/hysteria 中生成 server.crt 及 server.key 文件,并变更相关权限

    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

    推荐密码设置 :点击访问 生成随机高强度密码

    1. listen: :443
    2. # 以下 acme 和 tls 字段,二选一
    3. # 有域名部署的选择 acme ,无域名的选择 tls
    4. # 选择 acme,必须注释掉 tls,反之一样
    5. acme:
    6. domains:
    7. – xx.xx.xx # 域名
    8. email: [email protected] # 邮箱,格式正确即可
    9. #tls:
    10. # cert: /etc/hysteria/server.crt
    11. # key: /etc/hysteria/server.key
    12. auth:
    13. type: password
    14. password: 88888888 # 请及时更改密码
    15. masquerade:
    16. type: proxy
    17. proxy:
    18. url: https://bing.com # 伪装网站
    19. rewriteHost: true

    服务相关命令

    1. systemctl start hysteria-server.service # 启动 hysteria 服务
    2. systemctl enable hysteria-server.service # 设置 hysteria 服务 开机自启
    3. systemctl restart hysteria-server.service # 重启 hysteria 服务
    4. systemctl stop hysteria-server.service # 停止 hysteria 服务
    5. systemctl status hysteria-server.service # 查看 hysteria 服务 状态

    客户端配置文件

    1. server: ip:443
    2. auth: ****
    3.  
    4. #bandwidth:
    5. # up: 20 mbps
    6. # down: 100 mbps
    7. tls:
    8. sni: xx.xx.xx # 若无域名,请改为 bing.com
    9. insecure: false # 若无域名,需要改参数为 true
    10.  
    11. socks5:
    12. listen: 127.0.0.1:1080
    13. http:
    14. listen: 127.0.0.1:8080

  • 长久激活版

    irm https://massgrave.dev/get | iex

    irm https://get.activated.win | iex

  • ksm

    slmgr /ipk W269N-WFGWX-YVC9B-4J6C9-T83GX

    slmgr /skms kms.loli.best

    slmgr /ato