[Guide] DirectAdmin server security: Phần I – Firewalls

Vấn đề bảo mật là một vấn đề quan trọng và là một trong những quan tâm đối với người quản trị Server/VPS. This article is a tutorial DirectAdmin server security mà chúng tôi sẽ hướng dẫn các bạn bảo mật máy chủ của mình.

Phần I – Firewalls

To secure your server, we will guide you to perform to install a good firewall. Firewall software we use is Firewalls – CSF is highly advanced and adds a wonderful layer of security with a certified check log daemon, SSH login notifications, detecting spam script, and more, many more. You can refer to other features of Firewalls – CSF homepage.

Đăng nhập vào máy chủ DirectAdmin của bạn với tài khoản root thông qua SSH. After that, use the following command to install CSF:

cd /usr/local/src/
wget http://configserver.com/free/csf.tgz
tar -xzf csf.tgz
cd csf
sh install.directadmin.sh

CSF default run in testing. You can activate it by logging into DirectAdmin with administrator account admin. Once you have logged in successfully, you select the button ConfigServer Firewall&Security in section Extra Features. You will see the following message:

Firewall Status: Enabled but in Test Mode – Don’t forget to disable TESTING in the Firewall Configuration

Choose Firewall Configuration in section csf – ConfigServer Firewall.

To replace:

TESTING = 1

St

TESTING = 0

Click the button Change at the bottom of the page and in the next screen click Restart csf lfd.
Now your host has installed the firewall, so the safety of your DirectAdmin server was much better!

Configuring CSF

We do not want to go into the full details of the configuration CSF, but we will give you some basic settings. The configuration can be done from DirectAdmin, no need to use SSH.
You choose ConfigServer Firewall&Security to configure the settings for CSF.
– Add your public IP whitelist firewall at the node Quick Allow.
– Choose Firewall Configuration and seek to change the PT_USERTIME PT_USERTIME = 900 ( corresponding to 15 minute). After making the changes you press Change at the bottom of the page and in the next screen click Restart csf lfd so that the configuration is done.
Security tutorial with DirectAdmin server with basic firewall helps protect your server. In the next section we will guide you how to install mod_security for Apache web server, mod_security will prevent many of the attacks upset.
VN:F [1.9.22_1171]
Rating: 5.0/5 (3 votes cast)

[Guide] DirectAdmin server security: Phần I – Firewalls, 5.0 out of 5 based on 3 ratings