How to Secure cPanel and WHM - A simple step-by-step guide

Поделиться
HTML-код
  • Опубликовано: 21 июл 2024
  • Learn how to secure your cPanel and WHM on your Linux server, to protect against the most common hack attempts.
  • ХоббиХобби

Комментарии • 28

  • @BentOaksGarage
    @BentOaksGarage 3 года назад +3

    This actually helped me, I only know the basics when it comes to servers and needed to secure it more after someone hacked our system. Great video

  • @BlackCapDesignPeterborough
    @BlackCapDesignPeterborough 3 года назад +5

    This tutorial is interesting but very misleading. Brute Force Protection Period (in minutes) does NOT indicate how long an attacker will be blocked; it is the maximum time period set for monitoring failed login attempts on a single account for all IP addresses. So if you set it for 100 minutes, you are providing 1 hour and 40 minutes to monitor failed login attempts by all IP addresses to all cPanel accounts. IP Address-based Brute Force Protection Period (in minutes) does the same thing, but it tracks each attacker based on their IP address - so again setting this to 100 does NOT block them for 100 minutes. Don't take my word for it: it's referenced in this post: forums.cpanel.net/threads/cphulk-period-protection-or-detection.624091/ and the cPanel documentation: docs.cpanel.net/whm/security-center/cphulk-brute-force-protection/

  • @ProGamer-nm1ey
    @ProGamer-nm1ey 4 года назад +2

    great video! this helped me!

  • @ravi_view
    @ravi_view 3 года назад +1

    thanks for share us keep more share...

  • @nyezinahsolomon
    @nyezinahsolomon 3 года назад +1

    In fact I like your content I have just subscribed

  • @AwesomeMetalBands
    @AwesomeMetalBands 3 года назад +1

    Brilliant content you now have a new subscriber!

  • @agenciadigital6713
    @agenciadigital6713 3 года назад +2

    Does this apply only to the WHM and cPanel or we can block people to access the hosted websites?
    Thanks in advance and thanks, great video!

  • @abdulquadir9342
    @abdulquadir9342 2 года назад +1

    Thank you very much ...

  • @GauravSharma-jz2rl
    @GauravSharma-jz2rl 3 года назад +1

    Thanks for this wonderful video. In case we use Cloudflare's proxy/CDN to protect our sites/server do we still need to protect our servers and WHM?

    • @FeryKaszoni
      @FeryKaszoni  3 года назад +1

      Good question, yes, it's always good to set up cphulk, and enable the jailed ssh, or disable ssh completely if possible, even if CloudFlare is being used. We're using CloudFlare as well for all our sites.

  • @dev-drink
    @dev-drink 3 года назад +1

    whm/cpanel v98, avoid blacklisting/whitelisting countries as bug leads to blocking of root account, so avoid

  • @MagaaloNet
    @MagaaloNet 2 года назад

    Can you do more video backend and front end security

  • @RotterStudios
    @RotterStudios 3 года назад +1

    LOVED THIS VIDEO THANKS! Anything else to do or would this be good enough? Would this help with DDOS attack? Best method for DDOS attack stopping? thanks

  • @user-dt8pq1ox6k
    @user-dt8pq1ox6k 2 года назад

    good job

  • @RotterStudios
    @RotterStudios 3 года назад +1

    Thank you SO MUCH! LOVED THE VIDEO! SUBBED! I had no idea about this. I think my server got DDOS attack. I'm on a new server now with different hosting company and did all this. I think I will blacklist my country as well but whitelist my ip. that should work, correct? also, should I also click the boxes that say BLOCK IP ADDRESSES AT THE FIREWALL LEVEL IF THEY TRIGGER BRUTE FORCE PROTECTION? Does this mean it will permanently block those ip's at the firewall level? thoughts on this?

    • @FeryKaszoni
      @FeryKaszoni  3 года назад

      As a rule of thumb, always use Cloudflare for your websites. You can mitigate DDOS attacks with the click of a button in there. CpHulk will not protect your website against DDOS attacks, but we've managed to do magic with Cloudflare and it's advanced firewall and rate limiting rules. I hope it helps.

  • @peterj3873
    @peterj3873 2 года назад

    if do country-level Blacklist. can there can login from Webmail or it will blocked ?

    • @ctlnb
      @ctlnb Год назад

      no you can't. If you block let's say germany and than you or your client who has a website on that whm server, you or your client wont be able to use webmail, ie; your cpanel emails and/or cpanel at all. So, this is not a good idea to use what you see in this video unless you know you will not visit some countries. Or say you have clients than dont use this said in the video unless you know your clients will never travel to say, papa quinea or another one Côte d'Ivoire etc

  • @abelgeerojas
    @abelgeerojas 2 года назад

    I’m from United state fellas I accidentally black listed United States like a rookie but i white listed it but now is not letting me search up my ip from whm

  • @hostnali
    @hostnali 3 года назад +1

    If you block all countries, you won't be able to unblock yourself. so do not select all and block. In case you do, Find a way to login to the server via VNC or any other way and run the command below - replace 192.0.2.0 with your actual IP. You can check your IP by googling What's my IP. The command will unblock your IP and you will be able to log in, once logged, you can now go and remove your country from the blacklist.
    /usr/local/cpanel/scripts/cphulkdblacklist 192.0.2.0

    • @ctlnb
      @ctlnb Год назад +1

      Probably it would have worked for me too if I would have not followed this tutorial. What I did is blocked by mistake all countries including my country and now I can no longer log in to that server through whm login portal. Also as this was not enough trouble for me, I've by mistake also disabled root access through ssh for security reasons, and forgot to create another user with admin privileges. So, now am in a situation where the server blacklisted all countries and so even if I use a VPN it won't work besides that root access is no longer an option also. This is how you f..k up a server! :( However, I've made some research and found that there are a few countries that are not present in the cpkulk countries manager and those countries are :
      1. North Macedonia
      2. Brunei Darussalam
      3. saint Thomas
      4. Côte d'Ivoire
      5. Sao Tome & Principe
      6. Eswatini
      But now I realise that there is no VPN on the planet that has servers in those countries or at least one of those countries in order to get an IP in that country, leaving me with another issue. However, thank god I remember that I have an IP whitelisted in cphulk and I will try this as a last option till I find another option. And by the way, why this guy that created this video does not mention the countries that you blacklist, in fact, those countries won't be able to log in to email and Cpanel??? is that something he doesn't know or doesn't want to tell? anyway, the thing is that if your client wants to visit Thailand for example and you blacklisted Thailand then your client wont is able to use webmail and Cpanel plus another 3 services.

  • @peterjohn1664
    @peterjohn1664 3 года назад

    Now I'm blocked I can't access whm/cpanel! what's the solution?

    • @FeryKaszoni
      @FeryKaszoni  3 года назад

      I would try from a different IP address. Otherwise, get in touch with your hosting company, what happened is you have probably blacklisted your country, and did not add your IP address to the whitelist.

    • @hostnali
      @hostnali 3 года назад

      Find a way to login via VNC or any other way and run the command below - replace 192.0.2.0 with your actual IP. You can check your IP by googling What's my IP. The command will unblock your IP and you will be able to login, once logged, you con now go and remove your country from the blacklist.
      /usr/local/cpanel/scripts/cphulkdblacklist 192.0.2.0

    • @ctlnb
      @ctlnb Год назад

      @@FeryKaszoni I've added my IP to the whitelist but for some reason, I see that my IP on my laptop in no longer the ip used to be a while ago. Have no clue why the ip on my laptop changed since I added it initially. Anyway, do you know how to set my laptop ip to the one I've used? I have the ip saved on my computer in a notebook file so I know what the IP that I've added to the whitelist is.

  • @nyezinahsolomon
    @nyezinahsolomon 3 года назад

    Why are some people so bad? so you mean those are potential hackers on the server?

    • @FeryKaszoni
      @FeryKaszoni  3 года назад

      Yes, they are trying to access the server, once they log-in, they usually upload malicious software that is being used for phishing and black hat SEO.

  • @ps2-one
    @ps2-one 2 года назад +2

    Don't make a video if you don't know what you're doing.