这个`iptables -t filter -X` 命令是什么意思

哈菲德

这个命令是什么意思:

iptables -t filter -X 

的目的是-X什么?
这有什么之间的区别-X-F

托马斯·沃德

所有这些都由手册页回答(请参阅man iptables命令行):

-F, --flush [chain]
    Flush the selected chain (all the chains in the table if none is given). 
    This is equivalent to deleting all the rules one by one.

-X, --delete-chain [chain]
    Delete the optional user-defined chain specified. There must be no references
    to the chain. If there are, you must delete or replace the referring rules 
    before the chain can be deleted. The chain must be empty, i.e. not contain any 
    rules If no argument is given, it will attempt to delete every non-builtin 
    chain in the table.

虽然你没有问,-t这里的一小部分(我这里删除了很大一部分数据,因为它可以全部读入man iptables):

-t, --table table
    This option specifies the packet matching table which the command should 
    operate on. If the kernel is configured with automatic module loading, 
    an attempt will be made to load the appropriate module for that table if it 
    is not already there.

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章