UNIX Publication

NekoBoxForAndroid配置Hysteria2

本文介绍了如何在NekoBoxForAndroid客户端上配置Hysteria2。

服务器安装Hysteria2

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配置如下

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

其他用默认即可。

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

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