From owner-freebsd-doc@FreeBSD.ORG Sun Jun 24 09:30:07 2012 Return-Path: Delivered-To: freebsd-doc@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8498D106566B for ; Sun, 24 Jun 2012 09:30:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 449CB8FC12 for ; Sun, 24 Jun 2012 09:30:07 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q5O9U7kw023624 for ; Sun, 24 Jun 2012 09:30:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q5O9U7Kw023622; Sun, 24 Jun 2012 09:30:07 GMT (envelope-from gnats) Resent-Date: Sun, 24 Jun 2012 09:30:07 GMT Resent-Message-Id: <201206240930.q5O9U7Kw023622@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-doc@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Robert Simmons Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 70555106564A for ; Sun, 24 Jun 2012 09:22:06 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 5B8438FC08 for ; Sun, 24 Jun 2012 09:22:06 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q5O9M6th074614 for ; Sun, 24 Jun 2012 09:22:06 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id q5O9M6dA074613; Sun, 24 Jun 2012 09:22:06 GMT (envelope-from nobody) Message-Id: <201206240922.q5O9M6dA074613@red.freebsd.org> Date: Sun, 24 Jun 2012 09:22:06 GMT From: Robert Simmons To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: docs/169367: ipfilter section of handbook has an error in the ipnat rules example X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Jun 2012 09:30:07 -0000 >Number: 169367 >Category: docs >Synopsis: ipfilter section of handbook has an error in the ipnat rules example >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Sun Jun 24 09:30:06 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Robert Simmons >Release: 9.0-RELEASE >Organization: >Environment: FreeBSD test 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan 3 07:15:25 UTC 2012 root@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 >Description: Section 31.5.21.1 IPNAT Rules in the Handbook contains the following example rule line for FTP proxy: map dc0 0.0.0.0/0 -> 0/32 proxy port 21 ftp/tcp This is wrong, and leads to an error when the rules files is loaded: syntax error error at "", line 1 >How-To-Repeat: try to load the following ipnat rule: map dc0 0.0.0.0/0 -> 0/32 proxy port 21 ftp/tcp >Fix: According to the ipfilter docs, this line should read: map dc0 0/0 -> 0/32 proxy port 21 ftp/tcp This does not produce an error, and when I run ipnat -l: # ipnat -l List of active MAP/Redirect filters: map em0 0.0.0.0/0 -> 0.0.0.0/32 proxy port ftp ftp/tcp >Release-Note: >Audit-Trail: >Unformatted: