Skip to content

Instantly share code, notes, and snippets.

@dachinat
dachinat / ufw_allow_countries.sh
Last active March 15, 2024 13:56
Allow certain countries only using UFW (Tested on CentOS 7, Ubuntu 16.04, Ubuntu 18.04)
#!/bin/bash
#title :ufw_allow_countries.sh
#author :JSC Novabyte (novabyte.co)
#date :20/10/2018
#version :0.0.1
#notes :Use root privileges
#usage :$sh ufw_allow_countries.sh
#license :https://opensource.org/licenses/MIT