Sunday, December 29, 2024

Deploying Hiddify on Debian 12

Hiddify is a tool designed for bypassing internet censorship and typically offers a simplified deployment process. Here’s how to deploy Hiddify on Debian 12.

Prerequisites
1.A clean Debian 12 server (VPS or dedicated machine).
2.Root or a user with sudo privileges.
3.A domain name pointing to your server’s IP (optional but recommended for SSL/TLS).
Step-by-Step Guide
1. Update System and Install Required Packages
Ensure your system is up-to-date and install essential tools:

sudo apt update && sudo apt upgrade -y
sudo apt install curl wget git -y

2. Download Hiddify Installer
Clone the official Hiddify repository:

git clone https://github.com/hiddify/hiddify-config.git
cd hiddify-config

3. Configure Installation Settings
1.Run the configuration tool to set up initial options:

./hiddify_manager.py config

During this process, you’ll be prompted to set various options:

Domain name: Specify your domain or leave it blank if you don’t have one.
Admin credentials: Set a username and password for managing Hiddify.
Ports: Define ports if necessary (default ports work for most cases).
2.Save the configuration.

4. Install Hiddify
Run the installer:

./install.sh

This script will:

Install required dependencies (e.g., Docker, Python).
Configure and deploy the Hiddify server.
5. Check Installation
Once the installation is complete, the script will display:

The web panel URL for managing Hiddify.
Admin login credentials.
Access the web panel in your browser to verify that the installation was successful.

6. Secure Your Server (Optional but Recommended)
1.Enable a Firewall:

sudo apt install ufw -y
sudo ufw allow OpenSSH
sudo ufw allow 443/tcp
sudo ufw allow 80/tcp
sudo ufw enable

2.Use SSL/TLS: If you didn’t configure a domain during installation, you can add it now and generate a Let’s Encrypt SSL certificate:

./hiddify_manager.py add-domain yourdomain.com

7. Update and Maintenance
To update Hiddify, pull the latest repository changes and run the update script:

git pull
./update.sh

Access and Usage
Client Configuration: The Hiddify web panel provides client configuration files for easy setup.
Admin Panel: Access the admin panel via the displayed URL after installation to manage users, monitor traffic, and adjust settings.
Notes
System Requirements: Hiddify works best with servers that have at least 1GB of RAM and sufficient bandwidth.
Legal Disclaimer: Ensure that you use Hiddify in compliance with your local laws and regulations.
This setup should provide a fully functional Hiddify deployment on Debian 12.