# Unified VPN SDK for Windows

## General

The Windows SDK is part of the Pango Partner SDK, providing client-side libraries and server-side applications for implementing custom VPN infrastructure. The SDK enables developers to create secure and reliable VPN solutions for Windows users, leveraging the benefits of a VPN while offering a seamless integration experience.

## VPN Overview

A Virtual Private Network (VPN) is a secure, encrypted connection between your device and a remote server operated by a VPN service provider. When you connect to a VPN, all your internet traffic is routed through this encrypted tunnel, making it difficult for others to intercept or monitor your online activities.

When you connect to a VPN, your device establishes a secure connection with the VPN server. This connection is encrypted using robust protocols like Hydra, OpenVPN, IPSec, or WireGuard. Once the connection is established, all your internet traffic is sent through the encrypted tunnel to the VPN server, which then forwards it to its final destination on the internet.

To the outside world, it appears as though your traffic is originating from the VPN server rather than your actual device. This effectively masks your real IP address, making it harder for websites or other third parties to track your online activities or determine your physical location.

## Architectural Diagram

<figure><img src="/files/YG3UDgusX77OL9qXkajC" alt=""><figcaption><p>The image shows a high-level architecture diagram for an application involving a VPN (Virtual Private Network) backend accessed by a client application.</p></figcaption></figure>

The client application communicates with the `UnifiedSDK service`, which includes a VPN Controller, Firewall Controller, Throttling Controller, and Events. These components manage various aspects of the VPN connection, such as establishing the VPN tunnel, controlling firewall rules, and managing bandwidth throttling. The Events component forwards `UnifiedSDK` notifications to the Client Application.

The `UnifiedSDK` also includes a Backend Provider component that communicates with the backend to obtain the necessary data for establishing the VPN tunnel connection. This data includes authorization and authentication information, lists of available countries and locations, traffic limits, user information, connection data, configuration patches, and more.

The Firewall includes multiple modules, some based on the Windows Filtering Platform (WFP) and others on Netfilter. The WFP modules focus on protecting VPN traffic. On the other hand, the Netfilter modules are used to manage traffic when necessary, providing fine-grained control over network traffic.

The DNS Monitor is a separate module that specifically handles DNS requests when the VPN tunnel is disconnected. Its distinct functionality sets it apart from the other modules in the Firewall component.

Finally, there is a VPN Node component, which represents the remote VPN server that the client application connects to through the established VPN tunnel.

## Prerequisites

The following prerequisites are required to use the SDK:

* OS: Windows 10 (1607+) or Windows 11 (22H2+)
* Software:
  * .NET 8.0 is required if the provided build is not self-contained

Additionally, in order to be able to use the SDK, the following steps have to be done:

* Sign in at [pango-cloud.com](https://www.pango-cloud.com).
* Create a project and use a name for your project as a Public key. Private key is optional.
* Use SDK where `carrierId` equals given Public Key and backend url equals default SDK url or url provided by Pango team.

{% hint style="info" %}
Note that at this time, it is not possible for users to create their own accounts directly if they do not already have an account established with us. Please contact your sales representative to initiate account creation as part of the project and client onboarding process or [contact us](https://www.pango.co/contact-us/). We apologize for any inconvenience.
{% endhint %}

### Supported protocols

* [Hydra](/paas/sdk/unified-vpn-sdk-for-windows/features/hydra-protocol.md)
* [OpenVPN](/paas/sdk/unified-vpn-sdk-for-windows/features/openvpn-protocol.md)
* [WireGuard](/paas/sdk/unified-vpn-sdk-for-windows/features/wireguard-protocol.md)
* [IPSec](/paas/sdk/unified-vpn-sdk/features/ipsec-protocol.md)

### Supported features

* [Backend URL configuration](/paas/sdk/unified-vpn-sdk-for-windows/setup/backend-url-configuration.md)
  * The SDK supports overriding default backend API URLs by providing reserved backend URL to Initialize method.
* Traffic protection features
  * [Killswitch](/paas/sdk/unified-vpn-sdk-for-windows/features/traffic-protection/killswitch.md): Can be enabled/disabled programmatically. When turned on, it acts as a mechanism that prevents traffic leakage outside the VPN-tunnel during an emergency rupture. A kill switch will stop your computer from transmitting data until your connection to the VPN server is restored, protecting from all leaks.
  * [Prevent IP leaks](/paas/sdk/unified-vpn-sdk-for-windows/features/traffic-protection/prevent-ip-leaks.md): Blocks IPv6 and DNS requests outside the VPN tunnel
  * [Block Local Network](/paas/sdk/unified-vpn-sdk-for-windows/features/traffic-protection/block-local-networks.md): Blocks all local network connections during VPN session using BlockLocalNetwork property
  * [Broadcast Discovery](/paas/sdk/unified-vpn-sdk-for-windows/features/traffic-protection/broadcast-discovery.md): Controls the device broadcast discovery protection rules during VPN session using BroadcastDiscovery property
* [Firewall](/paas/sdk/unified-vpn-sdk-for-windows/features/other/firewall.md): Supports enabling/disabling the firewall, updating bypass domains and processes, adding/removing processes to the killswitch exception list, enabling/disabling DNS monitoring, and getting the current killswitch state.
  * [Domain bypass](/paas/sdk/unified-vpn-sdk-for-windows/features/other/firewall/domain-bypass.md): Allows excluding certain domains from the VPN tunnel, routing them through the regular internet connection instead
  * [Process bypass](/paas/sdk/unified-vpn-sdk-for-windows/features/other/firewall/process-bypass.md): Allows excluding certain processes from the VPN tunnel, sending their traffic outside the encrypted connection
  * [Domain route via VPN](/paas/sdk/unified-vpn-sdk-for-windows/features/other/firewall/domain-route-via-vpn.md): Allows you to select specific domains to be routed through the VPN tunnel while all other traffic remains unaffected
  * [Process route via VPN](/paas/sdk/unified-vpn-sdk-for-windows/features/other/firewall/process-route-via-vpn.md): Allows you to select specific processes to be routed through the VPN tunnel while all other traffic remains unaffected
  * [DNS monitor](/paas/sdk/unified-vpn-sdk-for-windows/features/other/firewall/dns-monitor.md): When the VPN tunnel is disconnected, this module monitors and logs all DNS requests made by the system to help identify potential DNS leaks or unusual domain queries. The DNS monitor is automatically disabled when the VPN tunnel is connecting or connected.
* [Throttling](/paas/sdk/unified-vpn-sdk-for-windows/features/other/throttling.md): Supports various one-line requests to configure the firewall, including managing processes, speed limits, and enabling/disabling throttling.
* [Optimal Location](/paas/sdk/unified-vpn-sdk-for-windows/features/other/optimal-location-and-specific-locations.md): Automatically select the best VPN server for your connection.
* Supported only on Hydra protocol features
  * [CustomDNS, UserDNS, VpnProfiles](/paas/sdk/unified-vpn-sdk-for-windows/features/hydra-protocol/customdns-userdns-vpnprofiles.md): The SDK provides several features that allow users to customize and optimize their VPN experience.
  * [MultiHop](/paas/sdk/unified-vpn-sdk-for-windows/features/hydra-protocol/multihop.md): Routes their VPN connection through an intermediate server before reaching the main VPN server.

## Getting Started

To begin using this project, please refer to [setup](/paas/sdk/unified-vpn-sdk-for-windows/setup.md)

## Changelog

The SDK version history and changes are documented [here](/paas/sdk/unified-vpn-sdk-for-windows/changelog.md).

## Support

If you encounter any issues or have questions regarding integrating the SDK, please visit [here](/paas/sample-applications/unified-vpn-sdk-demo-for-windows.md).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://pango.gitbook.io/paas/sdk/unified-vpn-sdk-for-windows.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
