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 Limit Requests in Nginx (Rate Limiting)

  • Xernode
  • 4-minute read
  • nginx

A bot that brute-forces passwords on your login form or a client that constantly calls your API can overload PHP or the database. Nginx can limit the number of requests it accepts from each IP address and respond with a 429 error to the rest, before they reach your application. In this guide, you’ll secure your login and API and test them without blocking anyone.

How It Works

… Read the complete guide

How to Enable Two-Factor Authentication (2FA) for SSH

  • Xernode
  • 3-minute read
  • ssh

With two-factor authentication, logging in via SSH requires two things: your SSH key (or your password) and a 6-digit code that changes every 30 seconds on your phone. Even if someone steals your private key, they won’t be able to log in without your phone. This guide sets it up on Ubuntu and Debian using the Google Authenticator PAM module, which works with any TOTP app, such as Google Authenticator, Aegis, or 2F…

… Read the complete guide

How to Enable Automatic Security Updates in Ubuntu

  • Xernode
  • 1-minute read
  • security

Many compromised servers aren't taken down by unknown vulnerabilities, but by patches that had been available for weeks and that no one installed. Ubuntu and Debian include unattended-upgrades, which installs security updates for you every day. When configured properly, it saves you that work without giving you any surprises.

What Gets Updated and What Doesn't

… Read the complete guide

How to Check If Your VPS Has Been Compromised

  • Xernode
  • 3-minute read
  • security

CPU usage that no one can explain, a spam abuse warning, or an SSH key you don't recognize are all good reasons to check the server. This check follows the typical sequence of actions taken by an intruder: they gain access, execute something, and ensure they can return.

Before You Begin

  • Don't restart or delete anything yet: you'll lose processes in memory and clues in the logs.
… 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