netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] iptables manpage: Update REDIRECT target
@ 2013-04-10 16:30 Mart Frauenlob
  2013-04-10 16:48 ` Mart Frauenlob
  0 siblings, 1 reply; 3+ messages in thread
From: Mart Frauenlob @ 2013-04-10 16:30 UTC (permalink / raw)
  To: netfilter-devel

[-- Attachment #1: Type: text/plain, Size: 283 bytes --]

Hello,

this patch renames libipt_REDIRECT.man to libxt_REDIRECT.man thus 
informing about the IPv6 version.
Also the list of valid protocols for port mapping is updated to:
tcp, udp, dccp and sctp.

I hope the address provided for IPv6 localhost ::1 is correct?

Best regards

Mart

[-- Attachment #2: manpage-Rename-libipt_REDIRECT.man-to-libxt_REDIRECT.patch --]
[-- Type: text/plain, Size: 2514 bytes --]

>From 2032b842833bd4737e6bd1317ea8fa386d2e3fca Mon Sep 17 00:00:00 2001
From: AllKind <allkind@fastest.cc>
Date: Wed, 10 Apr 2013 16:58:26 +0200
Subject: [PATCH] manpage: Rename libipt_REDIRECT.man to libxt_REDIRECT.man.
 Update list of protocols valid for port mapping.

---
 extensions/libipt_REDIRECT.man |   25 -------------------------
 extensions/libxt_REDIRECT.man  |   23 +++++++++++++++++++++++
 2 files changed, 23 insertions(+), 25 deletions(-)
 delete mode 100644 extensions/libipt_REDIRECT.man
 create mode 100644 extensions/libxt_REDIRECT.man

diff --git a/extensions/libipt_REDIRECT.man b/extensions/libipt_REDIRECT.man
deleted file mode 100644
index 90ab19d..0000000
--- a/extensions/libipt_REDIRECT.man
+++ /dev/null
@@ -1,25 +0,0 @@
-This target is only valid in the
-.B nat
-table, in the
-.B PREROUTING
-and
-.B OUTPUT
-chains, and user-defined chains which are only called from those
-chains.  It redirects the packet to the machine itself by changing the
-destination IP to the primary address of the incoming interface
-(locally-generated packets are mapped to the 127.0.0.1 address).
-.TP
-\fB\-\-to\-ports\fP \fIport\fP[\fB\-\fP\fIport\fP]
-This specifies a destination port or range of ports to use: without
-this, the destination port is never altered.  This is only valid
-if the rule also specifies
-\fB\-p tcp\fP
-or
-\fB\-p udp\fP.
-.TP
-\fB\-\-random\fP
-If option
-\fB\-\-random\fP
-is used then port mapping will be randomized (kernel >= 2.6.22).
-.RS
-.PP
diff --git a/extensions/libxt_REDIRECT.man b/extensions/libxt_REDIRECT.man
new file mode 100644
index 0000000..7f7de5d
--- /dev/null
+++ b/extensions/libxt_REDIRECT.man
@@ -0,0 +1,23 @@
+This target is only valid in the
+.B nat
+table, in the
+.B PREROUTING
+and
+.B OUTPUT
+chains, and user-defined chains which are only called from those
+chains.  It redirects the packet to the machine itself by changing the
+destination IP to the primary address of the incoming interface
+(locally-generated packets are mapped to the localhost address,
+127.0.0.1 for IPv4 and ::1 for IPv6).
+.TP
+\fB\-\-to\-ports\fP \fIport\fP[\fB\-\fP\fIport\fP]
+This specifies a destination port or range of ports to use: without
+this, the destination port is never altered.  This is only valid
+if the rule also specifies one of the following protocols:
+\fBtcp\fP, \fBudp\fP, \fBdccp\fP or \fBsctp\fP.
+.TP
+\fB\-\-random\fP
+If option
+\fB\-\-random\fP
+is used then port mapping will be randomized (kernel >= 2.6.22).
+.RS
+.PP
-- 
1.7.2.5


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] iptables manpage: Update REDIRECT target
  2013-04-10 16:30 [PATCH] iptables manpage: Update REDIRECT target Mart Frauenlob
@ 2013-04-10 16:48 ` Mart Frauenlob
  2013-04-19  0:56   ` Pablo Neira Ayuso
  0 siblings, 1 reply; 3+ messages in thread
From: Mart Frauenlob @ 2013-04-10 16:48 UTC (permalink / raw)
  To: netfilter-devel

[-- Attachment #1: Type: text/plain, Size: 401 bytes --]

On 10.04.2013 18:31, netfilter-devel-owner@vger.kernel.org wrote:
> Hello,
>
> this patch renames libipt_REDIRECT.man to libxt_REDIRECT.man thus
> informing about the IPv6 version.
> Also the list of valid protocols for port mapping is updated to:
> tcp, udp, dccp and sctp.
>
> I hope the address provided for IPv6 localhost ::1 is correct?

I'm very sorry, I messed up the author lines, resending.


[-- Attachment #2: manpage-Rename-libipt_REDIRECT.man-to-libxt_REDIRECT.patch --]
[-- Type: text/plain, Size: 2527 bytes --]

>From 2032b842833bd4737e6bd1317ea8fa386d2e3fca Mon Sep 17 00:00:00 2001
From: Mart Frauenlob <mart.frauenlob@chello.at>
Date: Wed, 10 Apr 2013 16:58:26 +0200
Subject: [PATCH] manpage: Rename libipt_REDIRECT.man to libxt_REDIRECT.man.
 Update list of protocols valid for port mapping.

---
 extensions/libipt_REDIRECT.man |   25 -------------------------
 extensions/libxt_REDIRECT.man  |   23 +++++++++++++++++++++++
 2 files changed, 23 insertions(+), 25 deletions(-)
 delete mode 100644 extensions/libipt_REDIRECT.man
 create mode 100644 extensions/libxt_REDIRECT.man

diff --git a/extensions/libipt_REDIRECT.man b/extensions/libipt_REDIRECT.man
deleted file mode 100644
index 90ab19d..0000000
--- a/extensions/libipt_REDIRECT.man
+++ /dev/null
@@ -1,25 +0,0 @@
-This target is only valid in the
-.B nat
-table, in the
-.B PREROUTING
-and
-.B OUTPUT
-chains, and user-defined chains which are only called from those
-chains.  It redirects the packet to the machine itself by changing the
-destination IP to the primary address of the incoming interface
-(locally-generated packets are mapped to the 127.0.0.1 address).
-.TP
-\fB\-\-to\-ports\fP \fIport\fP[\fB\-\fP\fIport\fP]
-This specifies a destination port or range of ports to use: without
-this, the destination port is never altered.  This is only valid
-if the rule also specifies
-\fB\-p tcp\fP
-or
-\fB\-p udp\fP.
-.TP
-\fB\-\-random\fP
-If option
-\fB\-\-random\fP
-is used then port mapping will be randomized (kernel >= 2.6.22).
-.RS
-.PP
diff --git a/extensions/libxt_REDIRECT.man b/extensions/libxt_REDIRECT.man
new file mode 100644
index 0000000..7f7de5d
--- /dev/null
+++ b/extensions/libxt_REDIRECT.man
@@ -0,0 +1,23 @@
+This target is only valid in the
+.B nat
+table, in the
+.B PREROUTING
+and
+.B OUTPUT
+chains, and user-defined chains which are only called from those
+chains.  It redirects the packet to the machine itself by changing the
+destination IP to the primary address of the incoming interface
+(locally-generated packets are mapped to the localhost address,
+127.0.0.1 for IPv4 and ::1 for IPv6).
+.TP
+\fB\-\-to\-ports\fP \fIport\fP[\fB\-\fP\fIport\fP]
+This specifies a destination port or range of ports to use: without
+this, the destination port is never altered.  This is only valid
+if the rule also specifies one of the following protocols:
+\fBtcp\fP, \fBudp\fP, \fBdccp\fP or \fBsctp\fP.
+.TP
+\fB\-\-random\fP
+If option
+\fB\-\-random\fP
+is used then port mapping will be randomized (kernel >= 2.6.22).
+.RS
+.PP
-- 
1.7.2.5


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] iptables manpage: Update REDIRECT target
  2013-04-10 16:48 ` Mart Frauenlob
@ 2013-04-19  0:56   ` Pablo Neira Ayuso
  0 siblings, 0 replies; 3+ messages in thread
From: Pablo Neira Ayuso @ 2013-04-19  0:56 UTC (permalink / raw)
  To: Mart Frauenlob; +Cc: netfilter-devel

On Wed, Apr 10, 2013 at 06:48:49PM +0200, Mart Frauenlob wrote:
> On 10.04.2013 18:31, netfilter-devel-owner@vger.kernel.org wrote:
> >Hello,
> >
> >this patch renames libipt_REDIRECT.man to libxt_REDIRECT.man thus
> >informing about the IPv6 version.
> >Also the list of valid protocols for port mapping is updated to:
> >tcp, udp, dccp and sctp.
> >
> >I hope the address provided for IPv6 localhost ::1 is correct?

Yes. Also applied, thanks.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-04-19  0:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-10 16:30 [PATCH] iptables manpage: Update REDIRECT target Mart Frauenlob
2013-04-10 16:48 ` Mart Frauenlob
2013-04-19  0:56   ` Pablo Neira Ayuso

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).