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 Lockdown Wizkid,Expert,Hacker needed

Discussion in 'General Discussion' started by viooltje, Jul 22, 2008.

  1. viooltje

    viooltje Well-Known Member

    Joined:
    Mar 14, 2004
    Messages:
    60
    Likes Received:
    0
    Trophy Points:
    6
    Well now I've locked myself out of the box with APF!
    I have kinda disabled all ports that's accesable like this:
    deny_hosts.rules

    #ftp
    tcp:in:d=21:s=0/0
    #ssh
    tcp:in:d=22:s=0/0
    #smtp
    #tcp:in:d=25:s=0/0
    .......
    out:d=21:d=0/0
    out:d=22:d=0/0
    ......


    But I have WHM and CPANEL acces, there I can upload files and modify website files or change configuration of the webserver.

    I need to find out how to stop APF from inside the WHM or cpanel.
    Is this possible? I have looked for a few hours now it's not possible I think.

    Now I try to upload an php or perl code and accesing the website to apf-f and remove the cronjob.
    But does it work?

    <?
    system("apf -f");
    exec('apf -f');
    ?>

    This is not working?

    Somebody here got any tips or tricks?
    Thank allot for your time.
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,451
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    You might do best to contact your datacenter to see if they can help. Much safer than asking a forum of strangers. ;)
     
  3. viooltje

    viooltje Well-Known Member

    Joined:
    Mar 14, 2004
    Messages:
    60
    Likes Received:
    0
    Trophy Points:
    6
    I submitted both support tickets to the datacenter and cpanel.
    Both can't acces evrythin glike me but whm.
    cpanel support came with answer in seconds!!
    that's master skillzz in my eye.

    WHM Cpanel support is the best!
    I got his and worked
    flushes the iptables because APF is a iptable something.

    https://serverip:port/scripts2/doautofixer?autofix=iptablesflush

    thanks allot cpanel suppport team.

    btw i'm the typo expert I think
     
  4. verdon

    verdon Well-Known Member

    Joined:
    Nov 1, 2003
    Messages:
    836
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Northern Ontario, Canada
    cPanel Access Level:
    Root Administrator

Share This Page