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

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

  2. _X_

    _X_ New Member

    iptables -L -v --line-numbers

    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