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 Uninstall

Discussion in 'General Discussion' started by digitard, Mar 15, 2005.

  1. digitard

    digitard Well-Known Member

    Joined:
    Aug 13, 2004
    Messages:
    70
    Likes Received:
    0
    Trophy Points:
    6
    I installed APF and it goofed up my server and I re-logged in via SSH and checked the configs and they are set the way I was told but I cannot access my websites hosted on my box at all (they all time out).

    I can ping the box, and I can login through SSH so I know its working, but I figure since the last thing I updated was APF then its probably that.

    How do I unisntall so I can get things up again until I re-read up on APF?
     
  2. digitard

    digitard Well-Known Member

    Joined:
    Aug 13, 2004
    Messages:
    70
    Likes Received:
    0
    Trophy Points:
    6
    **update**

    I re-logged in via SSH and changed the DEV line to '1' again (where it was during install) and it seems to have allowed me back into access after a reboot.

    What do you think is causing the problems?

    I followed the steps here:
    http://www.hostinglife.com/security.php

    I would still like to do a full uninstall if possible for now, but if a fix could be provided that'd rock.
     
  3. OCX

    OCX Well-Known Member

    Joined:
    Sep 20, 2003
    Messages:
    232
    Likes Received:
    0
    Trophy Points:
    16
    make sure you set your network device in conf.apf

    # Untrusted Network interface; all traffic on defined interface will be
    # subject to all firewall rules. This should be your internet exposed
    # interface. Only one interface is accepted for this value.
    IF="eth0"


    more config

    # Common ingress (inbound) TCP ports
    IG_TCP_CPORTS="22,20,21,25,30,53,80,110,143,443,465,900,993,2082,2083,2086,2087,2095,2096"

    # Common ingress (inbound) UDP ports
    IG_UDP_CPORTS="20,21,465,873,53"

    # Common ICMP (inbound) types
    # 'internals/icmp.types' for type definition; 'all' is wildcard for any
    IG_ICMP_TYPES="3,5,11,0,30,8"




    # Egress filtering [0 = Disabled / 1 = Enabled]
    EGF="1"

    # Common egress (outbound) TCP ports
    EG_TCP_CPORTS="20,21,25,30,37,53,113,465,873,80,443,2087,2086,2089,43,2703"

    # Common egress (outbound) UDP ports
    EG_UDP_CPORTS="20,21,873,465,53,6277"







    port 900 is a special port i usemy self so ignore that #





    add your IP to allow_hosts.rules to keep your self from gettin blocked / banned

    then restart apf and your good to go..
     
Loading...

Share This Page