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.

Command to clear unblock IP's list..

Discussion in 'General Discussion' started by gamgam, May 14, 2008.

  1. gamgam

    gamgam Member

    Joined:
    Apr 7, 2008
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    hello,

    I forgot SSH Command to clear unblock IP's list..
    i've a client which is his IP was blocked .. I usually using : csf -a myIPclient to unblock it ..

    and now .. may client ws blocked again .. when i'm using csf -a myIPclient
    it show : add failed : myIPclient is in already in allow file /etc/csf/csf.allow

    a day ago i've been told that it could be a cache.. and then i've been given a command to clear unblock list and the try unblock it again .. and it work ..

    but i forgot the command :(:(

    does anybody knows the command ??
     
  2. 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
  3. brianoz

    brianoz Well-Known Member

    Joined:
    Mar 13, 2004
    Messages:
    1,146
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    Melbourne, Australia
    cPanel Access Level:
    Root Administrator
    csf -r -- restarts
    csf -a IP -- allows and should remove from deny list

    you may have to edit /etc/csf/csf.deny manually
    you may have to put your IP in /etc/csf/csf.ignore (I think that's the right file name, too lazy to check) to ensure it doesn't get reblocked.

    You may want to edit the CSF configuration settings to turn on the temporary blocking; that way if real people get blocked, it's only for an hour or so (set it to at least an hour though).
     
Loading...

Share This Page