Что означает команда `iptables -t filter -X`

Что означает эта команда:

iptables -t filter -X 

Какова цель -X ?
И в чем разница между - X и -F ?

0
задан 12 May 2020 в 18:09

1 ответ

На все это отвечает man-страница (см. 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.
1
ответ дан 19 June 2020 в 21:42

Другие вопросы по тегам:

Похожие вопросы: