Deploy H-UI and Hysteria2 Protocol Proxy against Network Sanction

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

You can install with auto script:

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

After install finished, you will see this:

---> 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

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

Tags: 6666

Leave a Reply

Your email address will not be published. Required fields are marked *