Virtual private network explained
Virtual private network (VPN) is a network architecture for virtually extending a private network (i.e. any computer network which is not the public Internet) across one or multiple other networks which are either untrusted (as they are not controlled by the entity aiming to implement the VPN) or need to be isolated (thus making the lower network invisible or not directly usable).[1]
A VPN can extend access to a private network (one that disallows or restricts public access to some of its resources) to users who do not have direct access to it, such as an office network allowing secure access from off-site over the Internet.[2] This is achieved by creating a link between computing devices and computer networks by the use of network tunneling protocols.
It is possible to make a VPN secure to use on top of insecure communication medium (such as the public internet) by choosing a tunnelling protocol which implements the necessary security features to guarantee confidentiality and integrity. This kind of VPN implementations have the benefit of reduced costs and greater flexibility, with respect to dedicated communication lines, for remote workers.[3]
The term VPN is also used to refer to commercial network proxy services which sell access to their own proxy networks by connecting their customers by means of VPN protocols.
When VPN architectures are used
The goal of virtual private networks is to allow network hosts (PCs, servers, etc.) exchanging network messages with private content across another network as if they are part of the same network in ways that make crossing the medium network completely transparent from a certain communication layer upwards.
Users who are customers of a network connectivity service provider consider such a network to be untrusted since it is controlled by a third-party, and generally want to build VPNs adopting protocols that provide protection of their communication content privacy.
In the opposing context of Provider-provisioned VPN, the untrusted network condition is replaced by the connectivity providers intention of isolating parts of their own network infrastructure in virtual segments, in ways that make contents of each segment private with respect to the others. This situation makes many other tunneling protocols suitable for building PPVPNs, even with weak or no security features (like in VLAN).
VPN general working
The ways a VPN actually works depends on which technologies and protocols the VPN is built upon. A tunneling protocol is used to transfer the network messages from one side to the other. Their goal is to take network messages from applications (operating at OSI layer 7) on one side of the tunnel and replay them on the other side, as if they virtually substitute the lower network or link layers. Applications do not need to be modified to let their messages pass through the VPN, because the virtual network or link is made available to the OS.
Applications that do implement tunneling or proxying features for themselves without making such features available as a network interface, are not to be considered VPN implementations but may partially match same or similar end-user goal of exchanging private contents towards a remote network (like intranet browsing via an authenticated proxy).
VPN topology configurations
Virtual private networks configurations can be classified depending on the purpose of the virtual extension, which makes different tunneling strategies appropriate for different topologies:
- Remote access: A host-to-network configuration is analogous to joining one or more computers to a network which cannot be directly connected. This type of extension provides that computer access to local area network of a remote site, or any wider enterprise networks, such as an intranet. Each computer is in charge of activating its own tunnel towards the network it wants to join. The joined network is only aware of a single remote host for each tunnel. This may be employed for remote workers, or to enable people accessing their private home or company resources without exposing them to the public Internet. Remote access tunnels can be either on-demand or always-on. Proper implementations of this configuration require the remote host to initiate the communication towards the central network it is accessing, because the remote host location is usually unknown to the central network until the former tries to reach it
- Site-to-site: A site-to-site configuration connects two networks. This configuration expands a network across geographically disparate locations. Tunneling is only done between two devices (like routers, firewalls, VPN gateways, servers, etc.) located at both network locations. These devices then make the tunnel available to other local network hosts that aim to reach any host on the other side. This is useful to keep sites connected to each other in a stable manner, like office networks to their headquarter or datacenter. In this case, any side may be configured to initiate the communication as long as it knows how to reach the other on the medium network. if both are known to each other, and the chosen VPN protocol is not bound to client-server design, the communication can be initiated by either of the two as soon as they see the VPN is inactive or some local host is trying to reach another one known to be located on the other side.In the context of site-to-site configurations, the terms intranet and extranet are used to describe two different use cases.[4] An intranet site-to-site VPN describes a configuration where the sites connected by the VPN belong to the same organization, whereas an extranet site-to-site VPN joins sites belonging to multiple organizations.
Typically, individuals interact with remote access VPNs, whereas businesses tend to make use of site-to-site connections for business-to-business, cloud computing, and branch office scenarios. However, these technologies are not mutually exclusive and, in a significantly complex business network, may be combined to enable remote access to resources located at any given site, such as an ordering system that resides in a data center.
Apart from the general topology configuration, a VPN may also be characterized by:
- the tunneling protocol used to tunnel the traffic.
- the tunnel's termination point location, e.g., on the customer edge or network-provider edge.
- the security features provided.
- the OSI layer they present to the connecting network, such as Layer 2 link/circuit or Layer 3 network connectivity.
- the number of simultaneous allowed tunnels.
- the relationship between the actor implementing the VPN and the network infrastructure owner/provider, and whether the former trusts the medium of the former or not.
A variety of VPN technics exist to adapt to the above characteristics, each providing different network tunneling capabilities and different security model coverage or interpretation.
VPN native and third-party support
Operating systems vendors and developers do typically offer native support to a selection of VPN protocols which is subject to change over the years, as some have been proven to be unsecure with respect to modern requirements and expectations, and some others emerged.
VPN support in consumer operating systems
Desktop, smartphone and other end-user device operating systems do usually support configuring remote access VPN from their graphical or command-line tools.[5] [6] [7] However, due to the variety of, often non standard, VPN protocols there exists many third-party applications that implement additional protocols not yet or no more natively supported by the OS.
For instance, Android lacked native IPsec IKEv2 support until version 11,[8] and people needed to install third-party apps in order to connect that kind of VPNs, while Microsoft Windows, BlackBerry OS and others got it supported in the past.
Conversely, Windows does not support plain IPsec IKEv1 remote access native VPN configuration (commonly used by Cisco and Fritz!Box VPN solutions) which makes the use of third-party applications mandatory for people and companies relying on such VPN protocol.
VPN support in network devices
Network appliances, such as firewalls, do often include VPN gateway functionality for either remote access or site-to-site configurations. Their administration interfaces do often facilitate setting up virtual private networks with a selection of supported protocols which have been integrated for an easy out-of-box setup.
In some cases, like in the open source operating systems devoted to firewalls and network devices (like OpenWrt, IPFire, PfSense or OPNsense) it is possible to add support for additional VPN protocols by installing missing software components or third-party apps.
Similarly, it is possible to get additional VPN configurations working, even if the OS does not facilitate the setup of that particular configuration, by manually editing internal configurations of by modifying the open source code of the OS itself. For instance, pfSense does not support remote access VPN configurations through its user interface where the OS runs on the remote host, while provides comprehensive support for configuring it as the central VPN gateway of such remote-access configuration scenario.
Otherwise, commercial appliances with VPN features based on proprietary hardware/software platforms, usually support a consistent VPN protocol across their products but do not open up for customizations outside the use cases they intended to implement. This is often the case for appliances that rely on hardware acceleration of VPNs to provide higher throughput or support a larger amount of simultaneously connected users.
Security mechanisms
Whenever a VPN is intended to virtually extend a private network over a third-party untrusted medium, it is desirable that the chosen protocols match the following security model:
VPN are not intended to make connecting users neither anonymous nor unidentifiable from the untrusted medium network provider perspective. If the VPN makes use of protocols that do provide the above confidentiality features, their usage can increase user privacy by making the untrusted medium owner unable to access the private data exchanged across the VPN.
Authentication
In order to prevent unauthorized users from accessing the VPN, most protocols can be implemented in ways that also enable authentication of connecting parties. This secures the joined remote network confidentiality, integrity and availability.
Tunnel endpoints can be authenticated in various ways during the VPN access initiation. Authentication can happen immediately on VPN initiation (e.g. by simple whitelisting of endpoint IP address), or very lately after actual tunnels are already active (e.g. with a web captive portal).
Remote-access VPNs, which are typically user-initiated, may use passwords, biometrics, two-factor authentication, or other cryptographic methods. People initiating this kind of VPN from unknown arbitrary network locations are also called "road-warriors". In such cases, it is not possible to use originating network properties (e.g. IP addresses) as secure authentication factors, and stronger methods are needed.
Site-to-site VPNs often use passwords (pre-shared keys) or digital certificates. Depending on the VPN protocol, they may store the key to allow the VPN tunnel to establish automatically, without intervention from the administrator.
VPN protocols to highlight
A virtual private network is based on a tunneling protocol, and may be possibly combined with other network or application protocols providing extra capabilities and different security model coverage.
- Internet Protocol Security (IPsec) was initially developed by the Internet Engineering Task Force (IETF) for IPv6, and was required in all standards-compliant implementations of IPv6 before made it only a recommendation.[9] This standards-based security protocol is also widely used with IPv4. Its design meets most security goals: availability, integrity, and confidentiality. IPsec uses encryption, encapsulating an IP packet inside an IPsec packet. De-encapsulation happens at the end of the tunnel, where the original IP packet is decrypted and forwarded to its intended destination. IPsec tunnels are set up by Internet Key Exchange (IKE) protocol. IPsec tunnels made with IKE version 1 (also known as IKEv1 tunnels, or often just "IPsec tunnels") can be used alone to provide VPN, but have been often combined to the Layer 2 Tunneling Protocol (L2TP). Their combination made possible to reuse existing L2TP-related implementations for more flexible authentication features (e.g. Xauth), desirable for remote-access configurations. IKE version 2, which was created by Microsoft and Cisco, can be used alone to provide IPsec VPN functionality. Its primary advantages are the native support for authenticating via the Extensible Authentication Protocol (EAP) and that the tunnel can be seamlessly restored when the IP address of the associated host is changing, which is typical of a roaming mobile device, whether on 3G or 4G LTE networks. IPsec is also often supported by network hardware accelerators,[10] which makes IPsec VPN desirable for low-power scenarios, like always-on remote access VPN configurations.[11] [12]
- Transport Layer Security (SSL/TLS) can tunnel an entire network's traffic (as it does in the OpenVPN project and SoftEther VPN project[13]) or secure an individual connection. A number of vendors provide remote-access VPN capabilities through TLS. A VPN based on TLS can connect from locations where the usual TLS web navigation (HTTPS) is supported without special extra configurations,
- Datagram Transport Layer Security (DTLS) – used in Cisco AnyConnect VPN and in OpenConnect VPN[14] to solve the issues TLS has with tunneling over TCP (SSL/TLS are TCP-based, and tunneling TCP over TCP can lead to big delays and connection aborts[15]).
- Microsoft Point-to-Point Encryption (MPPE) works with the Point-to-Point Tunneling Protocol and in several compatible implementations on other platforms.
- Microsoft Secure Socket Tunneling Protocol (SSTP) tunnels Point-to-Point Protocol (PPP) or Layer 2 Tunneling Protocol traffic through an SSL/TLS channel (SSTP was introduced in Windows Server 2008 and in Windows Vista Service Pack 1).
- Multi Path Virtual Private Network (MPVPN). Ragula Systems Development Company owns the registered trademark "MPVPN".[16]
- Secure Shell (SSH) VPN – OpenSSH offers VPN tunneling (distinct from port forwarding) to secure remote connections to a network, inter-network links, and remote systems. OpenSSH server provides a limited number of concurrent tunnels. The VPN feature itself does not support personal authentication.[17] SSH is more often used to remotely connect to machines or networks instead of a site to site VPN connection.
- WireGuard is a protocol. In 2020, WireGuard support was added to both the Linux[18] and Android[19] kernels, opening it up to adoption by VPN providers. By default, WireGuard utilizes the Curve25519 protocol for key exchange and ChaCha20-Poly1305 for encryption and message authentication, but also includes the ability to pre-share a symmetric key between the client and server.[20]
- OpenVPN is a free and open-source VPN protocol based on the TLS protocol. It supports perfect forward-secrecy, and most modern secure cipher suites, like AES, Serpent, TwoFish, etc. It is currently being developed and updated by OpenVPN Inc., a non-profit providing secure VPN technologies.
- Crypto IP Encapsulation (CIPE) is a free and open-source VPN implementation for tunneling IPv4 packets over UDP via encapsulation.[21] CIPE was developed for Linux operating systems by Olaf Titz, with a Windows port implemented by Damion K. Wilson.[22] Development for CIPE ended in 2002.[23]
Trusted delivery networks
Trusted VPNs do not use cryptographic tunneling; instead, they rely on the security of a single provider's network to protect the traffic.[24]
From a security standpoint, a VPN must either trust the underlying delivery network or enforce security with a mechanism in the VPN itself. Unless the trusted delivery network runs among physically secure sites only, both trusted and secure models need an authentication mechanism for users to gain access to the VPN.
VPNs in mobile environments
Mobile virtual private networks are used in settings where an endpoint of the VPN is not fixed to a single IP address, but instead roams across various networks such as data networks from cellular carriers or between multiple Wi-Fi access points without dropping the secure VPN session or losing application sessions.[28] Mobile VPNs are widely used in public safety where they give law-enforcement officers access to applications such as computer-assisted dispatch and criminal databases,[29] and in other organizations with similar requirements such as field service management and healthcare.[30]
Networking limitations
A limitation of traditional VPNs is that they are point-to-point connections and do not tend to support broadcast domains; therefore, communication, software, and networking, which are based on layer 2 and broadcast packets, such as NetBIOS used in Windows networking, may not be fully supported as on a local area network. Variants on VPN such as Virtual Private LAN Service (VPLS) and layer 2 tunneling protocols are designed to overcome this limitation.[31]
See also
Further reading
- Kelly . Sean . August 2001 . Necessity is the mother of VPN invention . Communication News . 26–28 . 0010-3632 . https://web.archive.org/web/20011217153420/http://www.comnews.com/cgi-bin/arttop.asp?Page=c0801necessity.htm . 2001-12-17.
Notes and References
- Web site: virtual private network . live . https://web.archive.org/web/20230102230546/https://csrc.nist.gov/glossary/term/virtual_private_network . 2 January 2023 . 2 January 2023 . NIST Computer Security Resource Center Glossary.
- Web site: What Is a VPN? - Virtual Private Network. 2021-09-05. Cisco. en. 31 December 2021. https://web.archive.org/web/20211231100706/https://www.cisco.com/c/en/us/products/security/vpn-endpoint-security-clients/what-is-vpn.html. live.
- Book: Mason, Andrew G. . Cisco Secure Virtual Private Network . registration . Cisco Press . 2002 . 7. 9781587050336 .
- RFC 3809 - Generic Requirements for Provider Provisioned Virtual Private Networks. 3809. 1.1.
- Web site: Connect to a VPN in Windows - Microsoft Support . 2024-07-11 . support.microsoft.com.
- Web site: Connect to a virtual private network (VPN) on Android . 11 July 2024.
- Web site: VPN settings overview for Apple devices . 2024-07-11 . Apple Support . en.
- Web site: IPsec/IKEv2 Library . 2024-07-11 . Android Open Source Project . en.
- , "IPv6 Node Requirements", E. Jankiewicz, J. Loughney, T. Narten (December 2011)
- Web site: Security for VPNs with IPsec Configuration Guide, Cisco IOS Release 15S - VPN Acceleration Module [Support] ]. 2024-07-09 . Cisco . en.
- Web site: VPN overview for Apple device deployment . 2024-07-09 . Apple Support . en.
- Web site: 2023-05-22 . About Always On VPN for Windows Server Remote Access . 2024-07-09 . learn.microsoft.com . en-us.
- Web site: 1. Ultimate Powerful VPN Connectivity . www.softether.org . SoftEther VPN Project . 8 October 2022 . 8 October 2022 . https://web.archive.org/web/20221008211349/https://www.softether.org/1-features/1._Ultimate_Powerful_VPN_Connectivity#SoftEther_VPN's_Solution:_Using_HTTPS_Protocol_to_Establish_VPN_Tunnels . live .
- Web site: OpenConnect . 2013-04-08 . OpenConnect is a client for Cisco's AnyConnect SSL VPN [...] OpenConnect is not officially supported by, or associated in any way with, Cisco Systems. It just happens to interoperate with their equipment. . 29 June 2022 . https://web.archive.org/web/20220629202852/https://www.infradead.org/openconnect/index.html . live .
- Web site: Why TCP Over TCP Is A Bad Idea . 2018-10-24 . sites.inka.de . 6 March 2015 . https://web.archive.org/web/20150306050429/http://sites.inka.de/~W1011/devel/tcp-tcp.html . live .
- Web site: Trademark Status & Document Retrieval . tarr.uspto.gov . 8 October 2022 . 21 March 2012 . https://web.archive.org/web/20120321221027/http://tarr.uspto.gov/servlet/tarr?regser=serial&entry=78063238&action=Request+Status . live .
- Web site: ssh(1) – OpenBSD manual pages . man.openbsd.org . 4 February 2018 . 5 July 2022 . https://web.archive.org/web/20220705224554/https://man.openbsd.org/ssh.1#SSH-BASED_VIRTUAL_PRIVATE_NETWORKS . live .
- Web site: Barschel . Colin . Unix Toolbox . cb.vu . 2 August 2009 . 28 May 2019 . https://web.archive.org/web/20190528153959/http://cb.vu/unixtoolbox.xhtml#vpn . dead .
- Web site: SSH_VPN – Community Help Wiki . help.ubuntu.com . 28 July 2009 . 2 July 2022 . https://web.archive.org/web/20220702025833/https://help.ubuntu.com/community/SSH_VPN . live .
- Web site: Salter . Jim . 2020-03-30 . WireGuard VPN makes it to 1.0.0—and into the next Linux kernel . 2020-06-30 . Ars Technica . en-us . 31 March 2020 . https://web.archive.org/web/20200331182738/https://arstechnica.com/gadgets/2020/03/wireguard-vpn-makes-it-to-1-0-0-and-into-the-next-linux-kernel/ . live .
- Web site: Diff - 99761f1eac33d14a4b1613ae4b7076f41cb2df94^! - kernel/common - Git at Google . 2020-06-30 . android.googlesource.com . 29 June 2022 . https://web.archive.org/web/20220629213243/https://android.googlesource.com/kernel/common/+/99761f1eac33d14a4b1613ae4b7076f41cb2df94%5E! . live .
- Younglove. R.. December 2000. Virtual private networks - how they work. Computing & Control Engineering Journal. 11. 6. 260–262. 10.1049/cce:20000602. 0956-3385.
- Benjamin Dowling, and Kenneth G. Paterson. A cryptographic analysis of the WireGuard protocol. International Conference on Applied Cryptography and Network Security. 12 June 2018. 978-3-319-93386-3.
- Book: Fuller . Johnray . Ha . John . 2002 . Red Hat Linux 9: Red Hat Linux Security Guide . United States . . 48–53 . 8 September 2022 . 14 October 2022 . https://web.archive.org/web/20221014101152/https://archive.download.redhat.com/pub/redhat/linux/9/en/doc/RH-DOCS/pdf-en/rhl-sg-en.pdf . live .
- Book: Petersen, Richard . 2004 . Red Hat - The Complete Reference Enterprise Linux & Fedora Edition . United States . . Chapter 17: Internet Protocol Security: IPsec, Crypto IP Encapsulation for Virtual Private Networks . http://litux.nl/Reference/index.html?page=books/7213/ddu0125.html . 0-07-223075-4 . 17 January 2023 . 17 January 2023 . https://web.archive.org/web/20230117215057/http://litux.nl/Reference/index.html?page=books%2F7213%2Fddu0001.html . live .
- Web site: CIPE - Crypto IP Encapsulation . Titz . Olaf . 2011-12-20 . CIPE - Crypto IP Encapsulation . 2022-09-08 . 18 May 2022 . https://web.archive.org/web/20220518123239/http://sites.inka.de/sites/bigred/devel/cipe.html . live .
- Web site: CIPE - encrypted IP in UDP tunneling . Titz . Olaf . 2013-04-02 . . 2022-09-08 . 8 September 2022 . https://web.archive.org/web/20220908122718/https://sourceforge.net/projects/cipe-linux/ . live .
- Book: Cisco Systems, Inc. . Internetworking Technologies Handbook . Cisco Press . 2004 . 9781587051197 . 4 . Networking Technology Series . 233 . [...] VPNs using dedicated circuits, such as Frame Relay [...] are sometimes called trusted VPNs, because customers trust that the network facilities operated by the service providers will not be compromised. . 2013-02-15.
- https://www.ietf.org/rfc/rfc2661.txt Layer Two Tunneling Protocol "L2TP"
- https://www.ietf.org/rfc/rfc2341.txt IP Based Virtual Private Networks
- https://www.ietf.org/rfc/rfc2637.txt Point-to-Point Tunneling Protocol (PPTP)
- Phifer, Lisa. "Mobile VPN: Closing the Gap", SearchMobileComputing.com, 16 July 2006.
- Willett, Andy. "Solving the Computing Challenges of Mobile Officers", www.officer.com, May, 2006.
- Cheng, Roger. "Lost Connections", The Wall Street Journal, 11 December 2007.
- Web site: Sowells . Julia . 2017-08-07 . Virtual Private Network (VPN) : What VPN Is And How It Works . Hackercombat . 2021-11-07 . 17 June 2022 . https://web.archive.org/web/20220617083903/https://hackercombat.com/virtual-private-network/ . live .