Exclusive Metin2 game shield on FreeBSD: Automatic siege mode, VIP list, and whitelist from your dashboard. See how it works
Create a server
Xernode/ Blog

Blog

Guides for your server.

Hands-on tutorials on Linux, security, networking, and game servers, written so you can follow along step by step.

How to Install and Use logrotate

  • Xernode
  • 1-minute read
  • linux

Logs grow quietly. logrotate cuts, compresses and drops old files based on a rule.

Steps

  1. On Ubuntu it is usually installed. Check the binary:

    logrotate --version
  2. Create a rule for your app (example):

    sudo nano /etc/logrotate.d/my-app

Tips

… Read the complete guide

How to Change the SSH Port on Linux

  • Xernode
  • 1-minute read
  • ssh

Moving SSH off port 22 cuts bot noise. Do it carefully: open the new port in the firewall before you close the old one.

Steps

  1. Edit the sshd configuration:

    sudo nano /etc/ssh/sshd_config
  2. Set (or uncomment) a Port line with your chosen port, e.g. 2222. Save the file.

    Port 2222

Tips

… Read the complete guide

How to Set Up a Reverse Proxy with Nginx

  • Xernode
  • 1-minute read
  • nginx

A reverse proxy terminates HTTPS on 443 and forwards to your app on localhost:3000 (or another port). Nginx is the usual choice.

Steps

  1. Install Nginx:

    sudo apt update
    sudo apt install -y nginx
  2. Create a site (example to 127.0.0.1:3000) under /etc/nginx/sites-available/app and enable it.

… Read the complete guide

How to Set Up a Firewall with iptables

  • Xernode
  • 1-minute read
  • firewall

iptables filters packets at a low level. Use it when you need fine control or a host without UFW/FirewallD. Order matters: allow first, then deny.

Steps

  1. Install the tools (Ubuntu/Debian):

    sudo apt update
    sudo apt install -y iptables iptables-persistent
  2. Restrictive default policy, then allow loopback and established traffic:

… Read the complete guide

How to Install cPanel/WHM on a VPS

  • Xernode
  • 1-minute read
  • vps

cPanel/WHM is a commercial control panel for websites, email and server services. You need a valid license and a compatible VPS (usually RHEL/Alma/Rocky). This guide covers the standard install.

Steps

  1. Update the system and set a valid FQDN hostname (required by cPanel).

… Read the complete guide