Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Установка Hysteria2 на сервер:

  1. Устанавливаем Hysteria2:
bash <(curl -fsSL https://get.hy2.sh/)
  1. Редактируем конфиг для Hy2:
sudo mkdir /etc/hysteria
sudo touch /etc/hysteria/config.yaml
sudoedit /etc/hysteria/config.yaml
  1. И вставляем (Пароли лучше сгенерировать через openssl rand -hex 8):
listen: :1234

acme:
  domains:
    - example.com # Ваш домен
  email: email # Почта с которой регистрировали домен

auth:
  type: password
  password: hy2_pass # Пароль от Hy2

obfs:
  type: gecko
  gecko:
    password: obfs_pass # Пароль от обфускации
    minPacketSize: 512  
    maxPacketSize: 1200  

masquerade:
  type: proxy
  proxy:
    url: https://news.ycombinator.com/
    rewriteHost: true
  1. Стартуем hysteria:
sudo systemctl enable --now hysteria-server.service