Hysteria2 | Second-Generation Hysteria Node Setup Tutorial

1. Introduction
Hysteria2 is a feature-rich network tool optimized for poor network conditions (bilateral acceleration), such as satellite networks, congested public Wi-Fi, connecting to foreign servers from China, etc. It is based on a modified QUIC protocol.
It effectively addresses the biggest pain point when setting up proxy servers—poor network routes.
CT direct connection to JP NTT data center + Cloudflare Warp, no optimization for 163 routes, Speedtest during peak evening hours (20:00-23:00).
No optimization for routes to Mainland China, Los Angeles Shockhosting data center, 1c128m OVZ NAT, 4k@p60:

image
2. Advantages
Click to expand and view the complete feature list
- Supports three masquerade modes provided by Hysteria2 and offers highly customizable masquerade content.
- Provides four certificate import methods:
- ACME HTTP Challenge
- ACME DNS
- Self-signed certificate for any domain
- Local certificate
- Supports viewing Hysteria2 server statistics in the SSH terminal:
- User traffic statistics
- Number of online devices
- Current active connections and other information
- Provides domain-based traffic splitting rules implemented solely through ACL, as well as blocking requests for specific domains.
- Supports all mainstream operating systems and architectures currently available:
- Operating Systems: Arch, Alpine, RHEL, CentOS, AlmaLinux, Debian, Ubuntu, Rocky Linux, etc.
- Architectures: x86_64, i386|i686, aarch64|arm64, armv7, s390x, ppc64le
- Supports generating QR codes for Hysteria2 share links and outputting them to the terminal, reducing tedious copy-paste processes.
- Supports generating Hysteria2 original client configuration files, preserving the most comprehensive client parameters.
- Starts the Hysteria2 process with high priority to maintain speed priority.
- Port hopping and Hysteria2 daemon processes are managed using auto-start scripts, providing greater extensibility and compatibility.
- Retains the installation script for Hysteria v1 for user selection.
- Calculates BDP (Bandwidth-Delay Product) to adjust QUIC parameters, adapting to various usage scenarios.
- Supports adding SOCKS5 outbound, including automatic Warp outbound configuration.
- Timely updates, with adaptation completed within 24 hours after Hysteria2 updates.
3. Usage
Pull and Install
su - root #switch to root user.
bash <(curl -fsSL https://git.io/hysteria.sh)Configuration Process
After the first installation: Use the hihy command to bring up the menu. If the hihy script has been updated, please execute option 9 to get the latest configuration.
Supports directly calling corresponding functions via numeric serial numbers, e.g., hihy 5 will restart Hysteria2.
-------------------------------------------
|********** Hi Hysteria **********|
|********** Author: emptysuns **********|
|********** Version: 1.0.1 **********|
-------------------------------------------
Tips: hihy command to run this script again.
.............................................
###############################
.....................
1) Install hysteria2
2) Uninstall
.....................
3) Start
4) Pause
5) Restart
6) Status
.....................
7) Update Core
8) View Current Configuration
9) Reconfigure
10) Switch IPv4/IPv6 Priority
11) Update hihy
12) Domain Traffic Splitting/ACL Management
13) View Hysteria2 Statistics
14) View Real-time Logs
15) Add SOCKS5 Outbound [Supports automatic Warp configuration]
###############################
0) Exit
.............................................
Please select:
References:
- https://github.com/emptysuns/Hi_Hysteria
- https://v2.hysteria.network/zh/
Changelog
f8f53-add database sectionon
Copyright
Copyright Ownership:Sakurajiamai
License under:Attribution-NonCommercial-NoDerivatives 4.0 International (CC-BY-NC-ND-4.0)
