CSF to lock the entire server specific country
Today I will explain how we can block access to our server from a particular country using the CSF. The whole should not take more than a minute, let's get started!
List of country codes is the most current blocking To use the option in the CSF must edit the file from the SSH:
1 | /etc/csf/csf.conf |
find the line:
1 | CC_DENY = "" |
codes and make it a country that we want to block:
1 | CC_DENY = "US,GB,DE" |
Then save and restart CSF:
1 | csf -r |
Related entries:
Installing Kodi Media Center 19.1 w Ubuntu 21.04
Full installation of Linux LAMP server, Apache, MySql, PHP Debian 8
Installation and security of the MariaDB database server on Ubuntu 22.04
gconf-service gconf-service-backend gconf2-common libappindicator1 libc++1 libc++1-9 libc++abi1-9 libdbusmenu-gtk4 libgail-common libgail18 libgconf-2-4 libgtk2.0-0 libgtk2.0-bin libgtk2.0-commonAll-in-one voice and text chat for gamers
All-in-one voice and text chat for gamers that's free 20.04
Installing the Codec Audio / Video / Fonts in Ubuntu 19.10