NekoBoxForAndroid配置Hysteria2

服务器安装Hysteria2 Link to heading

root@bwg:~# bash <(curl -fsSL https://get.hy2.sh/)
Checking for installed version ... not installed
Checking for latest version ... v2.1.1
Downloading hysteria binary: https://github.com/apernet/hysteria/releases/download/app/v2.1.1/hysteria-linux-amd64 ...
  % 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.0M  100 13.0M    0     0  15.4M      0 --:--:-- --:--:-- --:--:-- 36.0M
Installing hysteria executable ... ok
Install /etc/hysteria/config.yaml ... ok
Creating user hysteria ... ok
Install /etc/systemd/system/hysteria-server.service ... ok
Install /etc/systemd/system/[email protected] ... ok

Congratulation! Hysteria 2 has been successfully installed on your server.

What's next?

        + Take a look at the differences between Hysteria 2 and Hysteria 1 at https://hysteria.network/docs/misc/2-vs-1/
        + Check out the quick server config guide at https://hysteria.network/docs/getting-started/Server/
        + Edit server config file at /etc/hysteria/config.yaml
        + Start your hysteria server with systemctl start hysteria-server.service
        + Configure hysteria start on system boot with systemctl enable hysteria-server.service

配置(/etc/hysteria/config.yaml)示例如下:

# listen: :443 

acme:
  domains:
    - your.domain.net 
  email: [email protected] 

auth:
  type: password
  password: Se7RAuFZ8Lzg 

masquerade: 
  type: proxy
  proxy:
    url: https://news.ycombinator.com/ 
    rewriteHost: true

NekoBoxForAndroid配置如下 Link to heading

点击右上角加号,手动收入->hysteria

  • 配置名称 自定义
  • 协议版本 填入2
  • 服务器 填入域名
  • 服务器端口 填入443
  • 密码 填入服务器密码,提示是认证载荷那个,不是混淆密码
  • 服务器名称指示 填入域名

其他用默认即可。

NekoBoxForAndroid官方下载 https://github.com/MatsuriDayo/NekoBoxForAndroid/releases

内网下载 NB4A-1.2.7-arm64-v8a.apk