How to enable/disable ConfigServer Firewall in WHM?

ConfigServer Firewall, often called CSF, is a popular tool for making servers safer. It helps to control the traffic coming in and going out of your server. You can easily turn CSF on or off to make your server more secure. This lets you adjust your firewall settings as you like. This guide will show you how to turn ConfigServer Firewall on or off in WHM.

ConfigServer Firewall is not managed by cPanel Software; it's a separate security tool. If you encounter problems with ConfigServer Firewall or if it causes issues with cPanel Software, we may ask you to turn it off temporarily for troubleshooting.

A) Turn off and Turn on ConfigServer Firewall from WHM Panel

Here are the steps to enable or disable ConfigServer Firewall (CSF) in WHM:

Step 1: Log in to your WHM Panel.

Step 2: In the search box, type "firewall" and click the result. Go to the Plugins section and select "ConfigServer Security & Firewall."

Note: This option won't appear if you've uninstalled CSF from your VPS or dedicated server. If you're using AccuWebhosting VPS or a dedicated server, it may not be visible because we've disabled it for security reasons. If you want to enable it, please contact us, and we'll assist you in enabling the firewall on your VPS.

Step 3: Navigate to the "CSF - ConfigServer Firewall" section and choose "Firewall Disable" to turn it off.

Step 4: After clicking "Firewall Disable," you'll receive a confirmation message indicating that the CSF firewall has been disabled.

Step 5: To enable the CSF firewall, click "Firewall Enable."

Step 6: After clicking "Firewall Enable," you'll receive a confirmation message indicating that the CSF firewall has been enabled.

B) To turn off and on ConfigServer Firewall from the terminal:

Here are the steps to enable or disable ConfigServer Firewall (CSF) from the terminal.

Step 1: Log in to your VPS or dedicated server via SSH as the root user.

Step 2: Open the terminal and run the following command to disable CSF firewall:

# csf -x

You'll see the output of this command.

Step 3: To enable the CSF firewall in the terminal, type the following command:

# csf -e

You'll see the output of this command.

Conclusion:

ConfigServer Firewall (CSF) is a useful tool for managing server security in WHM. Enabling or disabling CSF should be done with consideration for your server's specific security needs and traffic patterns. By following these steps, you can easily manage CSF in WHM to align with your server's requirements, ensuring the security and performance of your hosted websites and services.


Was this answer helpful?

« Back

chat