<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://workwiki.in/index.php?action=history&amp;feed=atom&amp;title=CSF_Firewall</id>
	<title>CSF Firewall - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://workwiki.in/index.php?action=history&amp;feed=atom&amp;title=CSF_Firewall"/>
	<link rel="alternate" type="text/html" href="https://workwiki.in/index.php?title=CSF_Firewall&amp;action=history"/>
	<updated>2026-06-06T18:16:21Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.1</generator>
	<entry>
		<id>https://workwiki.in/index.php?title=CSF_Firewall&amp;diff=178&amp;oldid=prev</id>
		<title>Qljca: Created page with &quot;==Installation== &lt;pre&gt; cd /usr/local/src wget https://configserver.com/free/csf.tgz tar xfz csf.tgz cd csf ./install.cpanel.sh &lt;/pre&gt;  After installation, need to disable Testing mode. You can disable the testing flag by changing the value for TESTING from 1 to 0 in the configuration file /etc/csf/csf.conf using an editor like vi. &lt;pre&gt;vi etc/csf/csf.conf&lt;/pre&gt;   ==Log== &lt;pre&gt;/var/log/lfd.log&lt;/pre&gt;  ==Status== &lt;pre&gt; service lfd status  service csf status &lt;/pre&gt;  ==Enable...&quot;</title>
		<link rel="alternate" type="text/html" href="https://workwiki.in/index.php?title=CSF_Firewall&amp;diff=178&amp;oldid=prev"/>
		<updated>2024-06-20T15:24:34Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;==Installation== &amp;lt;pre&amp;gt; cd /usr/local/src wget https://configserver.com/free/csf.tgz tar xfz csf.tgz cd csf ./install.cpanel.sh &amp;lt;/pre&amp;gt;  After installation, need to disable Testing mode. You can disable the testing flag by changing the value for TESTING from 1 to 0 in the configuration file /etc/csf/csf.conf using an editor like vi. &amp;lt;pre&amp;gt;vi etc/csf/csf.conf&amp;lt;/pre&amp;gt;   ==Log== &amp;lt;pre&amp;gt;/var/log/lfd.log&amp;lt;/pre&amp;gt;  ==Status== &amp;lt;pre&amp;gt; service lfd status  service csf status &amp;lt;/pre&amp;gt;  ==Enable...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Installation==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /usr/local/src&lt;br /&gt;
wget https://configserver.com/free/csf.tgz&lt;br /&gt;
tar xfz csf.tgz&lt;br /&gt;
cd csf&lt;br /&gt;
./install.cpanel.sh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After installation, need to disable Testing mode. You can disable the testing flag by changing the value for TESTING from 1 to 0 in the configuration file /etc/csf/csf.conf using an editor like vi.&lt;br /&gt;
&amp;lt;pre&amp;gt;vi etc/csf/csf.conf&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Log==&lt;br /&gt;
&amp;lt;pre&amp;gt;/var/log/lfd.log&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Status==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
service lfd status &lt;br /&gt;
service csf status&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Enable/disable/restart==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Enable: csf -e&lt;br /&gt;
Disable: csf -x&lt;br /&gt;
Restart: csf -r&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Check IP in firewall==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
csf -g IP&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Whitelist an IP Address==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
csf -a IP&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Block an IP address==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
csf -d IP&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Unblock IP address==&lt;br /&gt;
&amp;lt;pre&amp;gt;csf -dr IP&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Allow IP temporarily==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
csf -ta ip ttl&lt;br /&gt;
csf -r&lt;br /&gt;
&lt;br /&gt;
Example: csf -ta 3600&lt;br /&gt;
This will allow IP address for 60 minutes. &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Configure SMTP==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SMTP_BLOCK = &amp;quot;1&amp;quot;&lt;br /&gt;
SMTP_ALLOWLOCAL = &amp;quot;1&amp;quot;&lt;br /&gt;
SMTP_PORTS = &amp;quot;25,26&amp;quot;&lt;br /&gt;
SMTPAUTH_LOG = &amp;quot;/var/log/exim_mainlog&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Qljca</name></author>
	</entry>
</feed>