NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

bin/60538: npf(7) port range not supported in NAT rules with no port mapping



>Number:         60538
>Category:       bin
>Synopsis:       npf(7) port range not supported in NAT rules with no port mapping
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Aug 04 18:30:00 +0000 2026
>Originator:     Emmanuel
>Release:        NetBSD 11
>Organization:
NetBSD
>Environment:
NetBSD 11.0 (GENERIC64) #0: Thu Jul 30 15:23:12 UTC 2026  mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/evbarm/compile/GENERIC64 evbarm
>Description:
In a situation where you have several services listening on different ports
and you want to apply static NAT rules (without changing port numbers) for those services to the internet via a single IP, 

It is very convenient to have a single translation where you specify a port range
to be used for those services and not writing several NAT rules for every single port.

NPF currently does not allow port ranges to be used in translation segment of NAT rules.

This should be supported for static NAT rules or dynamic rules with no-port flags set
since they do not have any business rewriting port numbers. if there be need to change ports,
 then it is free to disallow.
>How-To-Repeat:
map $ext_if static proto udp $ip <-> $ext_v4 port 7078 - 7083


>Fix:
Yes, please !




Home | Main Index | Thread Index | Old Index