Back to Networking Knowledge Hub

Use Port Ranges in Access Control Policies

The recent NetBird release introduces support for port ranges in access control policies, making it easier to manage network access.

From the start, NetBird has allowed you to specify individual ports in your access control policies . Such functionality has been useful for many users, especially those who needed to restrict access to specific services or applications running on their machines. However, managing access to applications and services with a large number of ports was cumbersome, time-consuming, and in some cases, error-prone.

To address this issue, we are excited to announce that NetBird now supports port ranges in access control policies, starting from version . This feature allows you to specify a range of ports in the format when defining access control policies.

How To Enable

To enable port ranges in your access control policies, simply create or edit an existing policy in the NetBird dashboard. When specifying ports, you can now enter a range using the format . For example, if you want to allow access to ports from to , you would enter . You can also combine individual ports and port ranges in the same policy.

Using the API

When creating or updating policies via the NetBird API , a rule accepts either the field or the field, not both. To combine individual ports with port ranges in the same rule, send everything in and express each single port as a range with identical start and end values, such as . This is the same format the dashboard sends when you mix individual ports and ranges in a policy.