Skip to contentSkip to conversation

Man pages review

PATCH Superseded Phil Sutter 2 participants 22 messages Aug 2, 2023 netfilter

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Phil Sutter

author reviewer
#0 lore raw

cover Man pages review

Thanks to the manpage-l10n project, we received several tickets listing a number of corrections and improvements to the different iptables man pages. This series implements what I considered valid and worth keeping.

Phil Sutter (16):
man: iptables.8: Extend exit code description
man: iptables.8: Trivial spelling fixes
man: iptables.8: Fix intra page reference
man: iptables.8: Clarify --goto description
man: Use HTTPS for links to netfilter.org
man: iptables.8: Trivial font fixes
man: iptables-restore.8: Fix --modprobe description
man: iptables-restore.8: Consistently document -w option
man: iptables-restore.8: Drop -W option from synopsis
man: iptables-restore.8: Put 'file' in italics in synopsis
man: iptables-restore.8: Start paragraphs in upper-case
man: iptables-restore.8: Trivial: Missing space after comma
man: iptables-save.8: Clarify 'available tables'
man: iptables-save.8: Fix --modprobe description
man: iptables-save.8: Start paragraphs in upper-case
man: iptables-save.8: Trivial: Missing space in enumeration

 extensions/libxt_nfacct.man    |  2 +-
 iptables/iptables-restore.8.in | 25 ++++++++--------
 iptables/iptables-save.8.in    | 18 +++++++-----
 iptables/iptables.8.in         | 53 ++++++++++++++++++----------------
 4 files changed, 53 insertions(+), 45 deletions(-)
Signature · 1 line
2.40.0
author reviewer
#1 lore raw

PATCH 1/16 man: iptables.8: Extend exit code description

Codes 3 and 4 were missing.

---
 iptables/iptables.8.in | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
iptables/iptables.8.in +6 -3
index f81c632f2be86..2dd1406615106 100644
@@ -410,9 +410,12 @@ the default setting.
 iptables can use extended packet matching and target modules.
 A list of these is available in the \fBiptables\-extensions\fP(8) manpage.
 .SH DIAGNOSTICS
-Various error messages are printed to standard error.  The exit code
-is 0 for correct functioning.  Errors which appear to be caused by
-invalid or abused command line parameters cause an exit code of 2, and
+Various error messages are printed to standard error.  The exit code is 0 for
+correct functioning.  Errors which appear to be caused by invalid or abused
+command line parameters cause an exit code of 2. Errors which indicate an
+incompatibility between kernel and user space cause an exit code of 3. Errors
+which indicate a resource problem, such as a busy lock, failing memory
+allocation or error messages from kernel cause an exit code of 4. Finally,
 other errors cause an exit code of 1.
 .SH BUGS
 Bugs?  What's this? ;-)
Signature · 1 line
2.40.0
author reviewer
#2 lore raw

PATCH 2/16 man: iptables.8: Trivial spelling fixes

In reply to Phil Sutter

- Missing "and" as well as full stop
- Missing comma in enumeration
- Duplicate "previous"
- Confusions are avoided rather than simplified
- Missing space after comma

---
 iptables/iptables.8.in | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
iptables/iptables.8.in +5 -5
index 2dd1406615106..6486588e34744 100644
@@ -125,8 +125,8 @@ This table is used mainly for configuring exemptions from connection
 tracking in combination with the NOTRACK target.  It registers at the netfilter
 hooks with higher priority and is thus called before ip_conntrack, or any other
 IP tables.  It provides the following built-in chains: \fBPREROUTING\fP
-(for packets arriving via any network interface) \fBOUTPUT\fP
-(for packets generated by local processes)
+(for packets arriving via any network interface) and \fBOUTPUT\fP
+(for packets generated by local processes).
 .TP
 \fBsecurity\fP:
 This table is used for Mandatory Access Control (MAC) networking rules, such
@@ -258,7 +258,7 @@ This option has no effect in ip6tables and ip6tables-restore.
 [\fB!\fP] \fB\-p\fP, \fB\-\-protocol\fP \fIprotocol\fP
 The protocol of the rule or of the packet to check.
 The specified protocol can be one of \fBtcp\fP, \fBudp\fP, \fBudplite\fP,
-\fBicmp\fP, \fBicmpv6\fP,\fBesp\fP, \fBah\fP, \fBsctp\fP, \fBmh\fP or the special keyword "\fBall\fP",
+\fBicmp\fP, \fBicmpv6\fP, \fBesp\fP, \fBah\fP, \fBsctp\fP, \fBmh\fP or the special keyword "\fBall\fP",
 or it can be a numeric value, representing one of these protocols or a
 different one.  A protocol name from /etc/protocols is also allowed.
 A "!" argument before the protocol inverts the
@@ -386,7 +386,7 @@ network names, or services (whenever applicable).
 \fB\-x\fP, \fB\-\-exact\fP
 Expand numbers.
 Display the exact value of the packet and byte counters,
-instead of only the rounded number in K's (multiples of 1000)
+instead of only the rounded number in K's (multiples of 1000),
 M's (multiples of 1000K) or G's (multiples of 1000M).  This option is
 only relevant for the \fB\-L\fP command.
 .TP
@@ -441,7 +441,7 @@ entering the \fBFORWARD\fP chain.
 .PP
 The various forms of NAT have been separated out; \fBiptables\fP
 is a pure packet filter when using the default `filter' table, with
-optional extension modules.  This should simplify much of the previous
+optional extension modules.  This should avoid much of the
 confusion over the combination of IP masquerading and packet filtering
 seen previously.  So the following options are handled differently:
 .nf
Signature · 1 line
2.40.0
author reviewer
#3 lore raw

PATCH 3/16 man: iptables.8: Fix intra page reference

In reply to Phil Sutter

When sections MATCH EXTENSIONS and TARGET EXTENSIONS were combined, the reference could have been updated to specify the exact title.

Reported-by [email protected]
Fixes 4496801821c01 ("doc: deduplicate extension descriptions into a new manpage")
---
 iptables/iptables.8.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
iptables/iptables.8.in +2 -2
index 6486588e34744..85af18008daab 100644
@@ -307,8 +307,8 @@ false, evaluation will stop.
 This specifies the target of the rule; i.e., what to do if the packet
 matches it.  The target can be a user-defined chain (other than the
 one this rule is in), one of the special builtin targets which decide
-the fate of the packet immediately, or an extension (see \fBEXTENSIONS\fP
-below).  If this
+the fate of the packet immediately, or an extension (see \fBMATCH AND TARGET
+EXTENSIONS\fP below).  If this
 option is omitted in a rule (and \fB\-g\fP
 is not used), then matching the rule will have no
 effect on the packet's fate, but the counters on the rule will be
Signature · 1 line
2.40.0
author reviewer
#4 lore raw

PATCH 4/16 man: iptables.8: Clarify --goto description

In reply to Phil Sutter

Text speaks about behaviour of RETURN target when used in chains redirected to using --goto instead of --jump, not the difference between --jump option and "return".

Reported-by [email protected]
Fixes 17fc163babc34 ("add 'goto' support (Henrik Nordstrom <[email protected]>)")
---
 iptables/iptables.8.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
iptables/iptables.8.in +1 -1
index 85af18008daab..c83275b294872 100644
@@ -316,7 +316,7 @@ incremented.
 .TP
 \fB\-g\fP, \fB\-\-goto\fP \fIchain\fP
 This specifies that the processing should continue in a user
-specified chain. Unlike the \-\-jump option return will not continue
+specified chain. Unlike with the \-\-jump option, \fBRETURN\fP will not continue
 processing in this chain but instead in the chain that called us via
 \-\-jump.
 .TP
Signature · 1 line
2.40.0
author reviewer
#5 lore raw

PATCH 5/16 man: Use HTTPS for links to netfilter.org

In reply to Phil Sutter

The browser is redirected there anyway, but who cares about such minor details nowadays.

---
 extensions/libxt_nfacct.man | 2 +-
 iptables/iptables.8.in      | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
extensions/libxt_nfacct.man +1 -1
index b755f9770451c..a818fedd6b1ac 100644
@@ -26,5 +26,5 @@ nfacct get http\-traffic
 .PP
 You can obtain
 .B nfacct(8)
-from http://www.netfilter.org or, alternatively, from the git.netfilter.org
+from https://www.netfilter.org or, alternatively, from the git.netfilter.org
 repository.
iptables/iptables.8.in +2 -2
index c83275b294872..71a6251d6b00c 100644
@@ -419,7 +419,7 @@ allocation or error messages from kernel cause an exit code of 4. Finally,
 other errors cause an exit code of 1.
 .SH BUGS
 Bugs?  What's this? ;-)
-Well, you might want to have a look at http://bugzilla.netfilter.org/
+Well, you might want to have a look at https://bugzilla.netfilter.org/
 \fBiptables\fP will exit immediately with an error code of 111 if it finds
 that it was called as a setuid-to-root program.
 iptables cannot be used safely in this manner because it trusts
@@ -463,7 +463,7 @@ not in the standard distribution,
 and the netfilter-hacking-HOWTO details the netfilter internals.
 .br
 See
-.BR "http://www.netfilter.org/" .
+.BR "https://www.netfilter.org/" .
 .SH AUTHORS
 Rusty Russell originally wrote iptables, in early consultation with Michael
 Neuling.
Signature · 1 line
2.40.0
author reviewer
#6 lore raw

PATCH 6/16 man: iptables.8: Trivial font fixes

In reply to Phil Sutter

No content changes intended, just type commands in bold and the single path reference in italics.

---
 iptables/iptables.8.in | 24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)
iptables/iptables.8.in +12 -12
index 71a6251d6b00c..5a9cec6c9eb35 100644
@@ -200,7 +200,7 @@ or
 .TP
 \fB\-S\fP, \fB\-\-list\-rules\fP [\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,
+chains are printed like \fBiptables-save\fP. Like every other iptables command,
 it applies to the specified table (filter is the default).
 .TP
 \fB\-F\fP, \fB\-\-flush\fP [\fIchain\fP]
@@ -242,30 +242,30 @@ The following parameters make up a rule specification (as used in the
 add, delete, insert, replace and append commands).
 .TP
 \fB\-4\fP, \fB\-\-ipv4\fP
-This option has no effect in iptables and iptables-restore.
+This option has no effect in \fBiptables\fP and \fBiptables-restore\fP.
 If a rule using the \fB\-4\fP option is inserted with (and only with)
-ip6tables-restore, it will be silently ignored. Any other uses will throw an
+\fBip6tables-restore\fP, it will be silently ignored. Any other uses will throw an
 error. This option allows IPv4 and IPv6 rules in a single rule file
-for use with both iptables-restore and ip6tables-restore.
+for use with both \fBiptables-restore\fP and \fBip6tables-restore\fP.
 .TP
 \fB\-6\fP, \fB\-\-ipv6\fP
 If a rule using the \fB\-6\fP option is inserted with (and only with)
-iptables-restore, it will be silently ignored. Any other uses will throw an
+\fBiptables-restore\fP, it will be silently ignored. Any other uses will throw an
 error. This option allows IPv4 and IPv6 rules in a single rule file
-for use with both iptables-restore and ip6tables-restore.
-This option has no effect in ip6tables and ip6tables-restore.
+for use with both \fBiptables-restore\fP and \fBip6tables-restore\fP.
+This option has no effect in \fBip6tables\fP and \fBip6tables-restore\fP.
 .TP
 [\fB!\fP] \fB\-p\fP, \fB\-\-protocol\fP \fIprotocol\fP
 The protocol of the rule or of the packet to check.
 The specified protocol can be one of \fBtcp\fP, \fBudp\fP, \fBudplite\fP,
 \fBicmp\fP, \fBicmpv6\fP, \fBesp\fP, \fBah\fP, \fBsctp\fP, \fBmh\fP or the special keyword "\fBall\fP",
 or it can be a numeric value, representing one of these protocols or a
-different one.  A protocol name from /etc/protocols is also allowed.
+different one.  A protocol name from \fI/etc/protocols\fP is also allowed.
 A "!" argument before the protocol inverts the
 test.  The number zero is equivalent to \fBall\fP. "\fBall\fP"
 will match with all protocols and is taken as default when this
 option is omitted.
-Note that, in ip6tables, IPv6 extension headers except \fBesp\fP are not allowed.
+Note that, in \fBip6tables\fP, IPv6 extension headers except \fBesp\fP are not allowed.
 \fBesp\fP and \fBipv6\-nonext\fP
 can be used with Kernel version 2.6.11 or later.
 The number zero is equivalent to \fBall\fP, which means that you cannot
@@ -281,7 +281,7 @@ be resolved once only, before the rule is submitted to the kernel.
 Please note that specifying any name to be resolved with a remote query such as
 DNS is a really bad idea.
 The \fImask\fP
-can be either an ipv4 network mask (for iptables) or a plain number,
+can be either an ipv4 network mask (for \fBiptables\fP) or a plain number,
 specifying the number of 1's at the left side of the network mask.
 Thus, an iptables mask of \fI24\fP is equivalent to \fI255.255.255.0\fP.
 A "!" argument before the address specification inverts the sense of
@@ -343,7 +343,7 @@ destination ports of such a packet (or ICMP type), such a packet will
 not match any rules which specify them.  When the "!" argument
 precedes the "\-f" flag, the rule will only match head fragments, or
 unfragmented packets. This option is IPv4 specific, it is not available
-in ip6tables.
+in \fBip6tables\fP.
 .TP
 \fB\-c\fP, \fB\-\-set\-counters\fP \fIpackets bytes\fP
 This enables the administrator to initialize the packet and byte
@@ -491,4 +491,4 @@ Man page originally written by Herve Eychenne <[email protected]>.
 .\" .. and most of all, modest ..
 .SH VERSION
 .PP
-This manual page applies to iptables/ip6tables @PACKAGE_VERSION@.
+This manual page applies to \fBiptables\fP/\fBip6tables\fP @PACKAGE_VERSION@.
Signature · 1 line
2.40.0
#7 lore raw

Re: [iptables PATCH 06/16] man: iptables.8: Trivial font fixes

Quoted 13 lines · Phil Sutter

No content changes intended, just type commands in bold and the single path reference in italics.

iptables/iptables.8.in +0 -0
index 71a6251d6b00c..5a9cec6c9eb35 100644
@@ -200,7 +200,7 @@ or

.TP
\fB\-S\fP, \fB\-\-list\-rules\fP [\fIchain\fP]
Print all rules in the selected chain. If no chain is selected, all

iptables/iptables.8.in +1 -1
-chains are printed like iptables-save. Like every other iptables command,
+chains are printed like \fBiptables-save\fP. Like every other iptables command,
Quoted 1 line

it applies to the specified table (filter is the default).

Lacking different markup options, I used bold for things you type verbatim (would use <tt></tt> in HTML or `` in MD/RST), and italics for replacables.

In that instance,
...printed like iptables-save.
was meant to indeed read like a name, i.e.
...printed like iptables-save(8).
not like a command, i.e.
...printed like iptables-save.

(Also note that ifff you did \fBiptables-save\fP, it would have need to be \fBiptables\-save\fP, because that is required for verbatim forms.)

The same argument goes for all the rest:

Quoted 9 lines
iptables/iptables.8.in +0 -0
@@ -242,30 +242,30 @@ The following parameters make up a rule specification (as used in the

add, delete, insert, replace and append commands). .TP
\fB\-4\fP, \fB\-\-ipv4\fP

iptables/iptables.8.in +1 -1
-This option has no effect in iptables and iptables-restore.
+This option has no effect in \fBiptables\fP and \fBiptables-restore\fP.

If a rule using the \fB\-4\fP option is inserted with (and only with) -ip6tables-restore, it will be silently ignored. Any other uses will throw an +\fBip6tables-restore\fP, it will be silently ignored. Any other uses will throw an

...

author reviewer
#8 lore raw

Re: [iptables PATCH 06/16] man: iptables.8: Trivial font fixes

Hi Jan,

First of all, thanks a lot for reviewing these "boring" changes. :)

Quoted 20 lines · Jan Engelhardt
Quoted 13 lines · Phil Sutter

No content changes intended, just type commands in bold and the single path reference in italics.

iptables/iptables.8.in +0 -0
index 71a6251d6b00c..5a9cec6c9eb35 100644
@@ -200,7 +200,7 @@ or

.TP
\fB\-S\fP, \fB\-\-list\-rules\fP [\fIchain\fP]
Print all rules in the selected chain. If no chain is selected, all

iptables/iptables.8.in +1 -1
-chains are printed like iptables-save. Like every other iptables command,
+chains are printed like \fBiptables-save\fP. Like every other iptables command,
Quoted 1 line

it applies to the specified table (filter is the default).

Lacking different markup options, I used bold for things you type verbatim (would use <tt></tt> in HTML or `` in MD/RST), and italics for replacables.

Quoted 6 lines

In that instance,
...printed like iptables-save.
was meant to indeed read like a name, i.e.
...printed like iptables-save(8).
not like a command, i.e.
...printed like iptables-save.

I tried to stick to this paradigm, but it's confusing and I probably lost track here and there. Even in your example above, "printed like iptables-save", in mind I extend to "printed like the command iptables-save does" and therefore choose bold font. I'm obviously not the best candidate to make these choices.

Quoted 2 lines

(Also note that ifff you did \fBiptables-save\fP, it would have need to be \fBiptables\-save\fP, because that is required for verbatim forms.)

Ah, thanks! It's misleading if output looks fine anyway.

Quoted 11 lines

The same argument goes for all the rest:

Quoted 9 lines
iptables/iptables.8.in +0 -0
@@ -242,30 +242,30 @@ The following parameters make up a rule specification (as used in the

add, delete, insert, replace and append commands). .TP
\fB\-4\fP, \fB\-\-ipv4\fP

iptables/iptables.8.in +1 -1
-This option has no effect in iptables and iptables-restore.
+This option has no effect in \fBiptables\fP and \fBiptables-restore\fP.

If a rule using the \fB\-4\fP option is inserted with (and only with) -ip6tables-restore, it will be silently ignored. Any other uses will throw an +\fBip6tables-restore\fP, it will be silently ignored. Any other uses will throw an

Can you maybe clarify how to distinct between "command" and "name"? I'm tempted to just leave things as they are instead of doing changes randomly.

Thanks, Phil

#9 lore raw

Re: [iptables PATCH 06/16] man: iptables.8: Trivial font fixes

Quoted 5 lines · Phil Sutter
Quoted 3 lines

(Also note that ifff you did \fBiptables-save\fP, it would have need to be \fBiptables\-save\fP, because that is required for verbatim forms.)

Ah, thanks! It's misleading if output looks fine anyway.

You just need a better font! '-' U+002D in troff source becomes U+2010 in rendering. (At least on some systems. Mine is currently suffering from demo effect. ;-)

That's why \- is used.

Quoted 11 lines
Quoted 7 lines
Quoted 7 lines

.TP
\fB\-4\fP, \fB\-\-ipv4\fP

iptables/iptables.8.in +1 -1
-This option has no effect in iptables and iptables-restore.
+This option has no effect in \fBiptables\fP and \fBiptables-restore\fP.

If a rule using the \fB\-4\fP option is inserted with (and only with) -ip6tables-restore, it will be silently ignored. Any other uses will throw an +\fBip6tables-restore\fP, it will be silently ignored. Any other uses will throw an

Can you maybe clarify how to distinct between "command" and "name"? I'm tempted to just leave things as they are instead of doing changes randomly.

Tough question, I like it.

1.
For example, the command is fontforge, but the program's name is FontForge. When a name is the same as a command, it gets trickier.

2.
A name can be substituted by "the program"/"program X", without a sentence losing its meaning; a command can be prefixed by "the command" without breaking the sentence.

< ls consists of 6000 LOC
>
O The program consists of 6000 LOC
X The command ls consists of 6000 LOC [nope - it's usually 1!]

Arguably, one can create sentences where both become valid, and the -4 option thing quoted above seems to be one such thing.

Oh well.

author reviewer
#10 lore raw

PATCH 7/16 man: iptables-restore.8: Fix --modprobe description

In reply to Phil Sutter

- Consistently use 'modprobe' as option argument name
- Add a reference to modprobe man page
- Put the path in italics, and the command in bold

Reported-by [email protected]
Fixes 8c46901ff5785 ("doc: document iptables-restore's -M option")
---
 iptables/iptables-restore.8.in | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
iptables/iptables-restore.8.in +4 -3
index 20216842d8358..5846a47cefbcc 100644
@@ -67,9 +67,10 @@ the program will exit if the lock cannot be obtained.  This option will
 make the program wait (indefinitely or for optional \fIseconds\fP) until
 the exclusive lock can be obtained.
 .TP
-\fB\-M\fP, \fB\-\-modprobe\fP \fImodprobe_program\fP
-Specify the path to the modprobe program. By default, iptables-restore will
-inspect /proc/sys/kernel/modprobe to determine the executable's path.
+\fB\-M\fP, \fB\-\-modprobe\fP \fImodprobe\fP
+Specify the path to the \fBmodprobe\fP(8) program. By default,
+\fBiptables-restore\fP will inspect \fI/proc/sys/kernel/modprobe\fP to
+determine the executable's path.
 .TP
 \fB\-T\fP, \fB\-\-table\fP \fIname\fP
 Restore only the named table even if the input stream contains other ones.
Signature · 1 line
2.40.0
#11 lore raw

Re: [iptables PATCH 07/16] man: iptables-restore.8: Fix --modprobe description

Quoted 20 lines · Phil Sutter

- Consistently use 'modprobe' as option argument name
- Add a reference to modprobe man page
- Put the path in italics, and the command in bold

Reported-by [email protected]
Fixes 8c46901ff5785 ("doc: document iptables-restore's -M option")

---
iptables/iptables-restore.8.in | 7 ++++---

1 file changed, 4 insertions(+), 3 deletions(-)
iptables/iptables-restore.8.in +0 -0
index 20216842d8358..5846a47cefbcc 100644
@@ -67,9 +67,10 @@ the program will exit if the lock cannot be obtained.  This option will

make the program wait (indefinitely or for optional \fIseconds\fP) until the exclusive lock can be obtained.
.TP
-\fB\-M\fP, \fB\-\-modprobe\fP \fImodprobe_program\fP

iptables/iptables-restore.8.in the program will exit if the lock cannot be obtained. This option will · line 73

Quoted 6 lines
iptables/iptables-restore.8.in +4 -2
-Specify the path to the modprobe program. By default, iptables-restore will
-inspect /proc/sys/kernel/modprobe to determine the executable's path.
+\fB\-M\fP, \fB\-\-modprobe\fP \fImodprobe\fP
+Specify the path to the \fBmodprobe\fP(8) program. By default,
+\fBiptables-restore\fP will inspect \fI/proc/sys/kernel/modprobe\fP to
+determine the executable's path.

Same \fB..\fP counterargument as for patch 6/16.

author reviewer
#12 lore raw

PATCH 8/16 man: iptables-restore.8: Consistently document -w option

In reply to Phil Sutter

Use the same name for the option's argument.

Reported-by [email protected]
Fixes 65801d02a482b ("iptables-restore.8: document -w/-W options")
---
 iptables/iptables-restore.8.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
iptables/iptables-restore.8.in +2 -2
index 5846a47cefbcc..ac639687ca1ad 100644
@@ -23,11 +23,11 @@ iptables-restore \(em Restore IP Tables
 .P
 ip6tables-restore \(em Restore IPv6 Tables
 .SH SYNOPSIS
-\fBiptables\-restore\fP [\fB\-chntvV\fP] [\fB\-w\fP \fIsecs\fP]
+\fBiptables\-restore\fP [\fB\-chntvV\fP] [\fB\-w\fP \fIseconds\fP]
 [\fB\-W\fP \fIusecs\fP] [\fB\-M\fP \fImodprobe\fP] [\fB\-T\fP \fIname\fP]
 [\fBfile\fP]
 .P
-\fBip6tables\-restore\fP [\fB\-chntvV\fP] [\fB\-w\fP \fIsecs\fP]
+\fBip6tables\-restore\fP [\fB\-chntvV\fP] [\fB\-w\fP \fIseconds\fP]
 [\fB\-W\fP \fIusecs\fP] [\fB\-M\fP \fImodprobe\fP] [\fB\-T\fP \fIname\fP]
 [\fBfile\fP]
 .SH DESCRIPTION
Signature · 1 line
2.40.0
author reviewer
#13 lore raw

PATCH 9/16 man: iptables-restore.8: Drop -W option from synopsis

In reply to Phil Sutter

The description was dropped already, there is no benefit in still listing it.

Fixes 07e2107ef0cbc ("xshared: Implement xtables lock timeout using signals")
---
 iptables/iptables-restore.8.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
iptables/iptables-restore.8.in +2 -2
index ac639687ca1ad..24d9fc06af25a 100644
@@ -24,11 +24,11 @@ iptables-restore \(em Restore IP Tables
 ip6tables-restore \(em Restore IPv6 Tables
 .SH SYNOPSIS
 \fBiptables\-restore\fP [\fB\-chntvV\fP] [\fB\-w\fP \fIseconds\fP]
-[\fB\-W\fP \fIusecs\fP] [\fB\-M\fP \fImodprobe\fP] [\fB\-T\fP \fIname\fP]
+[\fB\-M\fP \fImodprobe\fP] [\fB\-T\fP \fIname\fP]
 [\fBfile\fP]
 .P
 \fBip6tables\-restore\fP [\fB\-chntvV\fP] [\fB\-w\fP \fIseconds\fP]
-[\fB\-W\fP \fIusecs\fP] [\fB\-M\fP \fImodprobe\fP] [\fB\-T\fP \fIname\fP]
+[\fB\-M\fP \fImodprobe\fP] [\fB\-T\fP \fIname\fP]
 [\fBfile\fP]
 .SH DESCRIPTION
 .PP
Signature · 1 line
2.40.0
author reviewer
#14 lore raw

PATCH 10/16 man: iptables-restore.8: Put 'file' in italics in synopsis

In reply to Phil Sutter

The text has it this way already, be consistent.

Reported-by [email protected]
Fixes 081d57839e91e ("iptables-restore.8: file to read from can be specified as argument")
---
 iptables/iptables-restore.8.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
iptables/iptables-restore.8.in +2 -2
index 24d9fc06af25a..61f1fdd0baa26 100644
@@ -25,11 +25,11 @@ ip6tables-restore \(em Restore IPv6 Tables
 .SH SYNOPSIS
 \fBiptables\-restore\fP [\fB\-chntvV\fP] [\fB\-w\fP \fIseconds\fP]
 [\fB\-M\fP \fImodprobe\fP] [\fB\-T\fP \fIname\fP]
-[\fBfile\fP]
+[\fIfile\fP]
 .P
 \fBip6tables\-restore\fP [\fB\-chntvV\fP] [\fB\-w\fP \fIseconds\fP]
 [\fB\-M\fP \fImodprobe\fP] [\fB\-T\fP \fIname\fP]
-[\fBfile\fP]
+[\fIfile\fP]
 .SH DESCRIPTION
 .PP
 .B iptables-restore
Signature · 1 line
2.40.0
author reviewer
#15 lore raw

PATCH 11/16 man: iptables-restore.8: Start paragraphs in upper-case

In reply to Phil Sutter

Also add a missing full stop in one spot.

Reported-by [email protected]
Fixes 117341ada43dd ("Added iptbles-restore and iptables-save manpages")
---
 iptables/iptables-restore.8.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
iptables/iptables-restore.8.in +2 -2
index 61f1fdd0baa26..f97f53813aeed 100644
@@ -40,13 +40,13 @@ are used to restore IP and IPv6 Tables from data specified on STDIN or in
 specify \fIfile\fP as an argument.
 .TP
 \fB\-c\fR, \fB\-\-counters\fR
-restore the values of all packet and byte counters
+Restore the values of all packet and byte counters.
 .TP
 \fB\-h\fP, \fB\-\-help\fP
 Print a short option summary.
 .TP
 \fB\-n\fR, \fB\-\-noflush\fR
-don't flush the previous contents of the table. If not specified,
+Don't flush the previous contents of the table. If not specified,
 both commands flush (delete) all previous contents of the respective table.
 .TP
 \fB\-t\fP, \fB\-\-test\fP
Signature · 1 line
2.40.0
author reviewer
#16 lore raw

PATCH 12/16 man: iptables-restore.8: Trivial: Missing space after comma

In reply to Phil Sutter
Reported-by [email protected]
Fixes 6a79d78986c02 ("iptables: mention iptables-apply(8) in manpages")
---
 iptables/iptables-restore.8.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
iptables/iptables-restore.8.in +1 -1
index f97f53813aeed..b7217b4118fc0 100644
@@ -82,7 +82,7 @@ from Rusty Russell.
 .br
 Andras Kis-Szabo <[email protected]> contributed ip6tables-restore.
 .SH SEE ALSO
-\fBiptables\-apply\fP(8),\fBiptables\-save\fP(8), \fBiptables\fP(8)
+\fBiptables\-apply\fP(8), \fBiptables\-save\fP(8), \fBiptables\fP(8)
 .PP
 The iptables-HOWTO, which details more iptables usage, the NAT-HOWTO,
 which details NAT, and the netfilter-hacking-HOWTO which details the
Signature · 1 line
2.40.0
author reviewer
#17 lore raw

PATCH 13/16 man: iptables-save.8: Clarify 'available tables'

In reply to Phil Sutter

This appears to be confusing. Since a missing table is also not flushed ("restored") when feeding the dump into iptables-restore, such a restore call may be considered incomplete.

---
 iptables/iptables-save.8.in | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
iptables/iptables-save.8.in +4 -1
index 7683fd3780f72..cea972bcd6e0e 100644
@@ -52,7 +52,10 @@ restrict output to only one table. 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.
 .br
-If not specified, output includes all available tables.
+If not specified, output includes all available tables. No module loading takes
+place, so in order to include a specific table in the output, the respective
+module (something like \fBiptable_mangle\fP or \fBip6table_raw\fP) must be
+loaded first.
 .SH BUGS
 None known as of iptables-1.2.1 release
 .SH AUTHORS
Signature · 1 line
2.40.0
author reviewer
#18 lore raw

PATCH 14/16 man: iptables-save.8: Fix --modprobe description

In reply to Phil Sutter

- Consistently use 'modprobe' as option argument name
- Add a reference to modprobe man page
- Put the path in italics and the command in bold

Reported-by [email protected]
Fixes fbb5639c02218 ("iptables-save: module loading corrections")
---
 iptables/iptables-save.8.in | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
iptables/iptables-save.8.in +4 -3
index cea972bcd6e0e..c0d9b202ad7bd 100644
@@ -36,9 +36,10 @@ and
 are used to dump the contents of IP or IPv6 Table in easily parseable format
 either to STDOUT or to a specified file.
 .TP
-\fB\-M\fR, \fB\-\-modprobe\fR \fImodprobe_program\fP
-Specify the path to the modprobe program. By default, iptables-save will
-inspect /proc/sys/kernel/modprobe to determine the executable's path.
+\fB\-M\fR, \fB\-\-modprobe\fR \fImodprobe\fP
+Specify the path to the \fBmodprobe\fP(8) program. By default,
+\fBiptables-save\fP will inspect \fI/proc/sys/kernel/modprobe\fP to determine
+the executable's path.
 .TP
 \fB\-f\fR, \fB\-\-file\fR \fIfilename\fP
 Specify a filename to log the output to. If not specified, iptables-save
Signature · 1 line
2.40.0
#19 lore raw

Re: [iptables PATCH 14/16] man: iptables-save.8: Fix --modprobe description

iptables/iptables-save.8.in and · line 42

Quoted 13 lines · Phil Sutter
iptables/iptables-save.8.in +0 -0
@@ -36,9 +36,10 @@ and

are used to dump the contents of IP or IPv6 Table in easily parseable format either to STDOUT or to a specified file.
.TP
-\fB\-M\fR, \fB\-\-modprobe\fR \fImodprobe_program\fP

iptables/iptables-save.8.in +4 -2
-Specify the path to the modprobe program. By default, iptables-save will
-inspect /proc/sys/kernel/modprobe to determine the executable's path.
+\fB\-M\fR, \fB\-\-modprobe\fR \fImodprobe\fP
+Specify the path to the \fBmodprobe\fP(8) program. By default,
+\fBiptables-save\fP will inspect \fI/proc/sys/kernel/modprobe\fP to determine
+the executable's path.

Cf. 6/16.

author reviewer
#20 lore raw

PATCH 15/16 man: iptables-save.8: Start paragraphs in upper-case

In reply to Phil Sutter

Also add a missing full stop.

Reported-by [email protected]
Fixes 117341ada43dd ("Added iptbles-restore and iptables-save manpages")
---
 iptables/iptables-save.8.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
iptables/iptables-save.8.in +2 -2
index c0d9b202ad7bd..540f85d485ee2 100644
@@ -46,10 +46,10 @@ Specify a filename to log the output to. If not specified, iptables-save
 will log to STDOUT.
 .TP
 \fB\-c\fR, \fB\-\-counters\fR
-include the current values of all packet and byte counters in the output
+Include the current values of all packet and byte counters in the output.
 .TP
 \fB\-t\fR, \fB\-\-table\fR \fItablename\fP
-restrict output to only one table. If the kernel is configured with automatic
+Restrict output to only one table. 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.
 .br
Signature · 1 line
2.40.0
author reviewer
#21 lore raw

PATCH 16/16 man: iptables-save.8: Trivial: Missing space in enumeration

In reply to Phil Sutter
Reported-by [email protected]
Fixes 6a79d78986c02 ("iptables: mention iptables-apply(8) in manpages")
---
 iptables/iptables-save.8.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
iptables/iptables-save.8.in +1 -1
index 540f85d485ee2..bcf446cd3e5b1 100644
@@ -66,7 +66,7 @@ Rusty Russell <[email protected]>
 .br
 Andras Kis-Szabo <[email protected]> contributed ip6tables-save.
 .SH SEE ALSO
-\fBiptables\-apply\fP(8),\fBiptables\-restore\fP(8), \fBiptables\fP(8)
+\fBiptables\-apply\fP(8), \fBiptables\-restore\fP(8), \fBiptables\fP(8)
 .PP
 The iptables-HOWTO, which details more iptables usage, the NAT-HOWTO,
 which details NAT, and the netfilter-hacking-HOWTO which details the
Signature · 1 line
2.40.0