First page Back Continue Last page Summary Graphics
iptables(8) (cont.)
-I, --insert
Insert one or more rules in the selected chain as
the given rule number. So, if the rule number is
1, the rule or rules are inserted at the head of
the chain. This is also the default if no rule
number is specified.
-L, --list
List all rules in the selected chain. If no chain
is selected, all chains are listed. It is legal to
specify the -Z (zero) option as well, in which case
the chain(s) will be atomically listed and zeroed.
The exact output is affected by the other arguments
given.
-F, --flush
Flush the selected chain. This is equivalent to
deleting all the rules one by one.
-Z, --zero
Zero the packet and byte counters in all chains.
It is legal to specify the -L, --list (list) option
as well, to see the counters immediately before
they are cleared. (See above.)
-N, --new-chain
Create a new user-defined chain by the given name.
There must be no target of that name already.
-X, --delete-chain
Delete the specified user-defined chain. 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. If no argument is
given, it will attempt to delete every non-builtin
chain in the table.
Notes: