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.

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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,064
    Likes Received:
    1,287
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page