Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?




Hierarchy Level


Define TCP and UDP port numbers or numeric ranges. For port-mapping configurations, this entry is required if the parent node exists.


ports-and-port-ranges—Individual port numbers, numeric port ranges, or both. Separate the values with spaces. The format for numeric port ranges is minimum-valuemaximum-value.

Required Privilege Level

interface—To view this statement in the configuration.

interface-control—To add this statement to the configuration.

Release Information

Statement introduced in Junos OS Release 9.5.