How does the forwarding of port ranges work under NAT?

Started by Jyling, August 18, 2025, 06:21:58 PM

Previous topic - Next topic
When I look at NAT table, it shows that destination port range is forwarded to the corresponding redirect port range, with equal number of ports in them.
But when I go into detail of that entry, it shows only the destination port range and the single redirect port, not a range of ports.

For example,
destination 10000-20000 redirect 10000 in details
destination 10000-20000 redirect 10000-20000 in the NAT table

Is the range forwarded to the range starting from the single port,
or is the range forwarded to the single port?

See the help text for Redirect target port:

QuoteIn case of a port range, specify the beginning port of the range (the end port will be calculated automatically).

Cheers
Maurice
OPNsense virtual machine images
OPNsense aarch64 firmware repository

Commercial support & engineering available. PM for details (en / de).