From owner-freebsd-doc Sun Dec 30 21:10: 9 2001 Delivered-To: freebsd-doc@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 5066F37B429 for ; Sun, 30 Dec 2001 21:10:01 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id fBV5A1306884; Sun, 30 Dec 2001 21:10:01 -0800 (PST) (envelope-from gnats) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 1EE2E37B41C for ; Sun, 30 Dec 2001 21:00:49 -0800 (PST) Received: (from nobody@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id fBV50nN02321; Sun, 30 Dec 2001 21:00:49 -0800 (PST) (envelope-from nobody) Message-Id: <200112310500.fBV50nN02321@freefall.freebsd.org> Date: Sun, 30 Dec 2001 21:00:49 -0800 (PST) From: Matthew Whelan To: freebsd-gnats-submit@freebsd.org X-Send-Pr-Version: www-1.0 Subject: docs/33371: ipnat(5) requires mapped-to port in rdr rules Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 33371 >Category: docs >Synopsis: ipnat(5) requires mapped-to port in rdr rules >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: Sun Dec 30 21:10:01 PST 2001 >Closed-Date: >Last-Modified: >Originator: Matthew Whelan >Release: 4.5-PRERELEASE >Organization: >Environment: FreeBSD ericnernie.doubleacts 4.5-PRERELEASE FreeBSD 4.5-PRERELEASE #3: Wed Dec 26 23:31:36 GMT 2001 Root@ericnernie.doubleacts:/var/cdr/usr/src/sys/MPW i386 >Description: The ipnat(5) man page is inconsistent with actual behaviour for redirection (rdr) rules. From ipnat(5): redir ::= "rdr" ifname ipmask dport "->" ip [ "," ip ] [ ports ] options and options ::= [ tcpudp ] [ rr ] But if you try to omit the [ ports ]: root@ericnernie# ipnat -n -f - rdr tun0 0/32 port 7010-7019 -> 192.168.0.3 1: No netmask supported in destination host for redirect 1: syntax error in "rdr" rdr tun0 0/32 port 7010-7019 -> 192.168.0.3 tcp 2: missing fields - 2nd port (tcp) 2: syntax error in "rdr" rdr tun0 0/32 port 7010-7019 -> 192.168.0.3 port 7010 tcp >How-To-Repeat: N/A >Fix: Amend the manpage so that redir ::= "rdr" ifname ipmask dport "->" ip [ "," ip ] [ ports ] options reads as redir ::= "rdr" ifname ipmask dport "->" ip [ "," ip ] ports options >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message