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!

APF Firewall allowing SSH help!

Discussion in 'General Discussion' started by sh4ka, Aug 25, 2005.

  1. sh4ka

    sh4ka Well-Known Member

    Joined:
    May 12, 2005
    Messages:
    444
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    Uruguay
    cPanel Access Level:
    DataCenter Provider
    I just installed APF and have a question, i searched and didn't find where to specify to allow my ADSL IP... so if I run the firewall i will be blocked...

    How can I add to the deny list to block all access for port 22, except my computer IP ?
    I want to block SSH access to everyone, except me to be able to access trough ssh.

    thkz!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. Stefaans

    Stefaans Well-Known Member

    Joined:
    Mar 5, 2002
    Messages:
    456
    Likes Received:
    3
    Trophy Points:
    318
    Location:
    Vancouver, Canada
    The following should work:
    * Remove port 22 from all the ingress and egress port lists in conf.apf. This will deny SSH access to everybody.
    * Add your own IP to the allow_hosts.rules. This will give you unrestricted access, i.e. bypass all the conf.apf settings.

    Important: Only do this if you have a static IP address, else you may lock yourself out of SSH access ;)
     
    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