How to Block SSH Login Attempts from Specific Countries with GeoIP

block ssh login attempts by country

If your auth log is full of failed SSH logins from countries you never do business in, cut most of that noise at the firewall. Learning how to block SSH login attempts by country with GeoIP means building a list of IP ranges per country, then dropping port 22 traffic from the countries you block … Baca Selengkapnya

How to Set Up UFW Firewall Rules That Do Not Lock You Out of Your VPS

ufw firewall rules vps

Setting up ufw firewall rules vps owners can trust starts with one habit: allow SSH before you switch the firewall on. UFW, short for Uncomplicated Firewall, is the front end for iptables that ships with Ubuntu. It does exactly what you tell it to do, and that includes blocking your own SSH session if you … Baca Selengkapnya

UFW vs iptables vs nftables: Which Firewall Should You Use in 2026?

This ufw vs iptables vs nftables guide compares the three Linux firewall tools you meet on a VPS, so you can pick one and stop second-guessing. UFW is the friendly front end. iptables is the older rule system most tutorials still quote. nftables is the modern replacement that current kernels use underneath. On Ubuntu 24.04, … Baca Selengkapnya

How to Write nftables Rules for a VPS: A Beginner’s Guide

Learning to write nftables rules vps owners can trust takes one afternoon and removes a lot of firewall guesswork. nftables is the modern Linux firewall engine: one tool, one syntax, and tables that cover IPv4 and IPv6 together. This nftables beginner guide builds a working ruleset from nothing, explains each part in plain terms, and … Baca Selengkapnya

How to Configure UFW Firewall Rules for a Web Server (Step-by-Step)

This guide shows how to configure ufw firewall web server rules on Ubuntu, step by step, so a web VPS accepts web traffic and SSH while denying everything else. UFW is the simplest safe front end for the Linux firewall, and a web server needs only a short rule list. Follow the order below exactly: … Baca Selengkapnya

How to Change the Default SSH Port and Set Up Port Knocking

Learning to change default ssh port settings plus port knocking gives your VPS a quieter SSH door. Moving the port cuts automated scan noise, and port knocking adds a secret knock sequence that opens the port only for the knocker. Neither trick replaces key-only login or a firewall, but together they cut log clutter and … Baca Selengkapnya