CSF restart not showing new country codes added to csf.conf

sunnyday

Verified User
Joined
Sep 17, 2015
Messages
21
I added 2 new country codes to: /etc/csf/csf.conf

When I restart csf these new country codes are not being listed in the output of the restart:

csf -r
csf: FASTSTART loading csf.deny (IPv4)
csf: FASTSTART loading csf.allow (IPv4)
csf: FASTSTART loading CC_DENY [ad] (IPv4)
.
.
(the additional country codes are not being listed here in the output of the csf restart)

The new Country Codes are being listed in the Direct Admin CSF panel.

Does CSF only block country's based on the restart or does it use what is displayed in Direct Admin on the CSF panel?

Does anyone know what's going on here?

Thank you!
 
Last edited:
As far as I know faststart does not show everything, but it does reread the config (hence display in Directadmin CSF Panel).

You can check by restarting like this (Centos/Fedora/RH):
Code:
/etc/init.d/csf restart

Or otherwise check the content of your iptables which should also show the presence of those country ip's:
Code:
iptables -L
 
Back
Top