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.

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:
    6
    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:
    667
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Canada
    /etc/hosts.allow and hosts.deny

    Read up on this and it will do what you like.
     
  3. TDD

    TDD Active Member

    Joined:
    Dec 21, 2002
    Messages:
    38
    Likes Received:
    0
    Trophy Points:
    6
    Thanks a lot :)
     
Loading...

Share This Page