From josh@tcbug.org  Thu Mar 31 21:53:31 2005
Return-Path: <josh@tcbug.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 0C1E916A4CF
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 31 Mar 2005 21:53:31 +0000 (GMT)
Received: from sccmmhc92.asp.att.net (sccmmhc92.asp.att.net [204.127.203.212])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 6A33143D54
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 31 Mar 2005 21:53:30 +0000 (GMT)
	(envelope-from josh@tcbug.org)
Received: from twinmp.tcbug.org (12-218-21-193.client.mchsi.com[12.218.21.193])
          by sccmmhc92.asp.att.net (sccmmhc92) with SMTP
          id <20050331215329m9200gd6l0e>; Thu, 31 Mar 2005 21:53:29 +0000
Message-Id: <1112306009.0@twinmp.tcbug.org>
Date: Thu, 31 Mar 2005 15:53:29 -0600
From: "Josh Paetzel" <josh@tcbug.org>
To: "FreeBSD gnats submit" <FreeBSD-gnats-submit@freebsd.org>
Cc: rob@rogerscorp.us
Subject: Error in handbook 24.5.20 port redirection page
X-Send-Pr-Version: gtk-send-pr 0.4.4 
X-GNATS-Notify:

>Number:         79414
>Category:       docs
>Synopsis:       Error in handbook 24.5.20 port redirection page
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    jcamou
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Mar 31 22:00:18 GMT 2005
>Closed-Date:    Sat May 21 20:10:18 GMT 2005
>Last-Modified:  Sat May 21 20:10:18 GMT 2005
>Originator:     Josh Paetzel
>Release:        FreeBSD 5.3-RELEASE-p6 i386
>Organization:
>Environment:


System: FreeBSD 5.3-RELEASE-p6 #0: Mon Mar 28 16:29:35 CST 2005
    jpaetzel@twinmp.tcbug.org:/usr/src/sys/i386/compile/TWINMP



>Description:


The documentation for ipnat uses map when it should be rdr for forwarding ports through the nat.


>How-To-Repeat:


Look at section 24.5.20 in the handbook.

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/firewalls-ipf.html


>Fix:


--- chapter.sgml.old    Thu Mar 31 15:44:59 2005
+++ chapter.sgml        Thu Mar 31 15:47:12 2005
@@ -1965,17 +1965,17 @@
        address is <hostid role="ipaddr">20.20.20.5</hostid> you would
        code the rule like this:</para>

-       <programlisting>map dc0 20.20.20.5/32 port 80 -> 10.0.10.25 port 80</programlisting>
+       <programlisting>rdr dc0 20.20.20.5/32 port 80 -> 10.0.10.25 port 80</programlisting>

        <para>or:</para>

-       <programlisting>map dc0 0/32 port 80 -> 10.0.10.25 port 80</programlisting>
+       <programlisting>rdr dc0 0/32 port 80 -> 10.0.10.25 port 80</programlisting>

        <para>or for a LAN DNS Server on LAN address of <hostid
            role="ipaddr">10.0.10.33</hostid> that needs to receive
          public DNS requests:</para>

-       <programlisting>map dc0 20.20.20.5/32 port 53 -> 10.0.10.33 port 53 udp</programlisting>
+       <programlisting>rdr dc0 20.20.20.5/32 port 53 -> 10.0.10.33 port 53 udp</programlisting>
     </sect2>

     <sect2>



>Release-Note:
>Audit-Trail:

From: Josh Paetzel <josh@tcbug.org>
To: freebsd-doc@freebsd.org
Cc: "FreeBSD gnats submit" <FreeBSD-gnats-submit@freebsd.org>,
	rob@rogerscorp.us
Subject: Re: docs/79414: Error in handbook 24.5.20 port redirection page
Date: Thu, 31 Mar 2005 16:03:23 -0600

 On Thursday 31 March 2005 15:53, Josh Paetzel wrote:
 > >Number:         79414
 > >Category:       docs
 > >Synopsis:       Error in handbook 24.5.20 port redirection page
 > >Confidential:   no
 > >Severity:       non-critical
 > >Priority:       low
 > >Responsible:    freebsd-doc
 > >State:          open
 > >Quarter:
 > >Keywords:
 > >Date-Required:
 > >Class:          doc-bug
 > >Submitter-Id:   current-users
 > >Arrival-Date:   Thu Mar 31 22:00:18 GMT 2005
 > >Closed-Date:
 > >Last-Modified:
 > >Originator:     Josh Paetzel
 > >Release:        FreeBSD 5.3-RELEASE-p6 i386
 > >Organization:
 > >Environment:
 >
 > System: FreeBSD 5.3-RELEASE-p6 #0: Mon Mar 28 16:29:35 CST 2005
 >     jpaetzel@twinmp.tcbug.org:/usr/src/sys/i386/compile/TWINMP
 >
 > >Description:
 >
 > The documentation for ipnat uses map when it should be rdr for
 > forwarding ports through the nat.
 >
 > >How-To-Repeat:
 >
 > Look at section 24.5.20 in the handbook.
 >
 > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/firewalls
 >-ipf.html
 >
 > >Fix:
 >
 > --- chapter.sgml.old    Thu Mar 31 15:44:59 2005
 > +++ chapter.sgml        Thu Mar 31 15:47:12 2005
 > @@ -1965,17 +1965,17 @@
 >         address is <hostid role="ipaddr">20.20.20.5</hostid> you
 > would code the rule like this:</para>
 >
 > -       <programlisting>map dc0 20.20.20.5/32 port 80 -> 10.0.10.25
 > port 80</programlisting> +       <programlisting>rdr dc0
 > 20.20.20.5/32 port 80 -> 10.0.10.25 port 80</programlisting>
 >
 >         <para>or:</para>
 >
 > -       <programlisting>map dc0 0/32 port 80 -> 10.0.10.25 port
 > 80</programlisting> +       <programlisting>rdr dc0 0/32 port 80 ->
 > 10.0.10.25 port 80</programlisting>
 >
 >         <para>or for a LAN DNS Server on LAN address of <hostid
 >             role="ipaddr">10.0.10.33</hostid> that needs to receive
 >           public DNS requests:</para>
 >
 > -       <programlisting>map dc0 20.20.20.5/32 port 53 -> 10.0.10.33
 > port 53 udp</programlisting> +       <programlisting>rdr dc0
 > 20.20.20.5/32 port 53 -> 10.0.10.33 port 53 udp</programlisting>
 > </sect2>
 >
 >      <sect2>
 >
 > >Release-Note:
 > >Audit-Trail:
 > >Unformatted:
 >
 
 I hate to respond to myself but I screwed up the patch...Here's the 
 correct one:
 
 
 --- chapter.sgml.old    Thu Mar 31 15:44:59 2005
 +++ chapter.sgml        Thu Mar 31 15:59:58 2005
 @@ -1965,17 +1965,17 @@
         address is <hostid role="ipaddr">20.20.20.5</hostid> you would
         code the rule like this:</para>
 
 -       <programlisting>map dc0 20.20.20.5/32 port 80 -> 10.0.10.25 
 port 80</programlisting>
 +       <programlisting>rdr dc0 20.20.20.5/32 port 80 -> 10.0.10.25 
 port 80</programlisting>
 
         <para>or:</para>
 
 -       <programlisting>map dc0 0/32 port 80 -> 10.0.10.25 port 
 80</programlisting>
 +       <programlisting>rdr dc0 0/0 port 80 -> 10.0.10.25 port 
 80</programlisting>
 
         <para>or for a LAN DNS Server on LAN address of <hostid
             role="ipaddr">10.0.10.33</hostid> that needs to receive
           public DNS requests:</para>
 
 -       <programlisting>map dc0 20.20.20.5/32 port 53 -> 10.0.10.33 
 port 53 udp</programlisting>
 +       <programlisting>rdr dc0 20.20.20.5/32 port 53 -> 10.0.10.33 
 port 53 udp</programlisting>
      </sect2>
 
      <sect2>
 
 
 -- 
 Thanks,
 
 Josh Paetzel
Responsible-Changed-From-To: freebsd-doc->jcamou  
Responsible-Changed-By: jcamou 
Responsible-Changed-When: Fri Apr 1 09:31:28 GMT 2005 
Responsible-Changed-Why:  
Grab it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=79414 
State-Changed-From-To: open->closed  
State-Changed-By: jcamou 
State-Changed-When: Sat May 21 20:09:44 GMT 2005 
State-Changed-Why:  
This issue has been already solved by remko@.  Thanks. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=79414 
>Unformatted:
