iptables 的问题!

由 wallace888 在 08-22-2003 12:03 发表:

iptables 的问题!

我在iptables加了一条规则

iptables -N mine

iptables -I mine -p udp -s 192.168.0.0/24 --dport 8000 -j DROP

现在我想删除iptables -I mine -p udp -s 192.168.0.0/24 --dport 8000 -j DROP这条规则,我用iptables -D mine -p udp -s 192.168.0.0/24 --dport 8000 -j DROP 但是现在无法删除返回iptables: Bad rule (does a matching rule exist in that chain?)提示!我该如何删除呢?在有我用iptables -N mine 新建了一个链,我现在想删除这条链如何删除呢!我只想删除一条规则,不要删除所有规则!!!!


由 nobody_am 在 08-22-2003 12:52 发表:


方案1:把-D 换成 -X

方案2:在你保存的那个文件里直接删除.


解放思想,实事求是!!


由 nobody_am 在 08-22-2003 13:36 发表:


iptables -L --line-number

会显示:

Chain mine (0 references)

num target prot

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus