Skip to content

Instantly share code, notes, and snippets.

@oli-ver
oli-ver / ufw_allow_countries.sh
Last active January 9, 2021 13:37 — forked from dachinat/ufw_allow_countries.sh
Allow certain countries only ssh, http and https using UFW (Tested on Debian 10 Buster)
#!/bin/bash
#title :ufw_allow_countries.sh
#upstr. author :JSC Novabyte (novabyte.co)
#fork author :oli-ver
#date :01/09/2021
#version :0.0.1
#notes :Use root privileges
#usage :$sh ufw_allow_countries.sh
#license :https://opensource.org/licenses/MIT