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 -j DROP" will remove the corresponding entry
independent of location. The rules must match exactly though or you'll
get a "Bad rule" error.


No comments:

Post a Comment