From patchwork Wed Apr 10 16:30:26 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mart Frauenlob X-Patchwork-Id: 235414 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id B83792C00CC for ; Thu, 11 Apr 2013 02:31:15 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S937028Ab3DJQbO (ORCPT ); Wed, 10 Apr 2013 12:31:14 -0400 Received: from fep32.mx.upcmail.net ([62.179.121.50]:38358 "EHLO fep32.mx.upcmail.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936994Ab3DJQbN (ORCPT ); Wed, 10 Apr 2013 12:31:13 -0400 Received: from edge04.upcmail.net ([192.168.13.239]) by viefep32-int.chello.at (InterMail vM.8.01.05.05 201-2260-151-110-20120111) with ESMTP id <20130410163111.TKYY12904.viefep32-int.chello.at@edge04.upcmail.net> for ; Wed, 10 Apr 2013 18:31:11 +0200 Received: from [192.168.13.66] ([80.108.253.46]) by edge04.upcmail.net with edge id NGXB1l00f10poxs04GXBFx; Wed, 10 Apr 2013 18:31:11 +0200 X-SourceIP: 80.108.253.46 X-Authenticated-Sender: mart.frauenlob@chello.at Message-ID: <516593A2.8040308@chello.at> Date: Wed, 10 Apr 2013 18:30:26 +0200 From: Mart Frauenlob Reply-To: mart.frauenlob@chello.at User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20130328 Thunderbird/17.0.5 MIME-Version: 1.0 To: netfilter-devel@vger.kernel.org Subject: [PATCH] iptables manpage: Update REDIRECT target Sender: netfilter-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netfilter-devel@vger.kernel.org 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 From 2032b842833bd4737e6bd1317ea8fa386d2e3fca Mon Sep 17 00:00:00 2001 From: AllKind 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 +.PP 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