CSF Integration

Navigation:  IDS Integrations >

CSF Integration

Previous pageReturn to chapter overviewNext page

ConfigServer Security & Firewall (CSF) integration is intended to allow to use CSF along with Imunify360.

 

If CSF is disabled then Imunify360 becomes a primary IDS.

White List is loaded from CSF. Imunify360 and CSF work without any additional actions.

Gray List is not imported from CSF but it is possible to view and manage Gray List in Imunify360 interface. All changes will not be automatically exported to CSF.

Black List is not imported from CSF but it is possible to view and manage Black List in Imunify360 interface. All changes will not be automatically exported to CSF.

 

If CSF is enabled Imunify360 uses Login Failure Daemon (LFD) as source for security events instead of OSSEC. CSF integration is enabled automatically when Imunify360 detects that CSF is running. No additional configuration is needed.

Gray List is not imported from CSF but it is possible to view and manage Gray List in Imunify360 interface. All changes will not be automatically exported to CSF.

Black List, Gray List, and White List are not imported from CSF but it is possible to view and manage them in Imunify360 interface. All changes will not be automatically exported to CSF.

FirewallBlackListWarning

 

 

It is possible to enable CSF when Imunify360 is already running. All IP addresses from Imunify360 White List will be exported to CSF ignore list. In about 30 seconds after CSF started, Imunify360 switches to CSF Integration mode.

 

To check if CSF integration is enabled go to Imunify360 → Firewall tab → White List section and check if there is a warning message "CSF is enabled. Please manage IPs whitelisted in CSF using CSF user interface or config file". It means that CSF and Imunify360 integration processed successfully.

 

To get events from Login Failure Daemon (LFD), Imunify360 automatically replaces BLOCK_REPORT variable to the file path of Imunify360 script.

In CSF integration mode, when some IP address is blocked by LFD, Imunify360 adds this IP address to its Graylist and then removes it from CSF’s deny/tempdeny lists. The latter is done to allow IP to have access to the Captcha and to store all automatically blocked IP addresses in a single place. Thus, no IP automatically added to CSF deny/tempdeny lists.

 

Mod_security recommendation

 

When mod_security is configured with SecRuleEngine On (blocking mode), CSF blocks IP addresses by mod_security events. The number of events to block IP address is defined by LF_MODSEC variable in csf.conf. This can lead to a large number of false positives.

 

We recommend either use:

 

SecRuleEngine DetectionOnly 

 

or set LF_MODSEC variable to 0.

 

In this case, Imunify360 will block IPs only by mod_security events with high severity.