Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Dec 2001 21:00:49 -0800 (PST)
From:      Matthew Whelan <muttley@gotadsl.co.uk>
To:        freebsd-gnats-submit@freebsd.org
Subject:   docs/33371: ipnat(5) requires mapped-to port in rdr rules
Message-ID:  <200112310500.fBV50nN02321@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200112310500.fBV50nN02321>