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/#security

Blog

#security

Posts tagged with “security”.

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 Reset MySQL Root Password

  • Xernode
  • 1-minute read
  • mysql

If you forgot the MySQL/MariaDB root password, restart without privilege tables, set a new hash, then return to normal mode.

Steps

  1. Stop MariaDB/MySQL:

    sudo systemctl stop mariadb
  2. Start in recovery mode (MariaDB example):

    sudo mysqld_safe --skip-grant-tables --skip-networking &

Tips

… Read the complete guide

How to Secure Your VPS with Fail2Ban

  • Xernode
  • 1-minute read
  • ssh

Fail2Ban reads logs and blocks IPs after repeated failures. On a public VPS it cuts SSH brute-force without hand-writing iptables rules.

Steps

  1. Install Fail2Ban (Ubuntu/Debian):

    sudo apt update
    sudo apt install -y fail2ban
  2. Create a local jail file so package upgrades do not overwrite you:

… Read the complete guide