OPNsense Forum

English Forums => General Discussion => Topic started by: Jyling on August 18, 2025, 06:21:58 PM

Title: How does the forwarding of port ranges work under NAT?
Post by: Jyling on August 18, 2025, 06:21:58 PM
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?
Title: Re: How does the forwarding of port ranges work under NAT?
Post by: Maurice on August 19, 2025, 05:51:39 PM
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