netbird in wsl2 / forcing user space wireguard #666

Open
opened 2025-11-20 05:15:42 -05:00 by saavagebueno · 1 comment
Owner

Originally created by @lambadalambda on GitHub (Feb 29, 2024).

Describe the problem

First, thank you for the excellent software!

I have netbird running inside wsl2. It connects fine, but no traffic seems to pass. Forcing user space wireguard as described in https://docs.netbird.io/how-to/troubleshooting-client#enabling-wire-guard-in-user-space makes everything work, but I don't see any way to enable this for good in the configuration. I'm not sure why no traffic is flowing in kernel mode, but I don't really care about that as long as user mode works.

To Reproduce

Steps to reproduce the behavior:

  1. Install netbird in wsl2
  2. Connect to a peer
  3. Connection works, but traffic doesn't flow.

Expected behavior

It should work :)

Are you using NetBird Cloud?

This is self-hosted.

NetBird version

0.26.2

Originally created by @lambadalambda on GitHub (Feb 29, 2024). **Describe the problem** First, thank you for the excellent software! I have netbird running inside wsl2. It connects fine, but no traffic seems to pass. Forcing user space wireguard as described in https://docs.netbird.io/how-to/troubleshooting-client#enabling-wire-guard-in-user-space makes everything work, but I don't see any way to enable this for good in the configuration. I'm not sure why no traffic is flowing in kernel mode, but I don't really care about that as long as user mode works. **To Reproduce** Steps to reproduce the behavior: 1. Install netbird in wsl2 2. Connect to a peer 3. Connection works, but traffic doesn't flow. **Expected behavior** It should work :) **Are you using NetBird Cloud?** This is self-hosted. **NetBird version** 0.26.2
saavagebueno added the triage-needed label 2025-11-20 05:15:42 -05:00
Author
Owner

@cmjdev commented on GitHub (Mar 10, 2025):

Have you tried adding NB_WG_KERNEL_DISABLED=true to your bashrc? This is just an environment variable that netbird should pick up automatically.

@cmjdev commented on GitHub (Mar 10, 2025): Have you tried adding NB_WG_KERNEL_DISABLED=true to your bashrc? This is just an environment variable that netbird should pick up automatically.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#666