[PR #1549] [MERGED] Add an extra server reflexive candidate with WG port #15538

Closed
opened 2026-08-05 03:07:53 -04:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/1549
Author: @mlsmaycon
Created: 2/8/2024
Status: Merged
Merged: 2/8/2024
Merged by: @mlsmaycon

Base: mainHead: send-extra-srflx


📝 Commits (3)

  • 7c0caf6 Add an extra server reflexive candidate with WG port
  • 8d04256 use correct address and reset sent status
  • b31ca14 Update client/internal/peer/conn.go

📊 Changes

1 file changed (+29 additions, -2 deletions)

View changed files

📝 client/internal/peer/conn.go (+29 -2)

📄 Description

sends an extra server reflexive candidate to the remote peer with our related port (usually the Wireguard port)
this is useful when a network has an existing port forwarding rule for the Wireguard port and the local peer and avoids creating a 1:1 NAT on the local network.

Describe your changes

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

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbirdio/netbird/pull/1549 **Author:** [@mlsmaycon](https://github.com/mlsmaycon) **Created:** 2/8/2024 **Status:** ✅ Merged **Merged:** 2/8/2024 **Merged by:** [@mlsmaycon](https://github.com/mlsmaycon) **Base:** `main` ← **Head:** `send-extra-srflx` --- ### 📝 Commits (3) - [`7c0caf6`](https://github.com/netbirdio/netbird/commit/7c0caf6af72b191b55b5bc801a2a39e88ac7b05e) Add an extra server reflexive candidate with WG port - [`8d04256`](https://github.com/netbirdio/netbird/commit/8d042564ecd0f0baff5fa508808d2c68bf6ca02b) use correct address and reset sent status - [`b31ca14`](https://github.com/netbirdio/netbird/commit/b31ca14ed76d05aa183d73662c6f929aed5fb165) Update client/internal/peer/conn.go ### 📊 Changes **1 file changed** (+29 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `client/internal/peer/conn.go` (+29 -2) </details> ### 📄 Description sends an extra server reflexive candidate to the remote peer with our related port (usually the Wireguard port) this is useful when a network has an existing port forwarding rule for the Wireguard port and the local peer and avoids creating a 1:1 NAT on the local network. ## Describe your changes ## Issue ticket number and link ### Checklist - [ ] Is it a bug fix - [ ] Is a typo/documentation fix - [x] Is a feature enhancement - [ ] It is a refactor - [ ] Created tests that fail without the change (if possible) - [ ] Extended the README / documentation, if necessary --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
saavagebueno added the pull-request label 2026-08-05 03:07:53 -04:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#15538