Introduction

Generally speaking, the internet that what we are using almost transfers our traffic through ==TCP== proxy. As we all know, tcp is a stable proxy, but there are also much disadvantages, including slow transfer speed.

Install H-UI

Official project location: H-UI

It’s similar to installation about 3X-UI

You can install with auto script:

1
bash <(curl -fsSL https://raw.githubusercontent.com/jonssonyan/h-ui/main/install.sh)

After install finished, you will see this:

1
2
3
4
5
6
7
8
9
---> Install H UI
Please enter the port of H UI (default: 8081):
Please enter the Time zone of H UI (default: Asia/Shanghai):
Created symlink /etc/systemd/system/multi-user.target.wants/h-ui.service → /etc/systemd/system/h-ui.service.
h-ui Panel Port: 8081
h-ui Login Username: xxx
h-ui Login Password: xxx
h-ui Connection Password: xxx.xxx
---> H UI install successful

Now you can visit you h-ui panel through ==http==, please notice, http is not secure!!! We will set HTTPS at next step.

Config H-UI

1. Get SSL Credential

1
2
3
4
5
6
7
8
9
root@s27953:~# cd ~
root@s27953:~# ls
cert
root@s27953:~# cd cert/
root@s27953:~/cert# ls
claw.liweijun.online
root@s27953:~/cert# cd claw.liweijun.online/
root@s27953:~/cert/claw.liweijun.online# ls
fullchain.pem privkey.pem
  • We can get a credential using 3x-ui, and remember the path of .pem file.

2. Login you H-UI panel through browser

  • We have got our pwd and usr, if you forgot them, you should re-run that auto script, and follow the indication to reset password and username.

image.png

  • We can easily see that, so we should config SSL firstly, details are as follow:

image.png

  • Besides, you may need change listen port, because your 443 port might has been occupied!

image.png

  • Then, config HTTPS from Hysteria2 configuration.

image.png

  • Now, save all your changes and restart panel

3. Config Hysteria2

  1. Config masquerade

image.png

  1. Config bandwidth

image.png

  • Please notice: You should config bandwidth corresponding with your network situation.
  1. Start Hysteria2

image.png

4. Import Hysteria2 Node to V2rayN

image.png

image.png

  • Now, it can work!

Acknowledgement

https://github.com/jonssonyan/h-ui/issues/71
https://github.com/jonssonyan/h-ui