网页浏览总次数

2010年11月20日星期六

如何删除单个iptables规则

见 http://www.webhostingtalk.com/showthread.php?t=518035

With command line :

iptables -L INPUT -n --line-numbers

You'll get the list of all blocked IP. Look at the number on the left, then :

iptables -D INPUT <<number>>

注:INPUT是iptables的过滤链名称,常见的有PREROUTING/INPUT/FORWARD/OUTPUT/POSTROUTING等

没有评论:

发表评论