Deploying Hysteria 2 Instance on VPS#
Installing Hysteria 2 on VPS#
Install Hysteria 2 using the method provided by the official source.
Install or upgrade to the latest version:
bash <(curl -fsSL https://get.hy2.sh/)
Modify /etc/hysteria/config.yaml with the following configuration:
# listen: :443
acme:
  domains:
    - example.com
  email: [email protected]
auth:
  type: password
  password: vgfdsgdsafwer43243243
masquerade:
  type: proxy
  proxy:
    url: https://news.ycombinator.com/
    rewriteHost: true
Restart hysteria
systemctl restart hysteria-server.service
Usage for Windows Client#
Download the hysteria Windows client https://github.com/apernet/hysteria/releases/download/app%2Fv2.1.0/hysteria-windows-amd64-avx.exe
Download links within the country
Create a new configuration file config.yaml with the following content:
server: exapmle.com:443
auth: vgfdsgdsafwer43243243
bandwidth:
  up: 50 mbps
  down: 200 mbps
socks5:              
  listen: 127.0.0.1:10808    
http:
  listen: 127.0.0.1:10809
Run the client
hysteria-windows-amd64-avx.exe -c config.yaml