[GH-ISSUE #2998] Netbird (Docker) with UFW #6247

Closed
opened 2026-08-05 01:07:25 -04:00 by saavagebueno · 2 comments
Owner

Originally created by @Idenroad on GitHub (Dec 6, 2024).
Original GitHub issue: https://github.com/netbirdio/netbird/issues/2998

Describe the problem

Sometimes, it is impossible for a client to be authenticated by Netbird. It's random and does not affect all peers. Whether on Linux or Windows, the problem is the same. There are multiple error messages, but the most common is 'context deadline exceeded'.

To Reproduce

Steps to reproduce the behavior:

  1. Install Quickstart version of the netbird Stack
  2. Open all Netbird ports in UFW, close others.
  3. Let the god of chance choose its victim.

Self-host Netbird - Ubuntu server 24.04

NetBird logs

No log on the server side - On client side, only time out, deadline exceeded, etc.

Solution

The problem is not a Netbird problem but a Docker x UFW problem. UFW randomly begins to block certain requests, even if the port is open. This seems to happen due to the manipulations made by UFW with iptables. Once UFW is disabled, the problem disappears on its own. The issue does not occur with Firewalld or a direct iptables configuration. I have not tried UFW-docker, and I do not understand why UFW behaves this way. The most important thing is that Netbird is not directly responsible for this type of problem.

Originally created by @Idenroad on GitHub (Dec 6, 2024). Original GitHub issue: https://github.com/netbirdio/netbird/issues/2998 **Describe the problem** Sometimes, it is impossible for a client to be authenticated by Netbird. It's random and does not affect all peers. Whether on Linux or Windows, the problem is the same. There are multiple error messages, but the most common is 'context deadline exceeded'. **To Reproduce** Steps to reproduce the behavior: 1. Install Quickstart version of the netbird Stack 2. Open all Netbird ports in UFW, close others. 3. Let the god of chance choose its victim. **Self-host Netbird - Ubuntu server 24.04** **NetBird logs** No log on the server side - On client side, only time out, deadline exceeded, etc. **Solution** The problem is not a Netbird problem but a Docker x UFW problem. UFW randomly begins to block certain requests, even if the port is open. This seems to happen due to the manipulations made by UFW with iptables. Once UFW is disabled, the problem disappears on its own. The issue does not occur with Firewalld or a direct iptables configuration. I have not tried UFW-docker, and I do not understand why UFW behaves this way. The most important thing is that Netbird is not directly responsible for this type of problem.
saavagebueno added the waiting-feedbacktriage-needed labels 2026-08-05 01:07:25 -04:00
Author
Owner

@nazarewk commented on GitHub (Apr 28, 2025):

Hello @Idenroad,

We're currently reviewing our open issues and would like to verify if this problem still exists in the latest NetBird version.

Could you please confirm if the issue is still there?

We may close this issue temporarily if we don't hear back from you within 2 weeks, but feel free to reopen it with updated information.

Thanks for your contribution to improving the project!

<!-- gh-comment-id:2835671122 --> @nazarewk commented on GitHub (Apr 28, 2025): Hello @Idenroad, We're currently reviewing our open issues and would like to verify if this problem still exists in the [latest NetBird version](https://github.com/netbirdio/netbird/releases). Could you please confirm if the issue is still there? We may close this issue temporarily if we don't hear back from you within **2 weeks**, but feel free to reopen it with updated information. Thanks for your contribution to improving the project!
Author
Owner

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

closing issue due to no recent feedback. Feel free to open a new one if the issue persist or reopen if this was a feature request.

<!-- gh-comment-id:2927890401 --> @mlsmaycon commented on GitHub (Jun 1, 2025): closing issue due to no recent feedback. Feel free to open a new one if the issue persist or reopen if this was a feature request.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#6247