Game Server Panel
    Open Source

    Deploy Open Game Panel (OGP) on a VPS

    Free, open-source game server management panel supporting 100+ games — deploy, manage, and monitor Minecraft, CS2, ARK, Rust, and more from a single web interface.

    At a Glance

    ProjectOpen Game Panel
    LicenseGPL v3
    Recommended PlanRamNode Cloud VPS 2 GB+ (4 GB+ for multiple game servers)
    OSUbuntu 22.04 LTS
    StackApache, MariaDB, PHP, Perl
    Estimated Setup Time25–35 minutes

    Prerequisites

    • A RamNode VPS with at least 2 GB RAM and 2 vCPU cores (4 GB+ recommended for multiple game servers)
    • Ubuntu 22.04 LTS selected as the operating system
    • Root SSH access to your VPS
    • A registered domain or subdomain (optional but recommended for HTTPS)
    1

    Update the System

    Update and set hostname
    apt update && apt upgrade -y
    hostnamectl set-hostname ogp-server
    reboot
    2

    Install the LAMP Stack and Dependencies

    Install full stack
    apt install -y apache2 mariadb-server php php-gd php-zip php-curl \
      php-mysql php-xmlrpc php-mbstring php-bcmath php-xml \
      libapache2-mod-php curl subversion unzip git gettext
    Enable services
    systemctl enable --now apache2
    systemctl enable --now mariadb
    3

    Secure MariaDB

    Run security script
    mysql_secure_installation

    Set a strong root password, remove anonymous users, disallow remote root login, remove the test database, and reload privilege tables. Answer Y to each prompt.

    4

    Install the OGP Web Panel

    Download and install
    cd /root
    wget "https://github.com/OpenGamePanel/Easy-Installers/raw/master/Linux/Debian-Ubuntu/ogp-panel-latest.deb"
    dpkg -i ogp-panel-latest.deb
    Fix dependencies if needed
    apt --fix-broken install -y
    dpkg -i ogp-panel-latest.deb

    During installation, enter your MariaDB root password when prompted. Note the database credentials displayed at the end.

    5

    Complete the Web Panel Setup via Browser

    Navigate to http://YOUR_VPS_IP/index.php and complete the wizard:

    • Compatibility check — scroll down and click Next
    • Database config — enter credentials from the installer output
    • Admin account — set username, strong password, and email
    Post-install security
    rm -f /var/www/html/install.php
    chmod 644 /var/www/html/includes/config.inc.php
    6

    Install the OGP Agent

    Create agent user
    adduser ogpagent
    usermod -aG sudo ogpagent
    Install agent dependencies
    apt install -y libxml-parser-perl libpath-class-perl perl-modules \
      screen rsync sudo e2fsprogs unzip subversion libarchive-extract-perl \
      pure-ftpd libarchive-zip-perl libc6 libgcc-s1 git curl
    
    dpkg --add-architecture i386
    apt update
    apt install -y lib32gcc-s1 libc6-i386
    Download and run installer
    cd /root
    wget "https://github.com/OpenGamePanel/OGP-Agent-Linux/archive/master.zip"
    unzip master.zip
    cd OGP-Agent-Linux-master/
    bash install.sh

    Important: Write down the encryption key during installation — the web panel needs it to communicate with the agent.

    7

    Connect the Agent to the Web Panel

    In the OGP web panel, go to Administration → Servers → Add Remote Server:

    • Agent IP: 127.0.0.1
    • Agent Port: 12679
    • Encryption Key: the key from agent installation
    • Remote Host IP: your VPS public IP
    8

    Configure the Firewall

    UFW rules
    apt install -y ufw
    ufw default deny incoming
    ufw default allow outgoing
    ufw allow 22/tcp
    ufw allow 80/tcp
    ufw allow 443/tcp
    ufw allow 12679/tcp
    ufw allow 27000:27050/udp
    ufw allow 27000:27050/tcp
    ufw enable

    Open additional ports as needed for specific game servers.

    9

    Secure the Panel with Let's Encrypt SSL

    Install Certbot and configure
    apt install -y certbot python3-certbot-apache
    Apache virtual host
    cat > /etc/apache2/sites-available/ogp.conf << 'EOF'
    <VirtualHost *:80>
        ServerName ogp.yourdomain.com
        DocumentRoot /var/www/html
    
        <Directory /var/www/html>
            Options -Indexes +FollowSymLinks
            AllowOverride All
            Require all granted
        </Directory>
    
        ErrorLog ${APACHE_LOG_DIR}/ogp_error.log
        CustomLog ${APACHE_LOG_DIR}/ogp_access.log combined
    </VirtualHost>
    EOF
    Enable and request cert
    a2ensite ogp.conf
    a2enmod rewrite
    systemctl reload apache2
    certbot --apache -d ogp.yourdomain.com
    certbot renew --dry-run
    10

    Deploy Your First Game Server

    1. Log in to the OGP web panel
    2. Navigate to Game Servers → Add Game Server
    3. Select your registered agent
    4. Browse the game list and select your game (Minecraft, CS2, Rust, etc.)
    5. Configure install directory, ports, startup parameters, and player slots
    6. Click Install, then Start when complete

    Performance Tuning

    File descriptor limits
    cat >> /etc/security/limits.conf << 'EOF'
    ogpagent soft nofile 65535
    ogpagent hard nofile 65535
    EOF
    Kernel network tuning
    cat >> /etc/sysctl.conf << 'EOF'
    net.core.rmem_max = 16777216
    net.core.wmem_max = 16777216
    net.ipv4.udp_mem = 65536 131072 262144
    net.core.netdev_max_backlog = 30000
    EOF
    
    sysctl -p

    Maintenance

    • System updates: apt update && apt upgrade -y
    • Backup database: mysqldump -u root -p ogp_panel > /root/ogp_backup_$(date +%F).sql
    • Agent logs: tail -f /var/log/ogp_agent.log
    • Restart agent: systemctl restart ogp_agent