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!

Port Range fails in Host Access Control

Discussion in 'Security' started by parvus, Jan 6, 2017.

  1. parvus

    parvus Registered

    Joined:
    Jan 6, 2017
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Europe
    cPanel Access Level:
    Root Administrator
    Hi,

    Correct me where I am going wrong.

    Host Access Control works fine, except for one range: 213.229.192.0/255.255.192.0

    This gives us 213.229.192.1 - 213.229.255.254

    Yet connecting from 213.229.24x.xx fails, does not have any effect for either DENY or ALLOW.

    Other ranges work OK and can connect fine from mentioned IP if I remove all rules.

    Trippe and quadruple checked the range and connecting IP.

    Tried reordering and re-adding ranges, same result, two work and this one fails...

    rule looks like this:
    range allow
    range allow
    range allow
    all deny

    Thank you
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,442
    Likes Received:
    1,961
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    Could you post the full output from the /etc/hosts.allow file with the rules that are not working? You can replace real IP addresses with examples.

    Thank you.
     
    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