csf error path to iptables is either not set or incorrect

Whem install csf firewall on Ubuntu 20.04, i get following error

This is because path for iptables is changed in Ubuntu 20.04. To fix the error edit csf.conf

Find

Replace with

Now restart csf with csf -r, it will work.

See csf […]

Read More…

How to Block a Country in CSF firewall

To block all traffic from a country in CSF Firewall edit file /etc/csf/csf.conf

Find the line

In this line, you can add 2 Letter country code. For example to block China and Russia, add

Now you need to restart firewall with command

[…]

Read More…