Use all your internet connections at once on Windows, macOS, Linux and Android: per-connection load balancing over Wi-Fi, Ethernet, mobile data and phone tethers
Go androidbandwidth-aggregationdownloadergolanglinuxload-balancingmacosnet-mergenetworkingtetheringtunwifiwindowswintun
README: icon, demo, macOS screenshot, troubleshooting, SECURITY.md, CONTRIBUTING.md (#7)
Rohit Mahto12fe8c40a497
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.mdnew file mode 100644index 0000000..abf5441--- /dev/null+++ b/CONTRIBUTING.md@@ -0,0 +1,45 @@+# Contributing++Thanks for helping. Bug reports, ideas and pull requests are all welcome.++## Reporting a bug++Open an [issue](https://github.com/rohit267/net-merge/issues) and include:++- your OS and version, and `net-merge version`+- the output of `net-merge list` and `net-merge status`+- what you expected and what happened+- how your connections are set up (for example Wi-Fi + iPhone USB)++For a security problem, see [SECURITY.md](SECURITY.md) instead.++## Building and testing++You need Go (the version in `go.mod`). On macOS you also need the Xcode command line tools.++```+go build -o net-merge ./cmd/net-merge+go vet ./...+go test ./...+```++- On **macOS** the engine tests use `127.0.0.2` and `127.0.0.3` as stand-in adapters. Add them once with+ `sudo ifconfig lo0 alias 127.0.0.2/32` and `sudo ifconfig lo0 alias 127.0.0.3/32`. Without them those+ tests skip.+- Check the other platforms still compile: `GOOS=windows go vet ./...` and `GOOS=linux go vet ./...`.+- To run net-merge on Windows from source you need `wintun.dll` (see [docs/DEVELOPING.md](docs/DEVELOPING.md)).++How it works and where things live: [docs/DEVELOPING.md](docs/DEVELOPING.md).++## Pull requests++- Keep each pull request small and about one thing. Say what it changes and why, and how you tested it.+- OS-specific code goes in `_windows.go`, `_linux.go` or `_darwin.go` files next to the shared code.+- Add a line under `## [Unreleased]` in [CHANGELOG.md](CHANGELOG.md) for anything a user would notice.+- If you change Go dependencies, update `vendorHash` in `nix/package.nix` (`nix build` prints the new one).+- Keep the README in simple words.++CI runs the tests on Windows, Linux and macOS, a real end-to-end run on Linux, a smoke test on macOS and the+Nix build. Please make sure they pass.++By contributing you agree that your work is released under the [MIT license](LICENSE).diff --git a/README.md b/README.mdindex 5ec5737..96f77c6 100644--- a/README.md+++ b/README.md@@ -1,25 +1,47 @@-# net-merge--[](https://github.com/rohit267/net-merge/actions/workflows/ci.yml)-[](https://github.com/rohit267/net-merge/releases)-[](https://github.com/rohit267/net-merge/releases)-[](LICENSE)--[](https://buymeacoffee.com/rohit267)-[](https://paypal.me/champdev)--**Use all your internet connections at the same time.**--Do you have Wi-Fi and a phone hotspot? Or Wi-Fi and an Ethernet cable? net-merge uses them all together,-so downloads, games and browsers get the speed of every connection added up. It works on **Windows,-macOS and Linux**. It is free. There is no account, no server and no VPN.+<p align="center">+ <img src="docs/icon.png" width="128" alt="net-merge icon">+</p>++<h1 align="center">net-merge</h1>++<p align="center">+ <strong>Use all your internet connections at the same time.</strong><br>+ Combine Wi-Fi, Ethernet and phone hotspots, so downloads, games and browsers get the speed of every connection added up.+</p>++<p align="center">+ <a href="https://github.com/rohit267/net-merge/releases/latest">Download</a> ·+ <a href="#install">Install</a> ·+ <a href="#add-a-second-connection">Add a second connection</a> ·+ <a href="#troubleshooting">Troubleshooting</a> ·+ <a href="docs/DEVELOPING.md">How it works</a>+</p>++<p align="center">+ <a href="https://github.com/rohit267/net-merge/actions/workflows/ci.yml"><img src="https://github.com/rohit267/net-merge/actions/workflows/ci.yml/badge.svg" alt="CI"></a>+ <a href="https://github.com/rohit267/net-merge/releases"><img src="https://img.shields.io/github/v/release/rohit267/net-merge" alt="Latest release"></a>+ <a href="https://github.com/rohit267/net-merge/releases"><img src="https://img.shields.io/github/downloads/rohit267/net-merge/total" alt="Downloads"></a>+ <a href="LICENSE"><img src="https://img.shields.io/github/license/rohit267/net-merge" alt="MIT license"></a>+ <img src="https://img.shields.io/badge/platforms-Windows%20%7C%20macOS%20%7C%20Linux-blue" alt="Windows, macOS and Linux">+ <a href="https://buymeacoffee.com/rohit267"><img src="https://img.shields.io/badge/Buy%20me%20a%20coffee-rohit267-FFDD00?logo=buymeacoffee&logoColor=black" alt="Buy me a coffee"></a>+ <a href="https://paypal.me/champdev"><img src="https://img.shields.io/badge/Donate-PayPal-00457C?logo=paypal&logoColor=white" alt="Donate with PayPal"></a>+</p>++<p align="center">+ <img src="docs/demo.gif" width="600" alt="Speed test on a Mac with Wi-Fi and an Android phone: the net-merge menu shows both connections carrying traffic, and the download reaches about 326 Mbit/s">+ <br>+ <sub>A Mac with Wi-Fi + an Android phone. The menu shows both connections working at once. <a href="docs/demo.mp4">Watch the full 45-second video.</a></sub>+</p>++net-merge uses all your network adapters together. It works on **Windows, macOS and Linux**. It is free.+There is no account, no server and no VPN.A real test with Wi-Fi + an Android USB tether + an iPhone hotspot, 9 downloads at once:**232-303 Mbit/s**. The fastest connection alone gave about 121 Mbit/s.-| Hover the tray icon | Right-click the tray icon |-|---|---|-|  |  |+| Windows: hover the icon | Windows: the menu | macOS: the menu bar |+|---|---|---|+|  |  |  |## How it helps@@ -141,6 +163,77 @@ Tips:- `net-merge list` shows which connections are used and why others are skipped. `net-merge status`shows live numbers.+## Troubleshooting++<details>+<summary><strong>A second connection does not make things faster</strong></summary>+<br>++You only gain speed when each connection reaches the internet by its own path. Wi-Fi from your home+router plus a phone on mobile data works. Wi-Fi and Ethernet plugged into the **same router** do not: they+share one internet line, so the total stays the same.++Also remember that one connection always uses one link. Many parallel connections (Steam, browsers,+download managers) are what speed up. Run `net-merge status` to see how many connections each link carries.+</details>++<details>+<summary><strong>A connection does not show up</strong></summary>+<br>++Run `net-merge list`. It shows which connections are used and why the others are skipped, for example+"no default gateway" (the link has no internet yet).++- **iPhone on a Mac:** plug it in, tap *Trust*, and turn on *Settings > Personal Hotspot > Allow Others to+ Join*. If the **iPhone USB** network in *System Settings > Network* stays inactive, turn off its+ **Disable unless needed** switch.+- **Android on a Mac:** install **TetherKit** and click **Apply** (see above).+- **Phone on Windows:** if the phone does not appear in *Network Settings*, install your phone maker's USB+ driver.+</details>++<details>+<summary><strong>The Android connection disappears on a Mac</strong></summary>+<br>++macOS drops the TetherKit connection each time net-merge starts, quits, or is paused and resumed. Start+net-merge first, then connect the phone. If it vanishes, click **Apply** in TetherKit again.+</details>++<details>+<summary><strong>Windows uses only one network</strong></summary>+<br>++Windows can switch Wi-Fi off when Ethernet is plugged in. Open the Group Policy Editor (`gpedit.msc`),+go to *Computer Configuration > Administrative Templates > Network > Windows Connection Manager*, and set+**Minimize the number of simultaneous connections to the Internet or a Windows domain** to **Disabled**.+</details>++<details>+<summary><strong>macOS says it cannot open net-merge, or Windows says "protected your PC"</strong></summary>+<br>++The apps are not code-signed yet. On macOS run `xattr -d com.apple.quarantine net-merge`. On Windows click+*More info*, then *Run anyway*.+</details>++<details>+<summary><strong>I cannot find the tray icon</strong></summary>+<br>++On Windows it may be behind the `^` arrow next to the clock. On macOS it is in the menu bar. On Linux the+desktop needs StatusNotifierItem support (KDE, XFCE, Cinnamon, LXQt, Budgie, or GNOME with the *AppIndicator+and KStatusNotifierItem Support* extension).+</details>++<details>+<summary><strong>A site asks me to log in again</strong></summary>+<br>++net-merge may use a different IP for each connection, and some sites tie your login to one IP. That is a+limit of splitting connections over several links.+</details>+## Commands```@@ -168,6 +261,7 @@ More flags and details are in [docs/DEVELOPING.md](docs/DEVELOPING.md).- What changed in each version: [CHANGELOG.md](CHANGELOG.md)- How it works, building from source, tests: [docs/DEVELOPING.md](docs/DEVELOPING.md)+- Want to help? [CONTRIBUTING.md](CONTRIBUTING.md). Found a security problem? [SECURITY.md](SECURITY.md)- License: MIT, see `LICENSE`. Third-party parts: `THIRD-PARTY-NOTICES.md`.## Supportdiff --git a/SECURITY.md b/SECURITY.mdnew file mode 100644index 0000000..2e82758--- /dev/null+++ b/SECURITY.md@@ -0,0 +1,33 @@+# Security++## Reporting a problem++Please **do not open a public issue** for a security problem.++Report it privately instead:++- Use **Report a vulnerability** on the repository's [Security tab](https://github.com/rohit267/net-merge/security/advisories/new), or+- email **[email protected]**.++Please include what you found, the steps to reproduce it, and your OS and `net-merge version`. I will+answer as soon as I can and credit you in the fix if you want.++## Supported versions++Only the [latest release](https://github.com/rohit267/net-merge/releases/latest) gets fixes.++## What matters most++net-merge runs with administrator or root rights, so these are the parts to look at:++- **macOS:** `sudo net-merge install` copies the binary to `/usr/local/bin` and adds+ `/etc/sudoers.d/net-merge`, which lets your user run exactly `net-merge tray` and `net-merge cleanup` as+ root without a password. Its state lives in the root-owned `/var/run/net-merge`. Ways to turn that into+ more than it should allow are in scope.+- **Linux:** the binary is given `CAP_NET_ADMIN` and `CAP_NET_RAW` with `setcap`.+- **Windows:** the installer and the elevated tray.+- Anything that lets a normal user run code as root or admin, read or write files through the root+ process, or leave the machine without a working network after a crash.++net-merge is not a VPN. Your traffic goes straight out of each adapter and is not encrypted by net-merge.+That is by design and not a vulnerability.diff --git a/docs/demo.gif b/docs/demo.gifnew file mode 100644index 0000000..373b0ebBinary files /dev/null and b/docs/demo.gif differdiff --git a/docs/demo.mp4 b/docs/demo.mp4new file mode 100644index 0000000..839bf45Binary files /dev/null and b/docs/demo.mp4 differdiff --git a/docs/icon.png b/docs/icon.pngnew file mode 100644index 0000000..b31c74bBinary files /dev/null and b/docs/icon.png differdiff --git a/docs/social-preview.png b/docs/social-preview.pngnew file mode 100644index 0000000..a79c3dbBinary files /dev/null and b/docs/social-preview.png differdiff --git a/docs/tray-menu-macos.png b/docs/tray-menu-macos.pngnew file mode 100644index 0000000..5c1b9b8Binary files /dev/null and b/docs/tray-menu-macos.png differ