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!

Allow only few IPs to access box - how?

Discussion in 'General Discussion' started by TDD, Mar 13, 2006.

  1. TDD

    TDD Active Member

    Joined:
    Dec 21, 2002
    Messages:
    38
    Likes Received:
    0
    Trophy Points:
    156
    Hi!

    I have a requirement where only 10-15 IPs will have access to a box (for ssh, website,email etc..) - how can this be achieved?

    via APF firewall? I understand there is allow_hosts.rules and deny_hosts.rules but what could be in deny_hosts.rules so it can drop all traffic except from few IPs.

    Any hints would be appreciated.

    Thanks!
     
  2. ramprage

    ramprage Well-Known Member

    Joined:
    Jul 21, 2002
    Messages:
    655
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    Canada
    /etc/hosts.allow and hosts.deny

    Read up on this and it will do what you like.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. TDD

    TDD Active Member

    Joined:
    Dec 21, 2002
    Messages:
    38
    Likes Received:
    0
    Trophy Points:
    156
    Thanks a lot :)
     
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