CSF: Difference between revisions

From Psygen Wiki
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
CSF (Config Server Firewall) is an iptables management script and logging daemon.
CSF (Config Server Firewall) is an iptables management script and logging daemon.


== Command Line Options ==
== Command Line Options ==
Line 11: Line 12:
<code>csf -d <i>IP_Address</i> "Your comment goes here"</code> - Blocks the specified IP address, comment tells why
<code>csf -d <i>IP_Address</i> "Your comment goes here"</code> - Blocks the specified IP address, comment tells why


<code>csf -dr <i>IP_Address</i></code> - Removes a blocked IP from being blocked


<code>csf -ra</code> - Restart CSF and LFD (leave off the a to restart just CSF)


<code>csf -ra</code> - Restart CSF and LFD (leave off the a to restart just CSF)


== Configuration Files ==
== Configuration Files ==
Line 31: Line 33:


<ol>
<ol>
   <li>ref here...</li>
   <li>[http://thelinuxfaq.com/47-how-do-you-manage-configserver-firewall-csf Linux FAQ Manage CSF]</li>
</ol>
</ol>

Revision as of 03:53, 21 January 2017

CSF (Config Server Firewall) is an iptables management script and logging daemon.


Command Line Options

csf -h - get help for CSF command line options

csf -g IP_Address - Look (grep) for an IP address to see if it's blocked

csf -a IP_Address - permanently allows the specified IP address

csf -d IP_Address "Your comment goes here" - Blocks the specified IP address, comment tells why

csf -dr IP_Address - Removes a blocked IP from being blocked

csf -ra - Restart CSF and LFD (leave off the a to restart just CSF)


Configuration Files

CSF and LFD settings are stored in:
/etc/csf

csf.conf - main CSF configuration file


Logs

See Log Locations


References

  1. Linux FAQ Manage CSF