[GH-ISSUE #4008] Network policies cannot seemingly accept port range. #8455

Closed
opened 2026-08-05 01:18:04 -04:00 by saavagebueno · 5 comments
Owner

Originally created by @dragon2611 on GitHub (Jun 18, 2025).
Original GitHub issue: https://github.com/netbirdio/netbird/issues/4008

As per title it seems network policies for tcp/udp cannot accept port ranges.

If you try and use smart firewall it attempts to enter them in the format of firstport-lastport, but this is invalid and the rule will not be generated.

This affects the cloud/hosted controlplane.

Originally created by @dragon2611 on GitHub (Jun 18, 2025). Original GitHub issue: https://github.com/netbirdio/netbird/issues/4008 As per title it seems network policies for tcp/udp cannot accept port ranges. If you try and use smart firewall it attempts to enter them in the format of firstport-lastport, but this is invalid and the rule will not be generated. This affects the cloud/hosted controlplane.
saavagebueno added the bugcloud labels 2026-08-05 01:18:04 -04:00
Author
Owner

@dragon2611 commented on GitHub (Jun 19, 2025):

It also seems smart firewall can generate a UDP/TCP rule with no ports filled in which it claims should allow Any port, but these rules seem to break the clients the policy is applied to and just block everything.

<!-- gh-comment-id:2987584671 --> @dragon2611 commented on GitHub (Jun 19, 2025): It also seems smart firewall can generate a UDP/TCP rule with no ports filled in which it claims should allow Any port, but these rules seem to break the clients the policy is applied to and just block everything.
Author
Owner

@nazarewk commented on GitHub (Jun 19, 2025):

Generally, the feature is not yet fully implemented (see #1995), but I'll ask the team what we can do about Smart Firewall suggestions.

<!-- gh-comment-id:2987622132 --> @nazarewk commented on GitHub (Jun 19, 2025): Generally, the feature is not yet fully implemented (see #1995), but I'll ask the team what we can do about Smart Firewall suggestions.
Author
Owner

@mlsmaycon commented on GitHub (Jun 19, 2025):

@dragon2611 we are about to release support for it today.

Can you please share the output from the smart firewall and the error you've seen?

<!-- gh-comment-id:2987977129 --> @mlsmaycon commented on GitHub (Jun 19, 2025): @dragon2611 we are about to release support for it today. Can you please share the output from the smart firewall and the error you've seen?
Author
Owner

@dragon2611 commented on GitHub (Jun 19, 2025):

@mlsmaycon since it contains detailed information about my groups/policies.etc I've sent it to you on slack rather than post it publically here.

<!-- gh-comment-id:2987999506 --> @dragon2611 commented on GitHub (Jun 19, 2025): @mlsmaycon since it contains detailed information about my groups/policies.etc I've sent it to you on slack rather than post it publically here.
Author
Owner

@nazarewk commented on GitHub (Sep 11, 2025):

This is already live for a while

Image
<!-- gh-comment-id:3279341784 --> @nazarewk commented on GitHub (Sep 11, 2025): This is already live for a while <img width="1536" height="1534" alt="Image" src="https://github.com/user-attachments/assets/f7711d7c-ba46-4153-a996-8e6a6ca17b19" />
Sign in to join this conversation.
No Label bug cloud
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#8455