Hysteria2 claims to be able to solve internet speed problems during peak periods
In WHMCS
Install
This tutorial employs Ubuntu 22 as an illustrative example.
Initially, disable the Uncomplicated Firewall (UFW).
sudoufwdisable
If port hopping is required, kindly customize the provided command as per your requirements and execute it accordingly
In the provided command, users are permitted to utilize any port within the range of 20000 to 40000 for connecting to hysteria2, whereas the backend operates on port 40001
Please input "20000-40000" for the client port and "40001" for the backend port in the WHMCS node details
# install iptables-persistentaptinstalliptables-persistent-y# open 22,80,443 portsiptables-AINPUT-ptcp--dport22-jACCEPTiptables-AINPUT-ptcp--dport80-jACCEPTiptables-AINPUT-ptcp--dport443-jACCEPT# turn on port forwarding# IPv4iptables-tnat-APREROUTING-ieth0-pudp--dport20000:40000-jDNAT--to-destination:40001# IPv6ip6tables-tnat-APREROUTING-ieth0-pudp--dport20000:40000-jDNAT--to-destination:40001# save rulesudoiptables-save>/etc/iptables/rules.v4sudoip6tables-save>/etc/iptables/rules.v6sudosystemctlenablenetfilter-persistentsudosystemctlstartnetfilter-persistent
Please create a directory and proceed with installing the hysteria2 backend.