Learn about Centmin Mod LEMP Stack today
Become a Member

Iptables - Unblock one or more IP addresses

Discussion in 'System Administration' started by Josephm, Oct 24, 2014.

  1. Josephm

    Josephm Active Member

    126
    43
    28
    Aug 26, 2014
    Ratings:
    +45
    Local Time:
    4:35 PM
    1.9.5
    10.0.21
    Hi all; simple question and I found in Google but unable to block my ip from my host.
    I used following command and got nothing:
    Code:
    [root@chicabwh ~]# iptables -D INPUT -s 1.53.67.226 -j DROP
    iptables: Bad rule (does a matching rule exist in that chain?).
    
    I did 'service iptables save' as well.
    And some more ip addresses I like to unblock, do you have any script?. Any help is really appreciate. Thanks.
     
  2. RoldanLT

    RoldanLT Well-Known Member

    4,157
    1,007
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,421
    Local Time:
    5:35 PM
    1.11
    10.2
    Use csf allow and deny config.
     
    • Like Like x 2
  3. Josephm

    Josephm Active Member

    126
    43
    28
    Aug 26, 2014
    Ratings:
    +45
    Local Time:
    4:35 PM
    1.9.5
    10.0.21
    Just removed my ip from the list of /etc/csf/csf.deny.
    Thank you.
     
  4. eva2000

    eva2000 Administrator Staff Member

    33,747
    7,468
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,481
    Local Time:
    7:35 PM
    Nginx 1.13.x
    MariaDB 5.5
..