[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-doc
Subject:    docs/33371: ipnat(5) requires mapped-to port in rdr rules
From:       Matthew Whelan <muttley () gotadsl ! co ! uk>
Date:       2001-12-31 5:00:49
[Download RAW message or body]


> 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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic