The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

SOLVED Inform client he's blocked by firewall?

Discussion in 'Security' started by Elephantino, Feb 9, 2017.

  1. Elephantino

    Elephantino Registered

    Joined:
    Feb 9, 2017
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Germany
    cPanel Access Level:
    Root Administrator
    Hello,
    sometimes users IP is blocked by CSF. If they want to access theire Websites they get no Message to get that information. Just pages are not loading.
    Is there a way to redirect the blocked user to a information page?

    Greetings

    Elephantino
     
  2. dazeck

    dazeck Well-Known Member

    Joined:
    Jul 19, 2014
    Messages:
    58
    Likes Received:
    11
    Trophy Points:
    8
    Location:
    England
    cPanel Access Level:
    Root Administrator
    Hi. I had this a while ago and managed to solve it by enabling the messenger service on the CSF configuration.

    Code:
    Messenger service. This feature allows the display of a message to a blocked
    connecting IP address to inform the user that they are blocked in the
    firewall. This can help when users get themselves blocked, e.g. due to
    multiple login failures. The service is provided by two daemons running on
    ports providing either an HTML or TEXT message.
    
    This feature does not work on servers that do not have the iptables module
    ipt_REDIRECT loaded. Typically, this will be with MONOLITHIC kernels. VPS
    server admins should check with their VPS host provider that the iptables
    module is included.
    
    For further information on features and limitations refer to the csf
    readme.txt
    
    Note: Run /etc/csf/csftest.pl to check whether this option will function on
    this server
    
    1 to enable, 0 to disable
    
     
    cPanelMichael and Elephantino like this.
  3. Elephantino

    Elephantino Registered

    Joined:
    Feb 9, 2017
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Germany
    cPanel Access Level:
    Root Administrator
    Hi Dazeck,
    thank you for this deep information!

    Greetings
    Elephantino
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,064
    Likes Received:
    1,287
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    It looks like the messenger service feature in CSF addresses this issue. I'm marking this thread as solved.

    Thanks!
     
Loading...

Share This Page