Skip to contentSkip to conversation

Patch to libipt_DNAT.man

PATCH Applied Evan Miller 3 participants 3 messages Apr 29, 2006 – May 24, 2006 netfilter

lore
Share & tools
lore
#0 lore raw

I had to dig through source to find the --to-destination :port syntax (no mangle of address). This patch to the manpage saves others the trouble, please accept it or a similar change:

libipt_DNAT.man 2006-04-28 20:24:22.484755056 -0700 renamed from - 2006-04-28 20:28:04.454798000 -0700 +3 -2
@@ -10,7 +10,7 @@
 also be mangled), and rules should cease being examined.  It takes one
 type of option:
 .TP
-.BR "--to-destination " "\fIipaddr\fP[-\fIipaddr\fP][:\fIport\fP-\fIport\fP]"
+.BR "--to-destination " "[\fIipaddr\fP][-\fIipaddr\fP][:\fIport\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
@@ -18,7 +18,8 @@
 or
 .BR "-p udp" ).
 If no port range is specified, then the destination port will never be
-modified.
+modified. If no IP address is specified then only the destination port
+will be modified.
 .RS
 .PP
 In Kernels up to 2.6.10 you can add several --to-destination options.  For
#1 lore raw
Quoted 3 lines · Evan Miller

I had to dig through source to find the --to-destination :port syntax (no mangle of address). This patch to the manpage saves others the trouble, please accept it or a similar change:

thanks, in my local tree now. Once my flight has landed, I'll commit.

Signature · 5 lines
- Harald Welte <[email protected]>                 http://netfilter.org/
============================================================================
  "Fragmentation is like classful addressing -- an interesting early
   architectural error that shows how much experimentation was going
   on while IP was being designed."                    -- Paul Vixie
#2 lore raw
In reply to Evan Miller
Quoted 3 lines · Evan Miller

I had to dig through source to find the --to-destination :port syntax (no mangle of address). This patch to the manpage saves others the trouble, please accept it or a similar change:

Applied, thanks. Didn't knew that was possible either :)