r/coolgithubprojects • • 6d ago

Per-app VPN for Windows: route any .exe file through Proton VPN, open source

Post image

Hi, I'm the author. I built this because I wanted some apps, and nothing else, to go through Proton VPN on Windows, without putting the whole PC in a tunnel.

What it does?
You pick the apps (or whole folders) that use the VPN. Everything else keeps your normal connection. It builds a WireGuard session config from your Proton profile and drives the WireSock Secure Connect CLI, which routes the TCP/UDP packets of the chosen executables. It can create the WireGuard profile on your Proton account for the server you pick, or import a .conf you already have. Automatic mode picks the fastest server and switches if the current one gets slow or fails.

Details
C# on .NET 10, WinForms, MIT license. Windows 10/11 x64. Login happens on Proton's own page inside a WebView2. The app never receives your password. Profiles are encrypted with DPAPI, and the session file in ProgramData has a restricted ACL. UI in English, Portuguese and Russian. Telemetry is optional and off by default, and you can preview what would be sent.

Parts of the code were written with AI assistance. I reviewed and tested them.

Not an official Proton or WireSock product. It is not a kill switch either, and the README explains the limits. Feedback and issues are welcome on GitHub.

2 Upvotes

5 comments sorted by

1

u/this_for_loona 6d ago

So this seems like gluetun for windows?

1

u/Foxythefox2017 6d ago

nice spot! I didn't know about this software. and yes, it's something like that, but not exactly, because apptunnel is built to work with .exe files, not with containers/services like gluetun.

1

u/phurgawtin 5d ago

What would be the use case of using this over Proton VPN's built-in Split Tunneling in "include" mode, where it only gives you VPN for specific programs?

1

u/Foxythefox2017 4d ago

The main difference is that Proton VPN's built-in Split Tunneling is only available on paid plans, whereas AppTunnel works with Proton VPN's free plan.

AppTunnel uses WireGuard and WireSock to achieve per-application tunneling without requiring a paid Proton subscription or the official Proton VPN client.

If you're already paying for Proton VPN and its built-in split tunneling meets your needs, there's probably no reason to switch. AppTunnel is primarily intended as a free, open-source alternative for users who only need specific applications to go through a VPN.

1

u/phurgawtin 4d ago

Excellent. Thanks for the intel.