How do I remove an IP block from iptables?

Discussion in 'Server Operation' started by badgerbox76, Nov 4, 2008.

  1. badgerbox76

    badgerbox76 Member

    I have been blocking bad IPs using

    Code:
    iptables -A INPUT -s xx.xxx.xxx.xx -j DROP
    I accidentally block a good ip, how do I remove the one ip from iptables.

    :confused:
     
  2. _X_

    _X_ New Member

    list:
    iptables -L -v --line-numbers

    delete:
    iptables -D name_of_chain number_of_line_with_IP_that_you_want_to_delete
     
  3. badgerbox76

    badgerbox76 Member

    I also just found this command to work

    iptables -D INPUT -s theipaddress -j DROP
     

Share This Page