Enable ConfigServer Security & Firewall (csf) on CustomBuild > Edit Options > Advanced Settings?

pinotje

Verified User
Joined
Apr 7, 2010
Messages
48
Location
Maastricht
Hi all,

I have been using the (third party) plugin ConfigServer Security & Firewall (WTTW) for a while without any problems.

But recently I found out that there is an option on 'CustomBuild > Edit Options > Advanced Settings' called 'csf' to enable or disable:
Screenshot 2022-10-04 at 21.36.41.png

Screenshot 2022-10-04 at 21.43.01.png


What is this option?
I really thought that while I'm using CSF it's already enabled anyway?
Or am I missing something?

Best regards,
Pinotje
 
I really thought that while I'm using CSF it's already enabled anyway?
Ha mede Mestreechteneer! :D

No you're not missing someting. We also used CSF for many years. But since a couple of years CSF is automatically being installed with Directadmin if you install a new server.
Then there are some options, some combination with the DA bruteforce if I'm not mistaken, which are integrated automatically.
This is when you set CSF to yes in the custombuild plugin.

Ofcourse when you install it manually, it's not done via the DA and custombuild might not "see" that it's installed and working.
However it is enabled and working. Easy to check via SSH also.

Gruutsjes,
Richard.
 
I just checked and my configuration shows this as "yes" the default value is '"no"
 
Ha mede Mestreechteneer! :D

No you're not missing someting. We also used CSF for many years. But since a couple of years CSF is automatically being installed with Directadmin if you install a new server.
Then there are some options, some combination with the DA bruteforce if I'm not mistaken, which are integrated automatically.
This is when you set CSF to yes in the custombuild plugin.

Ofcourse when you install it manually, it's not done via the DA and custombuild might not "see" that it's installed and working.
However it is enabled and working. Easy to check via SSH also.

Gruutsjes,
Richard.
Hoi Richard,

Thanks for your reply!

Should I uninstall ConfigServer Firewall from Plugin Manager:
Screenshot 2022-10-05 at 12.07.57.png


And then enable CSF from 'CustomBuild > Edit Options > Advanced Settings' ?
Screenshot 2022-10-05 at 12.09.24.png

What is the best practice/option?

Best regards,
Pinotje
 
Should I uninstall ConfigServer Firewall from Plugin Manager:
Not really needed. I don't use the build in CSF either, have my own scripts which I use for the DA BFM.

However, if you want to have DA do everything, you could do it like you say. It's a choice. IMHO there is no best option. Maybe via DA is a bit easier since you don't have to use own scripts.

If you want to change this, just backup your configs first. So csf.conf, csf.pignore, csf.allow and csf.ignore and also the regex if you changed something. Just to be sure.
 
Updating this for reference, to remove CSF via CustomBuild using CLI at-scale, this is the way we've identified that works nicely:

Code:
da build set csf no
da build remove_csf
systemctl daemon-reload
systemctl reset-failed csf.service lfd.service

We did this due to moving the workload over to Imunify360, largely due to CSF being mostly unmaintained now since WTTW closed down.
 
Back
Top