frame

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Register

[CSF] ConfigServer Security & Firewall installation on DirectAdmin

ValentineValentine Member
edited February 2020 in Performance and Security


ConfigServer Security & Firewall (CSF) is a suite of scripts provides:
  • A straight-forward SPI iptables firewall script;
  • A daemon process that checks for Login Authentication;
  • A Control Panel configuration interface;
  • ... and much more!
The tutorial was prepared with our "CentOS 7 + DirectAdmin" template and is meant to work on our self-managed virtual private servers.

0. Preliminary requirements:
  • "CentOS 7 + DirectAdmin" template installed on server;
  • Fully updates server software (yum update).

1. CSF installation

Installation of CSF is quite straightforward because it preconfigured to work with DirectAdmin:
cd /usr/src
wget https://download.configserver.com/csf.tgz
tar -xzf csf.tgz
cd csf
sh install.sh
2. CSF configuration

After installation CSF starts in testing mode and there are a couple of things to take care of. First of all, you have to log in to your DirectAdmin. By default, the address is:

http://your-server-ip:2222

After successfully login you should select "ConfigServer Firewall&Security":



You should now see that there are two notices that we need to take care of. So select "ConfigServer Firewall" and then select "Firewall Configuration":



First, we will turn off testing mode:



And then we should restrict syslog/rsyslog access:



After these changes press the button "Change" at the bottom of the page and "Restart csf+lfd" afterward.

That is it, now you have a fully working ConfigServer firewall. For more information regarding CSF please visit their Read me page.

Comments

  • Installing ConfigServer Security & Firewall (CSF) on DirectAdmin is a prudent move to bolster server security. CSF provides a robust defense mechanism against threats, offering features like IP blocking and connection tracking. Its integration with DirectAdmin streamlines management, ensuring a comprehensive and user-friendly approach to safeguarding your server environment.

  • @Valentine said:
    (Image)

    ConfigServer Security & Firewall (CSF) is a suite of scripts provides:* A straight-forward SPI iptables firewall script;

    • A daemon process that checks for Login Authentication;

    • A Control Panel configuration interface;

    • ... and much more!

    The tutorial was prepared with our "CentOS 7 + DirectAdmin" template and is meant to work on our self-managed virtual private servers.

    1. Preliminary requirements:* "CentOS 7 + DirectAdmin" template installed on server;
    • Fully updates server software (yum update).
    1. CSF installation

    Installation of CSF is quite straightforward because it preconfigured to work with DirectAdmin:cd /usr/src

    wget https://download.configserver.com/csf.tgz

    tar -xzf csf.tgz

    cd csf

    sh install.sh

    1. CSF configuration

    After installation CSF starts in testing mode and there are a couple of things to take care of. First of all, you have to log in to your DirectAdmin. By default, the address is:

    http://your-server-ip:2222

    After successfully login you should select "ConfigServer Firewall&Security":

    You should now see that there are two notices that we need to take care of. So select "ConfigServer Firewall" and then select "Firewall Configuration":

    (Image)

    First, we will turn off testing mode:

    And then we should restrict syslog/rsyslog access:

    (Image)

    After these changes press the button "Change" at the bottom of the page and "Restart csf+lfd" afterward.

    That is it, now you have a fully working ConfigServer firewall. For more information regarding CSF please visit their Read me page.

    thank you so much good informetion

Sign In or Register to comment.

Time4VPS

Learn how to install a web and database server, email, FTP client or other applications. Discover and share information on server security or optimization recommendations.
Feel free to join our constantly expanding community, participate in discussions, strengthen your knowledge on Linux and Windows server management!
© 2013 - 2024 Time4VPS. All rights reserved.

Get In Touch