Skip to content

Instantly share code, notes, and snippets.

@oli-ver
oli-ver / ufw_block_countries.sh
Last active June 12, 2025 16:41 — forked from dachinat/ufw_allow_countries.sh
Block certain countries and allow ports ssh, http and https using UFW (Tested on Debian 12 Bookworm)
#!/bin/bash
#title :ufw_block_countries.sh
#author :JSC Novabyte (novabyte.co),oli-ver
#date :12/06/2025
#version :0.0.2
#notes :Use root privileges
#usage :$sh ufw_block_countries.sh
#license :https://opensource.org/licenses/MIT