]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
doc: S/DNAT allows to omit IP addresses
authorJan Engelhardt <jengelh@medozas.de>
Mon, 9 May 2011 14:34:46 +0000 (16:34 +0200)
committerJan Engelhardt <jengelh@medozas.de>
Mon, 9 May 2011 14:36:12 +0000 (16:36 +0200)
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
extensions/libipt_DNAT.c
extensions/libipt_DNAT.man
extensions/libipt_SNAT.c
extensions/libipt_SNAT.man

index 49c74e103ef6a742d166bb7407e93ea23f4e47f4..6eedca10cf5c9331be03db5ba7343c58454de5f5 100644 (file)
@@ -26,7 +26,7 @@ static void DNAT_help(void)
 {
        printf(
 "DNAT target options:\n"
-" --to-destination <ipaddr>[-<ipaddr>][:port-port]\n"
+" --to-destination [<ipaddr>[-<ipaddr>]][:port[-port]]\n"
 "                              Address to map destination to.\n"
 "[--random] [--persistent]\n");
 }
index d1e0a3a18566333c3b02292f157e9757a513d9ee..d5ded35b5de5892f4eabbfd7d2fe519d544e0629 100644 (file)
@@ -10,7 +10,7 @@ should be modified (and all future packets in this connection will
 also be mangled), and rules should cease being examined.  It takes one
 type of option:
 .TP
-\fB\-\-to\-destination\fP [\fIipaddr\fP][\fB\-\fP\fIipaddr\fP][\fB:\fP\fIport\fP[\fB\-\fP\fIport\fP]]
+\fB\-\-to\-destination\fP [\fIipaddr\fP[\fB\-\fP\fIipaddr\fP]][\fB:\fP\fIport\fP[\fB\-\fP\fIport\fP]]
 which can specify a single new destination IP address, an inclusive
 range of IP addresses, and optionally, a port range (which is only
 valid if the rule also specifies
index 532770da77bcbb1bf4faaf5e5903eb5bf814b77a..1a0095480c5ea26299b2eda9dc1ad9a75de114e1 100644 (file)
@@ -26,7 +26,7 @@ static void SNAT_help(void)
 {
        printf(
 "SNAT target options:\n"
-" --to-source <ipaddr>[-<ipaddr>][:port-port]\n"
+" --to-source [<ipaddr>[-<ipaddr>]][:port[-port]]\n"
 "                              Address to map source to.\n"
 "[--random] [--persistent]\n");
 }
index 6b828fd4c811eb29ed826ae949e02dfc1937834e..80e2cb91df80612fddcc35ba88c0d67bf305191c 100644 (file)
@@ -7,7 +7,7 @@ modified (and all future packets in this connection will also be
 mangled), and rules should cease being examined.  It takes one type
 of option:
 .TP
-\fB\-\-to\-source\fP \fIipaddr\fP[\fB\-\fP\fIipaddr\fP][\fB:\fP\fIport\fP[\fB\-\fP\fIport\fP]]
+\fB\-\-to\-source\fP [\fIipaddr\fP[\fB\-\fP\fIipaddr\fP]][\fB:\fP\fIport\fP[\fB\-\fP\fIport\fP]]
 which can specify a single new source IP address, an inclusive range
 of IP addresses, and optionally, a port range (which is only valid if
 the rule also specifies