[PR #826] Share kernel Wireguard port with raw socket #2895

Open
opened 2025-11-20 08:04:19 -05:00 by saavagebueno · 0 comments
Owner

Original Pull Request: https://github.com/netbirdio/netbird/pull/826

State: closed
Merged: Yes


Describe your changes

This is initial changes to support shared port between stun (ICE agent) and
the kernel Wireguard

Implement single port mode for execution with kernel Wireguard interfaces using a raw socket listener.

BPF filters ensure that only stun packets hit the raw socket

Removed a lot of the proxy logic and direct mode exchange

now we are doing an extra hole punch to the remote wireguard port for best-effort cases and support to old client's direct mode.

Checklist

  • Is it a bug fix
  • Is a typo/documentation fix
  • Is a feature enhancement
  • It is a refactor
  • Created tests that fail without the change (if possible)
  • Extended the README / documentation, if necessary
**Original Pull Request:** https://github.com/netbirdio/netbird/pull/826 **State:** closed **Merged:** Yes --- ## Describe your changes This is initial changes to support shared port between stun (ICE agent) and the kernel Wireguard Implement single port mode for execution with kernel Wireguard interfaces using a raw socket listener. BPF filters ensure that only stun packets hit the raw socket Removed a lot of the proxy logic and direct mode exchange now we are doing an extra hole punch to the remote wireguard port for best-effort cases and support to old client's direct mode. ## Issue ticket number and link ### Checklist - [ ] Is it a bug fix - [ ] Is a typo/documentation fix - [x] Is a feature enhancement - [x] It is a refactor - [ ] Created tests that fail without the change (if possible) - [ ] Extended the README / documentation, if necessary
saavagebueno added the pull-request label 2025-11-20 08:04:19 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#2895