[PR #245] [MERGED] Support no-proxy mode connection mode #2646

Closed
opened 2025-11-20 07:12:05 -05:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/245
Author: @braginini
Created: 2/28/2022
Status: Merged
Merged: 3/1/2022
Merged by: @braginini

Base: mainHead: no-proxy


📝 Commits (2)

  • 6864080 Support no-proxy mode connection mode
  • 0825627 Refactor network utils that check if IP is publick or not

📊 Changes

8 files changed (+129 additions, -6 deletions)

View changed files

📝 client/cmd/up.go (+2 -1)
📝 client/internal/engine.go (+0 -2)
📝 client/internal/peer/conn.go (+60 -3)
📝 client/internal/proxy/dummy.go (+4 -0)
client/internal/proxy/noproxy.go (+49 -0)
📝 client/internal/proxy/proxy.go (+9 -0)
📝 client/internal/proxy/wireguard.go (+4 -0)
📝 iface/iface.go (+1 -0)

📄 Description

When one of the peers has a static public host IP
or both peers are in the same local network
we establish a direct Wireguard connection
bypassing procy usage.
This helps reducing FD usage and improves
performace.


🔄 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/245 **Author:** [@braginini](https://github.com/braginini) **Created:** 2/28/2022 **Status:** ✅ Merged **Merged:** 3/1/2022 **Merged by:** [@braginini](https://github.com/braginini) **Base:** `main` ← **Head:** `no-proxy` --- ### 📝 Commits (2) - [`6864080`](https://github.com/netbirdio/netbird/commit/68640805e035f32811ae518fd286d6c74730e9f3) Support no-proxy mode connection mode - [`0825627`](https://github.com/netbirdio/netbird/commit/0825627d8811f2346458858c9388cc58260d850c) Refactor network utils that check if IP is publick or not ### 📊 Changes **8 files changed** (+129 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `client/cmd/up.go` (+2 -1) 📝 `client/internal/engine.go` (+0 -2) 📝 `client/internal/peer/conn.go` (+60 -3) 📝 `client/internal/proxy/dummy.go` (+4 -0) ➕ `client/internal/proxy/noproxy.go` (+49 -0) 📝 `client/internal/proxy/proxy.go` (+9 -0) 📝 `client/internal/proxy/wireguard.go` (+4 -0) 📝 `iface/iface.go` (+1 -0) </details> ### 📄 Description When one of the peers has a static public host IP or both peers are in the same local network we establish a direct Wireguard connection bypassing procy usage. This helps reducing FD usage and improves performace. --- <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 2025-11-20 07:12:05 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#2646