Quantcast
Channel: Webkul Blog
Viewing all articles
Browse latest Browse all 5488

DDoS Firewall Protection for Magento 2

$
0
0

Introduction

The DDoS Firewall Protection for Magento 2 module allows the admin to enable DDOS protection for the online store. Using this module the admin can set the firewall provider and the URL to trigger for DDOS protection of the website.

The admin can even set the average server load threshold and RAM usage threshold. If both server usage or RAM usage is more than the configured one then this module automatically triggers the firewall protection.

The admin can also enable the automatic email alert for the DDOs protection and can even set the email template for it.

What is DDoS Attack – Distributed Denial of Service?

A scenario where your web store has flooded with too much traffic that it can not accommodate anymore is called a distributed denial of service attack.

Now since the website is now not in a state to function it can be termed as denial of service. Moreover, the module helps the store owners to protect their website using a Firewall service provider.

Features – DDoS Firewall Protection for Magento 2

  • Auto Firewall protection.
  • Console Command to check status.
  • Console Command to enable/disable the firewall.
  • Works with Cloudflare WAF.
  • Measures server load and memory.
  • Email alerts on High server usage.

Installation – DDoS Firewall Protection for Magento 2

Firstly, the customers will get a zip folder and they have to extract the contents of this zip folder on their system. Moreover, the extracted folder has an src folder, in the src folder, you will find the app folder.

Then, you will have to transfer this app folder into the Magento 2 root directory on the server as depicted below.

First command –

php bin/magento setup:upgrade

Second Command –

php bin/magento setup:di:compile

Third Command –

php bin/magento setup:static-content:deploy

Fourth Command –

php bin/magento indexer:reindex

After the successful installation of DDoS Firewall Protection for Magento 2, you have to run the command in the Magento 2 root directory.

Cache Management

Then, after running the commands, you have to flush the cache from the Magento admin panel. So, navigate through->System->Cache management as shown below.

Multilingual Support

Now, the admin will navigate to Stores->Configuration->General ->Locale Options. Here, you can select the locale as German. (Locale is the language into which the admin desires to translate his store content).

Module Translation

If you want to translate the module language from English to German. Then, follow the following path in the unzipped Magento 2 web security folder. src/app/code/Webkul/DDoSFirewallProtection/i18n.

After that, you will receive a CSV file with the name “en_US.csv”. Now, rename that CSV on your region code and language code “de_DE.csv”.

Next, translate all right-side content in your language. After editing the CSV, and saving it Next, you need to upload it where you have installed Magento 2 on the server.

Consequently, the module will get translated into your desired Language.

Module Configuration – DDoS Firewall Protection for Magento 2

After the successful installation of this module. To configure the module navigate to the Stores > Configuration > DDoS Firewall Protection for Magento 2.

General Settings

Further, the admin can configure the general settings by entering the inputs for the below fields.

Enable Auto DDoS Protection: The admin can enable the Distributed Denial of Service Protection to protect the web store from an attack and enable the firewall security system. 

Average Server Load Threshold: The admin needs to enter a server load value, exceeding which the firewall protection will be activated.

RAM Usage Threshold: The admin needs to enter a RAM Usage Threshold value, exceeding which the firewall protection will be activated.

Firewall Provider: The admin needs to select a Firewall service provider from here.

URL To Trigger: The admin can enter their Firewall service provider URL to trigger here.

User Name: The admin needs to enter the User Name associated with their Firewall service provider account.

Password: The admin needs to enter the password associated with their Firewall service provider account.

Check Firewall Status – Commands

Moreover, the admin can check the active or disabled status of the firewall by running the below command.

php bin/magento ddosprotect:status:show

Manually Activate Firewall

However, if the admin requires DDoS protection it can be done by manually activating the Firewall, Simply run the below command.

php bin/magento ddosprotect:status:set enable/disable

As a result, the Firewall security will be enabled since the firewall has been triggered to be enabled manually by the admin here.

Auto Firewall Activation Using Cron

Further, leveraging the cron in Magento 2 the admin can save considerable time by setting cron using which the firewall will be activated after a set interval of time.

cron job: php bin/magento cron:run --group="cron_group_wk_ddos"

Note: Moreover, the admin can set the time interval of the cron frequency.

Email Options

Further, the admin can configure Email options and alerts.

Firstly, the admin needs to give input for the below fields.

Auto Email Alerts: Whenever the Firewall security is enabled the admin will be sent email alerts if this field is set as Yes.

Firewall Enabled Template: The admin can select a template for the firewall enabled email.

Email to Alert: The admin can specify an email Id here to which the firewall enable email alerts will be sent.

Firewall Activation – DDoS Protection

As per the set configurations by the admin as soon as one of the conditions occurs or both simultaneously i.e namely Average Server Load Threshold or RAM Usage Threshold. 

As a result, the firewall will be activated as shown in the image below to provide security to your store.

That’s all for the DDoS Firewall Protection for Magento 2. However, if you still have any questions regarding the module please create a support ticket by clicking here or send an email to support@webkul.com


Viewing all articles
Browse latest Browse all 5488

Trending Articles