Subject: bin/25972: tcpudp doesn't work in ipnat rules
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <grant@NetBSD.org>
List: netbsd-bugs
Date: 06/20/2004 02:32:02
>Number:         25972
>Category:       bin
>Synopsis:       tcpudp doesn't work in ipnat rules
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jun 19 16:34:01 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     grant beattie
>Release:        NetBSD 2.0_BETA
>Organization:
>Environment:
System: NetBSD gw 2.0_BETA NetBSD 2.0_BETA (_gw_) #0: Sat Jun 19 14:52:27 EST 2004 grant@mofo:/data1/netbsd/netbsd-2-0/src/sys/arch/i386/compile/_gw_ i386
Architecture: i386
Machine: i386
>Description:
the following ipnat rule is not parsed correctly by ipf4.1:

rdr rtk0 192.168.1.1/32 port 53 -> 192.168.1.25 port 53 tcpudp

# ipnat -l
List of active MAP/Redirect filters:
rdr rtk0 192.168.1.1/32 port 0 -> 192.168.1.25 port 0 -1

unsurprisingly it doesn't work. using two separate rules for tcp
and udp works.
>How-To-Repeat:
see above.
>Fix:
unknown.
>Release-Note:
>Audit-Trail:
>Unformatted: