Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

How to Find the IP Blocked by the Firewall in WHM?

Discussion in 'Security' started by ccw, Apr 20, 2019.

  1. ccw

    ccw Registered

    Joined:
    Apr 20, 2019
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    China
    cPanel Access Level:
    Root Administrator
    Hi,

    If an IP is blocked by the firewall on the server. How can I know the specific IP address being blocked in the web-based WHM system?

    Thanks
     
  2. GOT

    GOT Get Proactive! PartnerNOC

    Joined:
    Apr 8, 2003
    Messages:
    1,372
    Likes Received:
    154
    Trophy Points:
    193
    Location:
    Chesapeake, VA
    cPanel Access Level:
    DataCenter Provider
    In plugins, go to ConfigServer Firewall, and click the button for Firewall Deny IPs
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. ccw

    ccw Registered

    Joined:
    Apr 20, 2019
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    China
    cPanel Access Level:
    Root Administrator
    Hi, I go to "Plugins", but there is only "Add IP to Firewall", no "ConfigServer Firewall"
     
  4. GOT

    GOT Get Proactive! PartnerNOC

    Joined:
    Apr 8, 2003
    Messages:
    1,372
    Likes Received:
    154
    Trophy Points:
    193
    Location:
    Chesapeake, VA
    cPanel Access Level:
    DataCenter Provider
    No indication what firewall it is?

    In shell you can run

    iptables --list --numeric |grep DROP

    And that should give you a list of blocked ips regardless of which control software is running.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. RoseHosting

    RoseHosting Registered PartnerNOC

    Joined:
    Jan 3, 2003
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    151
    You can run this command:

    iptables -nvL | grep 1.2.3.4

    Replace 1.2.3.4 with the actual IP address you want to find.
     
  6. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    5,815
    Likes Received:
    443
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    If you're not running a 3rd party firewall like CSF both of the above suggestions will be useful. Please let us know if you need any further help!

    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice