Tuesday, November 17, 2009

Iptables : Remove an entry

Sorry it's been a while.
You can either delete by number or by recreating the rule. "iptables -D
INPUT 3" will remove the 3rd (counting from 1) rule. Or "iptables -D
INPUT -s 65.75.152.40 -j DROP" will remove the corresponding entry
independent of location. The rules must match exactly though or you'll
get a "Bad rule" error.

http://www.plug.org/pipermail/plug/2004-November/010606.html
http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/ref-guide/s1-iptables-options.html
http://netfilter.org/documentation/HOWTO/packet-filtering-HOWTO-7.html

No comments:

Post a Comment