CSF firewall can block all traffic from a country or list of counrty using GeoIP database.
To block a country, edit file
Here is an example to block all traffic from China
If you want to block another counrt, you can add it like
Now restart csf firewall with