Use Proton VPN only in the apps you choose, such as Serein, Discord or another compatible client. AppTunnel lets you pick the programs and the WireGuard route from its own window. WireSock keeps the connection running as a Windows service and puts the TCP and UDP traffic of the chosen programs into the tunnel.
To get started, download the x64 installer from Releases. The guide below covers everything from installation to the first test.
- 64-bit Windows 10 or 11 (x64). To check, open Settings → System → About and look at System type.
- A Proton account. You can create a free account and use any server your plan includes. Create a Proton VPN account
- Windows administrator permission. Windows asks for it because AppTunnel uses a network service.
- Open Releases. Under Assets, download AppTunnel-Setup-x64.exe.
- Double-click the downloaded file. Confirm the Windows administrator prompt and follow the installer steps.
- On the last page, keep the options to install the WireSock Secure Connect CLI and the Microsoft Edge WebView2 Runtime checked, if they appear. WireSock routes the traffic into the VPN. WebView2 opens the Proton page inside AppTunnel. If Windows asks you to confirm the installation of either one, follow the on-screen instructions.
- Click Finish. To open AppTunnel later, search for AppTunnel in the Start menu.
The installer includes .NET. If you were using the ZIP of version 0.4.0 or earlier, first close the Proton window and choose Exit interface from the tray menu. Your profiles and preferences are still available when you open the installed version.
Under Assets, download AppTunnel-Windows-x64.zip, right-click the file and choose Extract all. Open AppTunnel.exe from the extracted folder and keep all the files together. On a PC without WireSock or WebView2, install the components from the official links below or run the commands in PowerShell.
winget install --id NTKERNEL.WireSockVPNClientCLI --exact --source winget
winget install --id Microsoft.EdgeWebView2Runtime --exact --source wingetAppTunnel requires WireSock CLI 3.8.2.1 or later. If Windows does not recognize winget, use the vendors' download pages or install App Installer from the Microsoft Store. WireSock · WebView2 · WinGet help
On first launch, the app uses the Windows language when it is Portuguese, English or Russian, and English otherwise. To change it, click Language in the side menu. The selector with flags also offers English, Português and Русский.
A WireGuard profile stores the server address and the key needed to connect. You can reuse a profile from your Proton account, create one with the assistant, or import a file you already saved. Add at least two different servers to allow automatic switching. One server is enough to connect.
On first launch, the setup assistant checks WireSock and WebView2, opens the Proton login, and asks which apps should use the VPN. When it finishes, click Connect now. To run the assistant again, use Settings → Run first-time setup.
- Open Servers → Choose route. AppTunnel lists the servers your Proton account can use, with country, city, load and ping. Free accounts only see the free servers.
- Click a server. AppTunnel creates the WireGuard configuration in your Proton account and saves it under Servers within a few seconds.
The list and the creation use the Proton session already saved in AppTunnel, in the background and without opening a window. AppTunnel never receives your password. If the session has expired, the Proton login window opens once; sign in and pick the route again. The key is generated on your PC and saved before the request is sent to Proton, so a route that was created never ends up without its key, even if the connection drops halfway.
- Open Servers → More options → Proton account profiles…. If the Proton login window appears, sign in to your account and complete the verification it asks for. Go back to AppTunnel and open Proton account profiles… again to see what already exists.
- If you need a new profile, use More options → Create in the Proton window…. Give it a name you will recognize, such as
AppTunnel home. - Click Create with recommended server to use the server Proton suggests. To choose the location, click Choose another server… and then Create next to the server in Proton's list.
- Keep the window open until the profile shows up under Servers. The configuration is imported automatically when Proton shows it in full.
Each creation you confirm adds a persistent profile to your Proton account. Sign-in, sync, connection and route switching use the available profiles. If a creation gets no confirmation, check Proton account profiles… before trying again. To revoke a remote profile, open your account on Proton.
Profiles with a usable key are imported automatically. If you see Original .conf required, import the file you saved when you created it, or create a new profile. Proton uses a private key generated when the profile is created. Official Proton guide · Implementation of the configuration page
- Open Servers → More options → Import a .conf file….
- Choose the original file downloaded from Proton and click Open.
- The imported server appears in the list. If you prefer to generate the file in your browser, go to Proton account downloads and use WireGuard configuration.
Keep .conf files in a private place. They contain the profile's private key.
- Open Apps → Add app → Explore common apps…. Check the detected apps and click Apply selection. The catalog lists Discord, PTB, Canary, Serein, Telegram, Signal and other clients. Dimmed cards are unavailable. For portable programs, use Browse for an .exe…, From a running app…, or drag the
.exe, shortcut or folder onto the dashed area. - Turn on the switch for each app that should use the tunnel. The label shows Via VPN or Direct. To remove an app, click the × on its row. With Whole folder…, choose the application's own folder, because the rule covers the executables inside it.
- Under Servers, leave Automatic to use the fastest server, or pin a server from the list.
- Under Home, click the round button and wait for Connected · Protected. If an official Discord, PTB or Canary is open and included in the route, AppTunnel asks whether you want to restart it. Choose Restart now to rebuild the voice and video connection, or Not now to restart Discord later. Check Remember my choice to stop seeing the question. You can change the choice in Settings → Connection. With Serein, you can go straight to testing the call or the stream.
The Server card on the Home page shows the server in use, and the Connection card shows whether the handshake was confirmed. Test measures the ping to the server. To pin another server while connected, choose the row under Servers and click Switch server under Home. In Automatic mode, AppTunnel picks the fastest server when it connects and switches by itself when the current one gets slow or fails. If you change the apps, the protocol or the filters while connected, AppTunnel applies the changes by itself about 1.5 seconds after the last change, and the notice at the bottom offers Undo. IP fields are applied when you leave the field. To apply manually with Apply changes, clear Apply changes automatically while connected in Settings → Connection. Each server's latency refreshes by itself when you open AppTunnel and the Servers page, at most once a minute.
AppTunnel turns a Proton WireGuard profile, a list of executables or folders and destination IP filters into a session configuration. The C# interface prepares the file and controls the Windows service. WireSock applies the rules to TCP and UDP packets and handles the WireGuard communication with the Proton server. Code that builds the configuration · WireSock documentation
flowchart TD
Packet["TCP or UDP packet"] --> App{"Executable in AllowedApps?"}
App -->|Yes| Route{"Destination in AllowedIPs?"}
Route -->|Yes| Exclusion{"Destination in DisallowedIPs?"}
App -->|No| Direct["Direct connection"]
Route -->|No| Direct
Exclusion -->|Yes| Direct
Exclusion -->|No| Proton["WireGuard tunnel to Proton"]
| Rule | How AppTunnel builds it |
|---|---|
#@ws:AllowedApps |
Uses the full paths of the checked executables and folders. A folder includes the executables inside it, subfolders too. |
AllowedIPs |
Starts from the networks the profile allows. Each IP or range under Via VPN must fall inside one of them. IPv6 is included when it is enabled and the profile has both an IPv6 address and an IPv6 route. |
#@ws:DisallowedIPs |
Includes the IPs or ranges set to go through the direct connection. With the local network option on, it also includes preset ranges such as 192.168.0.0/16. These exclusions apply even to checked executables. |
For example, with Serein checked, the browser unchecked and the local network set to go direct, the same rules produce these three results.
| Application | Example destination | Path |
|---|---|---|
| Serein | Public IP of a voice server, inside AllowedIPs |
Proton VPN |
| Browser | The same public IP | Direct connection |
| Serein | 192.168.1.10, inside an excluded range |
Direct connection |
These are the routing lines of the [Peer] section in that example, with one of the local network ranges.
AllowedIPs = 0.0.0.0/0
#@ws:AllowedApps = C:\Users\Ana\AppData\Local\Programs\Serein\serein.exe
#@ws:DisallowedIPs = 192.168.0.0/16In the default transparent mode, AppTunnel leaves out the profile's DNS field and lets Windows or the application itself handle name resolution. The Use the profile DNS option turns on WireSock's DNS redirection. Destination rules use IPs and CIDR networks. Filters in the configuration · WireSock parameters
The account window runs in AppTunnel.Proton.exe, a non-elevated process that opens the official page in WebView2. After sign-in, it lists the profiles the page shows and imports the full configurations. When you confirm a creation in the assistant, AppTunnel prepares and submits the official form with the authenticated session, and Proton's page generates the key and registers the profile. The same validator handles sync and manual import, accepting one [Interface] section and a single [Peer], with valid keys, addresses, destinations and endpoint. For AmneziaWG, the validator also checks the obfuscation parameters of the supported version. Proton window · Creation assistant · WireGuard validator
DPAPI also encrypts the profiles passed locally between the Proton window and the interface. The copy WireSock uses gets an ACL, Windows' list of access permissions. The HKLM\SOFTWARE\AppTunnel registry key stores the session metadata, including the owner's SID and the paths of WireSock and the configuration file. When it reopens, AppTunnel checks this data against the Windows service to recover the active route. Profile storage · Service control · DPAPI on Windows
sequenceDiagram
participant UI as AppTunnel
participant Core as AppTunnel.Core
participant CLI as WireSock CLI
participant SCM as Windows services
UI->>Core: Validate profile, apps and destinations
Core-->>UI: Generate session configuration
UI->>CLI: Register service with manual start
UI->>SCM: Request service start and query status
alt Service started
SCM-->>UI: Running
else Failed to start
SCM-->>UI: Error or timeout
UI->>CLI: Try to restore the previous session
end
- Automatic apply, Apply changes and Switch server replace the configuration and restart the service. If the new session fails, AppTunnel tries to restore the previous one and shows Apply changes so you can try again. The Connected · Protected indicator comes from the service's
Runningstate. To validate the path end to end, generate traffic in a checked app. Service control - Discord, PTB and Canary get the restart option when they are open and have just joined the route, or when the server changed. Clients that were already in the previous session, on the same server, are not restarted. Restarting rebuilds connections that were already open. Serein is outside this flow. Restart rules · Route application
- Exit interface closes the tray process. The WireSock service keeps running as an independent process. Start with Windows registers a per-user task that opens the interface in the tray when you sign in. Tray · Windows startup
Select an option under Servers → Advanced → Protocol. After changing the option, click Connect. While the VPN is connected, the change is applied automatically.
| Option | Engine and requirements |
|---|---|
| From profile | Uses the protocol of the selected file. For Proton .conf profiles, that is WireGuard. |
| WireGuard | Uses UDP with WireSock and a compatible WireGuard profile. |
| WireGuard with padding | Uses WireSock's pre-handshake padding, compatible with regular WireGuard servers. It can be selected with a Proton .conf. |
| AmneziaWG | Import a .conf from a compatible AmneziaWG server. AppTunnel accepts the configuration with S1, S2 and H1 to H4 as integer values. The parameters must match the server's. |
| Automatic | Starts with the selected profile and tries up to four combinations of protocol and endpoint. It uses only the imported profiles and, when compatible, tries WireGuard with padding on the same endpoint. |
In Automatic mode, import more than one profile to allow server switching. With the interface open or collapsed to the tray, a later failure identified in the logs can start a recovery round with the available alternatives. Split tunneling, filters and privacy options keep being applied on every attempt. Switching can interrupt calls or streams.
If the ping replies of the route in use stay above 400 ms for at least five seconds, AppTunnel measures the other compatible servers in the background. If there is a faster alternative and the current route stays slow, it switches through WireSock. The measurements leave the active connection alone. The switch itself can briefly interrupt a call or stream because the service loads the new profile. The new route is kept only when WireSock logs the handshake response. Without that confirmation, AppTunnel restores the previous route.
Diagnostics separates a handshake response, no response after sending, an endpoint error, and a route or adapter error. AppTunnel uses recent WireSock events. When the logs do not expose these events, the panel shows handshake status unavailable. No response can also mean the server is down or the keys do not match.
Proton Stealth is available in Proton's official clients. The manual files Proton provides use WireGuard. AppTunnel uses those files in WireSock. WireGuard with padding and AmneziaWG also depend on UDP, and how well they work varies by network. Proton protocols · Proton manual configuration · WireSock parameters
The options below are under Servers → Advanced. The section opens collapsed to leave more room for the server list, and it appears expanded when there are destinations filled in under Always via VPN or Never via VPN.
- Use the profile DNS (shared resolver) sends the Windows shared resolver's queries to the profile's DNS through WireSock. The option requires the DNS to be inside the VPN destinations and can affect local names and queries from other apps that use the Windows resolver. Apps with their own DNS, such as DoH, follow their own settings and the traffic rules.
- Block IPv6 without a route (prevents leaks) applies outbound Windows Firewall rules to the checked executables when the session has no IPv6 route in the tunnel. It blocks
2000::/3and requires rules for individual executables instead of folders. Disconnecting removes the rules the session created. If the WireSock service stops by itself, AppTunnel also removes the service, the session files and these rules. Use Include IPv6 when available to use the routes allowed by dual-stack profiles. - Excluded destinations go through the direct connection. Switching servers replaces the service and can open a gap between sessions. These options reduce the leak paths described above and have a different scope from a kill switch.
DNS and local network in WireSock · Route configuration · IPv6 rules
| What you want to do | Where to click |
|---|---|
| Collapse the window and stay connected | Close the window with the X. AppTunnel stays in the Windows tray near the clock. Check the hidden icons arrow if needed. |
| Hide the AppTunnel icon | Right-click it and choose Hide Tray. |
| Restore the window and the icon | Open AppTunnel.exe again. The existing instance is brought back. |
| Close the interface and keep the service | In the tray, choose Exit interface. |
| Open AppTunnel with Windows | Check Start with Windows in Settings or in the tray icon's context menu. The option is available in the installed version. |
| Stop the VPN | Click Disconnect in the dashboard or Disconnect VPN in the tray. |
With Start with Windows on, AppTunnel opens in the tray when you sign in to your Windows account. To turn the VPN on after restarting the PC, open AppTunnel and click Connect.
Under Settings → Appearance, the default theme follows the Windows color preference. There are also Light and Dark theme options.
Open Settings → Check for updates. If there is a newer version with an installer on GitHub, AppTunnel downloads and verifies the file, including preview versions. Confirm when the install option appears and follow the wizard. The update keeps your profiles, preferences and the running VPN service.
With the VPN disconnected, use Settings → Update WireSock. AppTunnel uses Windows' WinGet to check for and install updates to the WireSock CLI package.
In the installed edition, Update automatically, right below Start with Windows, checks once a day and installs the verified update in the background. The app goes back to the tray with your existing preferences.
If you are on version 0.4.0 or earlier, download the installer from the Releases page.
| What you see | How to fix it |
|---|---|
| The executable asks for .NET | Download the current installer from Releases. If you prefer to keep using an old ZIP, install the .NET Desktop Runtime 10 x64. |
| The Proton window is unavailable | Install or update the WebView2 Runtime. You can also download the profile from Proton's official page and use Import a .conf file…. |
| The assistant does not confirm the creation | Check Servers → More options → Proton account profiles… before repeating. If the built-in form is unavailable, use Proton's page and import the .conf. |
| WireSock shows as missing | Install the WireSock Secure Connect CLI package from the official page or with the command above. Under Diagnostics, use Detect again. If you still need to point to the path manually, use Locate WireSock… and look for wiresock-client.exe, usually in C:\Program Files\WireSock Secure Connect\sdk\. |
Import says PrivateKey is empty or invalid |
Use the original .conf that contains the private key, or generate a new profile on Proton. |
| The server shows as in use and the call keeps failing | Check that you turned on the right executable under Apps, apply the changes, close the chat client completely and reopen it. If needed, try another server and check the logs under Diagnostics. |
| Another WireSock service is already in use | Disconnect the session in the application that started it and try connecting through AppTunnel. |
To report a problem, open an issue with the AppTunnel version, the Windows version and the steps to reproduce. Copy the error message or the relevant logs from Diagnostics. Keep private keys and .conf files out of the report.
To build on Windows, install the .NET 10 SDK and run this at the repository root. The output goes to dist/win-x64.
.\Compilar.ps1
dotnet run --project tests/AppTunnel.Checks -c Release
node tests/proton-portal.test.cjs
node --test tests/telemetry.test.mjsUse ./Compilar.ps1 -SelfContained to include .NET in the package. Compilar.ps1 assembles the full package, with documentation and licenses, in dist/win-x64. The installer/AppTunnel.iss file generates the installer with Inno Setup 6.3 or later from that folder and requires the version:
.\Compilar.ps1 -SelfContained
& "${env:ProgramFiles(x86)}\Inno Setup 6\ISCC.exe" /DAppVersion=0.9.0 /DPackageDir="$PWD\dist\win-x64" installer\AppTunnel.issThe Build and publish Windows release workflow validates the installer and tests install, update and removal on Windows after changes to the code on the main branch. To publish, check Publish GitHub release in the manual run, or push a commit with the exact message Release AppTunnel vX.Y.Z to main with the matching version in Directory.Build.props. Commit-triggered releases go out as previews. The build ships only the language resources the interface uses.
| Project | Responsibility |
|---|---|
src/AppTunnel.Windows |
Interface, app catalog, tray and the ITunnelEngine contract. The WireSock adapter is the engine shipped in this implementation. |
src/AppTunnel.Core |
Profile validation, attempt planning, diagnostics classification and Proton integration. |
src/AppTunnel.Proton |
Proton account window and import of the available profiles. |
The code is under the MIT license. The terms of use are available in the installer, under Settings → Terms of use, and in this repository. Português · English · Русский
The licenses of the bundled dependencies and fonts ship alongside their files in Licenses and Fonts. The interface palette is Cartigma beta's Midnight.

