这个命令是什么意思:
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] 删除。
我来说两句