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.

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:
    442
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    US
    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!
     
  2. Stefaans

    Stefaans Well-Known Member

    Joined:
    Mar 5, 2002
    Messages:
    451
    Likes Received:
    2
    Trophy Points:
    18
    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 ;)
     
Loading...

Share This Page