Skip to main content
Policies control network access between groups of peers by defining rules that specify which peers can communicate, on which protocols and ports.

List All Policies

Returns a list of all access control policies.
string
Unique policy identifier
string
Policy name
string
Policy description
boolean
Whether the policy is active
array
Posture check IDs applied to source groups
array
List of policy rules defining access controls

Get a Policy

Retrieve detailed information about a specific policy.
string
required
The unique identifier of the policy
Example

Create a Policy

Create a new access control policy with rules.
string
required
Policy name
string
Policy description
boolean
required
Whether the policy is active
array
Posture check IDs to apply to source groups
array
required
List of policy rules

Update a Policy

Update an existing policy and its rules.
string
required
The unique identifier of the policy
string
required
Policy name
boolean
required
Whether the policy is active
array
required
Complete list of policy rules (replaces existing rules)
Example

Delete a Policy

Remove a policy from the network.
string
required
The unique identifier of the policy
Example

Policy Rules

Each policy contains one or more rules that define access controls.

Rule Fields

string
required
Rule name
string
Rule description
boolean
required
Whether the rule is active
string
required
Action to take: accept or drop
boolean
required
Whether the rule applies in both directions
string
required
Protocol type: all, tcp, udp, icmp, or netbird-ssh
array
List of port numbers (for TCP/UDP)
array
List of port range objects with start and end fields
array
required
Source group IDs
array
required
Destination group IDs
object
Source resource object (alternative to sources)
object
Destination resource object (alternative to destinations)

Protocol Examples

Policy Actions

Accept

Allow traffic matching the rule

Drop

Block traffic matching the rule

Bidirectional Rules

When bidirectional: true, the rule applies in both directions:
This allows:
  • Group A → Group B
  • Group B → Group A

Posture Checks

Apply security requirements to source groups:
Peers in source groups must pass all specified posture checks before the policy applies.

Common Policy Patterns

Allow All Within Group

Database Access

Zero Trust Access

Best Practices

Start with deny-all - Create policies that explicitly allow only required traffic
Use specific protocols and ports - Avoid using "protocol": "all" when possible
Enable posture checks - Require security compliance for sensitive access
Document policies - Add clear descriptions explaining the purpose of each policy
Test before deploying - Verify policies in a test environment first
Review regularly - Audit policies periodically to ensure they’re still needed