This guide will walk you through deploying CyberPanel, a popular and feature-rich server control panel powered by OpenLiteSpeed, inside a Proxmox LXC container on your Hetzner server. We will place it on the same private network we created for our other containers and make it accessible from the internet using the domain cloud.gethostpro.com.

Prerequisite: DNS Configuration

Before you begin, you must log in to your domain registrar’s DNS management panel and create an A record that points your domain to your Hetzner server’s public IP address.

  • Type: A

  • Name/Host: cloud

  • Value/Points to: Your.Hetzner.Server.IP

  • TTL: Leave as default (e.g., 1 hour or Automatic)

It may take some time for this DNS change to propagate across the internet.

Part 1: Reusing the Existing LXC Network Bridge

For this installation, we will reuse the vmbr2 network bridge (192.168.20.0/24) that we already created. All the necessary host firewall rules for NAT and forwarding are already in place, so no further configuration is needed on the Proxmox host’s network files for basic internet access.

Part 2: Creating the CyberPanel LXC Container

CyberPanel officially supports Ubuntu 22.04. It is essential to use this version for maximum compatibility.

  1. In the Proxmox UI, click “Create CT”.

  2. General Tab:

    • Hostname: cyberpanel

    • Password: Set a secure root password for the container.

  3. Template Tab: Select an Ubuntu 22.04 (Jammy) template.

  4. Disks Tab: Set a disk size of 25 GB.

  5. CPU Tab: Assign 2 cores.

  6. Memory Tab:

    • Memory: 2048 MB

    • Swap: 2048 MB

  7. Network Tab:

    • Bridge: vmbr2

    • IPv4: Static

    • IP Address: 192.168.20.30/24 (Using a new IP on the same subnet)

    • Gateway: 192.168.20.1

  8. DNS Tab: Leave DNS as is (use host settings).

  9. Confirm and create the container. After it’s created, start it.

Part 3: Installing CyberPanel

The installation is handled by a single script, which will guide you through a few options.

  1. Open the console for your cyberpanel container from the Proxmox UI and log in as root.

  2. Update the container and install wget.

    apt update && apt upgrade -y
    apt install wget -y
    
    
  3. Download and run the official CyberPanel installer script.

    sh <(curl https://cyberpanel.net/install.sh || wget -O - https://cyberpanel.net/install.sh)
    
    
  4. The script will start an interactive installation process:

    • It will ask you to select 1. Install CyberPanel.

    • It will then ask to install CyberPanel with OpenLiteSpeed. Choose 1. Install CyberPanel with OpenLiteSpeed. This is the free, open-source version.

    • When asked about installing the full service, answer Y (Yes).

    • When asked about remote MySQL, answer N (No), as we want the database on the same server.

    • It will prompt you to press Enter to continue with the latest version.

    • When asked to set up a default admin password, choose s to set a custom password and enter a strong, secure password.

    • When asked if you wish to install Memcached and Redis, answer Y for both.

    • When asked if you wish to set up Watchdog, answer Y.

The installation will now proceed and can take 15-20 minutes. Once it is complete, it will display your access details. Make sure to save this information.

Part 4: Port Forwarding for CyberPanel

CyberPanel uses several ports. We need to forward the essential ones from the host to the container.

  1. On the Proxmox host SSH terminal, run these commands to forward the necessary ports to your container’s private IP (192.168.20.30).

    # Forward CyberPanel Admin UI
    iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 8090 -j DNAT --to-destination 192.168.20.30:8090
    
    # Forward standard web traffic (for websites you will host)
    iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 443 -j DNAT --to-destination 192.168.20.30:443
    iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 80 -j DNAT --to-destination 192.168.20.30:80
    
    
  2. Now, add rules to the FORWARD chain to allow this forwarded traffic to pass through the host’s firewall.

    iptables -A FORWARD -d 192.168.20.30 -p tcp --dport 8090 -j ACCEPT
    iptables -A FORWARD -d 192.168.20.30 -p tcp --dport 443 -j ACCEPT
    iptables -A FORWARD -d 192.168.20.30 -p tcp --dport 80 -j ACCEPT
    
    
  3. Save the final, complete firewall configuration to make the new rules permanent.

    netfilter-persistent save
    
    

Part 5: Final CyberPanel Setup

  1. After the installation script finishes, reboot the container to ensure all services start correctly.

    reboot