Welcome to Centmin Mod Community
Become a Member

DigitalOcean Blocking my IP

Discussion in 'Virtual Private Server (VPS) hosting' started by BoostN, Nov 1, 2014.

  1. BoostN

    BoostN Active Member

    125
    27
    28
    Aug 19, 2014
    Ratings:
    +40
    Local Time:
    12:32 PM
    1.13.6
    10.0.34
    Yes, just removed so it's not on the WWW.

     
  2. eva2000

    eva2000 Administrator Staff Member

    49,277
    11,294
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,571
    Local Time:
    3:32 AM
    Nginx 1.21.x
    MariaDB 10.x
    try
    Code:
    csf -dr ip
    csf -tr ip
    from csf help command
    Code:
     csf -h
    Code:
           -dr, --denyrm ip
                  Unblock an IP and remove from /etc/csf/csf.deny
    
           -tr, --temprm ip
                  Remove an IP from the temporary IP ban or allow list
    
    
     
  3. BoostN

    BoostN Active Member

    125
    27
    28
    Aug 19, 2014
    Ratings:
    +40
    Local Time:
    12:32 PM
    1.13.6
    10.0.34
    Still shows the same output when I grep via
    csf -g <ip>

    When I run your new commands, this is my output.
     
  4. BoostN

    BoostN Active Member

    125
    27
    28
    Aug 19, 2014
    Ratings:
    +40
    Local Time:
    12:32 PM
    1.13.6
    10.0.34
    Doing a CSF restart fixed it... I'm assuming since I removed the IP manually via the file.
     
  5. eva2000

    eva2000 Administrator Staff Member

    49,277
    11,294
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,571
    Local Time:
    3:32 AM
    Nginx 1.21.x
    MariaDB 10.x
    yes editing files requires restart of csf

    which file was it in ? csf.deny ?
     
  6. BoostN

    BoostN Active Member

    125
    27
    28
    Aug 19, 2014
    Ratings:
    +40
    Local Time:
    12:32 PM
    1.13.6
    10.0.34
    Yes.
     
  7. eva2000

    eva2000 Administrator Staff Member

    49,277
    11,294
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,571
    Local Time:
    3:32 AM
    Nginx 1.21.x
    MariaDB 10.x
    strange that csf -dr ip didn't remove it then
    make sure csf has been updated, usually it auto updates itself
    Code:
    csf -u
     
    Last edited: Feb 24, 2016
  8. eva2000

    eva2000 Administrator Staff Member

    49,277
    11,294
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,571
    Local Time:
    3:32 AM
    Nginx 1.21.x
    MariaDB 10.x
    @BoostN did you end up figuring out how your ip got blocked ? was it failed sshd lfd daemon blocked ?

    I'm thinking of adding to Centmin Mod 123.09beta01 automatically grabbing the end user's ssh client ip address from their logged in session and entering it into /etc/csf/csf.ignore as a safeguard

    something like below command will get the end users ip from their SSH session but IIRC some folks have VPN or other setups where their ip from that ends up as 127.0.0.1 or something
    Code:
    echo $SSH_CLIENT | awk '{print $1}'
    and doesn't help if end users ip is dynamically assigned
     
  9. BoostN

    BoostN Active Member

    125
    27
    28
    Aug 19, 2014
    Ratings:
    +40
    Local Time:
    12:32 PM
    1.13.6
    10.0.34
    Yes it was from SSH console.. I've had no problems since I've whitelisted my IP's.
     
  10. eva2000

    eva2000 Administrator Staff Member

    49,277
    11,294
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,571
    Local Time:
    3:32 AM
    Nginx 1.21.x
    MariaDB 10.x
    thanks for the following up info :)
     
  11. eva2000

    eva2000 Administrator Staff Member

    49,277
    11,294
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,571
    Local Time:
    3:32 AM
    Nginx 1.21.x
    MariaDB 10.x