This script automatically installs and configures Hysteria 2 server with secure defaults and automatic configuration.
- One-command installation
- Automatic IP detection
- Secure default configuration
- TLS certificate generation
- Automatic service configuration
- Client configuration generation
To install Hysteria 2, run this command on your server:
bash <(curl -fsSL https://raw.githubusercontent.com/yusefes/Hysteria2/main/setup_hysteria2.sh)
- Ubuntu/Debian-based system
- Root access
- Port 443 available
- Installs required packages
- Installs Hysteria 2
- Generates TLS certificates
- Configures the server
- Sets up the service
- Generates client configuration
- Automatic password generation
- TLS encryption
- Salamander obfuscation
- Secure default settings
The script will display a client configuration URL that can be used in Hysteria 2 clients.
If you encounter any issues:
- Check if port 443 is available
- Verify your system meets the requirements
- Check the logs with:
journalctl -u hysteria-server.service
MIT License
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.