CSF/LFD: Difference between revisions

From Leo's Notes
This page was last edited on 1 September 2019, at 06:22.
m Text replacement - "Category:Linux" to "Category:Linux{{Navbox Linux}}"
m Text replacement - "Category:Linux{{Navbox Linux}}" to "{{Navbox Linux}}Category:Linux"
Line 13: Line 13:




[[Category:Linux]]{{Navbox Linux}}
{{Navbox Linux}}[[Category:Linux]]

Revision as of 06:22, 1 September 2019

Logging

CSF/LFD automatically logs to /var/log/lfd.log

tail /var/log/lfd.log


Block / Unblock IP

csf -d <IP> : block IP 
csf -a <IP> : allow IP
csf -dr <IP> : Deny removal
csf -ar <IP> : Allow removal