summaryrefslogtreecommitdiffstats
path: root/ip6tables.8.in
diff options
context:
space:
mode:
author/C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net </C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net>2008-05-13 11:08:26 +0000
committer/C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net </C=EU/ST=EU/CN=Patrick McHardy/emailAddress=kaber@trash.net>2008-05-13 11:08:26 +0000
commit36a36fc3c41b8b868e8fbd181c50e1ca3ac6d4c5 (patch)
tree8ae6e4457a0d70a40b573b606488744a62a7a3bb /ip6tables.8.in
parent6a10cb1a5848240c2946f9c24bf82b0f8efb8e4e (diff)
[patch 3/4] iptables --list-rules command
Adds iptables --list-rules (-S) command, acting as a combination of iptables --list and iptables-save. The primary motivation behind this patch is to get iptables-save like output capabilities in iptables-restore, allowing "iptables-restore -n" to be used as a consistent API to iptables for all kind of operations, not only blind updates.. As a bonus iptables also gets the capability of printing the rules as-is. This completely replaces the earlier patch which added the --rules option. Henrik Nordstrom <henrik@henriknordstrom.net>
Diffstat (limited to 'ip6tables.8.in')
-rw-r--r--ip6tables.8.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/ip6tables.8.in b/ip6tables.8.in
index f103363..45b14dc 100644
--- a/ip6tables.8.in
+++ b/ip6tables.8.in
@@ -197,6 +197,11 @@ arguments given. The exact rules are suppressed until you use
ip6tables -L -v
.fi
.TP
+.BR "-S, --list-rules " "[\fIchain\fP]"
+Print all rules in the selected chain. If no chain is selected, all
+chains are printed like iptables-save. Like every other iptables command,
+it applies to the specified table (filter is the default).
+.TP
.BR "-F, --flush " "[\fIchain\fP]"
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.