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.

Unblock SSHD / SMTP

Discussion in 'Security' started by Mark_CFH, May 6, 2014.

  1. Mark_CFH

    Mark_CFH Well-Known Member

    Joined:
    Apr 2, 2013
    Messages:
    64
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Okay so, I was doing some reading up on blocking IPs from SSH access... And I think I "over did it".

    I can access WHM and cPanel just fine. I seen there was an IP that logged into SSH, so I blocked that IP (No, it wasn't my IP). But when I ran this script, now I cant access SSH or FTP at all.

    I ran the following:

    Code:
    iptables -I INPUT 1 -p tcp -m tcp -s 123.123.123.123 --dport ssh -j ACCEPT
    iptables -I INPUT 2 -p tcp -m tcp --dport ssh -j DROP
    
    And since I did that, now I cant access SSH or FTP at all (I used the IP that I seen that had accessed the server via SSH).

    Is there something in WHM that I can use to "unlock" what I did?
     
  2. Mark_CFH

    Mark_CFH Well-Known Member

    Joined:
    Apr 2, 2013
    Messages:
    64
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Nevermind, I fixed it by using ipmi. Sorry.
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    I am happy to see you were able to resolve the issue. Thank you for updating us with the outcome.
     
Loading...

Share This Page