Bobcares

Block Domains Dynamic IP using CSF – Quick fix !

by | Dec 18, 2019

Are you trying to Block Domains Dynamic IP using CSF?

CSF is one of the best security tools that can protect the server from various attacks.

Sometimes there will be certain domains that have dynamic IPs. Thus, we cannot block a particular IP to block the domain on the server.

At Bobcares, we often receive requests to block dynamic IP using CSF as a part of our Server Management Services.

Today, let’s discuss how our Support Engineers block the dynamic IP in the CSF firewall.

 

What is CSF and its advantages?

ConfigServer Firewall, also known as CSF, is a firewall configuration script created to provide better security to the servers. Also, it helps to block and allow the IP address on the server.

The CSF firewall application suite for Linux servers. It also checks for login authentication failures on mail servers, OpenSSH servers, Ftp servers so on.

Moreover, the CSF firewall restricts access by port number. And it has extra security features. The other thing is that we can simply install the CSF on the servers.

Let’s discuss the main advantages of CSF firewall

  1. It prevents the server from DoS attacks.
  2. Also, detect intrusion and other malicious content, traffic, and programs.
  3. CSF block bad IP addresses from gaining access to the server.
  4. It provides full control and management of the traffic entering and exiting on websites.

Moreover, in addition to the above-mentioned benefits, CSF also features Login Failure Daemon (LFD).  LFD periodically checks the server activities in a timed manner.

Also, LFD looks for attacks like brute-force login attempts. And if found any attacks it blocks the IP address attempting to attack that server. So most of the server owners prefer this firewall to secure their servers.

 

How we Block Domains Dynamic IP using CSF?

Till now we discussed the CSF firewall and its benefits. Now let’s see how our Support Engineers block the dynamic IP using the CSF firewall.

To do this, we followed the below steps to block the dynamic IP.

1. Firstly, we changed to the CSF directory.

cd /etc/csf

2. Then we opened the CSF configuration file with an editor.

vi csf.conf

3. Next, we searched  for “DYNDNS” on the file and can see some lines like below:

DYNDNS = “0”

That means the function is disabled. So we changed it to “300”. This check for updates every 5 minutes. Further, we turned on the DYNDNS_IGNORE option too.

Block Domains Dynamic IP using CSF

4. Next, we set up the time interval between the checks here.

We added the value to this parameter ‘GLOBAL_DYNDNS_INTERVAL’ in the CSF configuration file.

GLOBAL_DYNDNS_INTERVAL = “600”

5. Then, we specified the domain that we need to block in the CSF. For this, we edited the csf.dyndns file.

vi /etc/csf/csf.dyndns

6. Finally, we restarted the CSF service to activate this.

csf -r

In this way, we blocked the domains having dynamic IPs using CSF for our customers.

 

[Need more assistance on Block Domains Dynamic IP using CSF? We’ll help you.]

 

Conclusion

In short, sometimes there will be certain domains that have dynamic IPs and we cannot block a particular IP to block the domain on the server. Today we saw how our Support Engineers blocked the domains dynamic IP using the CSF.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

var google_conversion_label = "owonCMyG5nEQ0aD71QM";

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie
_clck, _clsk, CLID, ANONCHK, MR, MUID, SM

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

_reb2bgeo - The visitor's geographical location

_reb2bloaded - Whether or not the script loaded for the visitor

_reb2bref - The referring URL for the visit

_reb2bsessionID - The visitor's RB2B session ID

_reb2buid - The visitor's RB2B user ID

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid
_reb2bgeo, _reb2bloaded, _reb2bref, _reb2bsessionID, _reb2buid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF