Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an extra server reflexive candidate with WG port #1549

Merged
merged 3 commits into from Feb 8, 2024

Conversation

mlsmaycon
Copy link
Collaborator

@mlsmaycon mlsmaycon commented Feb 8, 2024

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
  • Is a feature enhancement
  • It is a refactor
  • Created tests that fail without the change (if possible)
  • Extended the README / documentation, if necessary

sends an extra server reflexive candidate to the remote
 peer with our related port (usually the wireguard port)
this is useful when network has an existing port
forwarding rule for the wireguard port and this peer

and avoids creating a 1:1 NAT on the local network
@mlsmaycon mlsmaycon marked this pull request as ready for review February 8, 2024 15:09
client/internal/peer/conn.go Outdated Show resolved Hide resolved
lixmal
lixmal previously approved these changes Feb 8, 2024
Co-authored-by: Viktor Liu <viktor@netbird.io>
@mlsmaycon mlsmaycon merged commit 88747e3 into main Feb 8, 2024
16 checks passed
@mlsmaycon mlsmaycon deleted the send-extra-srflx branch February 8, 2024 15:50
Foosec pushed a commit to Foosec/netbird that referenced this pull request May 8, 2024
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants