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,Blocked all of connections on the server.

Discussion in 'General Discussion' started by evolver, Apr 15, 2005.

  1. evolver

    evolver Well-Known Member

    Joined:
    Apr 14, 2003
    Messages:
    83
    Likes Received:
    0
    Trophy Points:
    6
    Hello All ;

    I have a big issue with my APF Firewall.

    When I was reboot the server or start the APF the server is blocked all of connections.( I can't access my server )

    Please help me , What do you think about this issue ?

    Can I un-install and re-install it again ? If yes How can I ?

    Sorry my poor english.

    Thanks.
     
  2. ramprage

    ramprage Well-Known Member

    Joined:
    Jul 21, 2002
    Messages:
    667
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Canada
    You probably have your own IP blocked. If you have a secondary server, SSH to that, then from the console of your other server SSH to the one your blocked on and edit the deny_hosts file.

    Otherwise contact your DC and tell them to turn APF off and remove your IP.... if its a new installation you should have it set to DEV 1
     
  3. evolver

    evolver Well-Known Member

    Joined:
    Apr 14, 2003
    Messages:
    83
    Likes Received:
    0
    Trophy Points:
    6
    I don't secondary server.

    I was contact my DC and they said "We will shutdown the firewall for you" .

    Can I re-install after shutdown ?

    Thank you.
     
  4. StevenC

    StevenC Well-Known Member

    Joined:
    Jan 1, 2004
    Messages:
    254
    Likes Received:
    0
    Trophy Points:
    16
    Make sure you are using the correct interface (eth0, eth1, etc)
     
  5. amal

    amal Well-Known Member

    Joined:
    Nov 22, 2003
    Messages:
    155
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hi,

    This is because the default apf configuration blocks almost all ports... After installing apf, download the config file from http://amalji.com/configs/conf.apf and copy the file to /etc/apf/

    then Edit the file - /etc/apf/conf.apf

    Change the line -

    DEVM="0"

    to

    DEVM="1"

    Restart apf using the command /etc/init.d/apf restart

    If you are able to connect after the restart, then change the

    DEVM="1" back to
    DEVM="0"

    If it's not working, do not worry, apf will flush the firewall in 5 minutes... So all the firewall rules started by apf will get deleted in 5 minutes... You can get into the server and debug after that ..
     
Loading...

Share This Page