What is OpenVPN?

A virtual private network (VPN) provides a secure connection between two points on a network (for example, an IoT device and a server). It effectively creates a 'tunnel' of private communication, allowing users to send and receive data over the public Internet as if they were directly connected to a private network.

All VPNs require a system to determine how data is routed between devices and how they are protected in transit. OpenVPN is one of the most popular of these systems.

How does OpenVPN work?

  • Establishing a tunnel:

With OpenVPN, a communication tunnel can be configured using one of two protocols: TCP (Transmission Control Protocol) or UDP (User Datagram Protocol). TCP has particularly strong integrated protocols to ensure data delivery and avoid errors, so it is a good option for IoT devices that transmit critical data (for example, industrial monitoring and medical data).

UDP is a simpler protocol designed for speed. It is useful if your devices need to transmit data in real time (for example, video surveillance) or on devices that transmit small amounts of regular data that are not time-sensitive. The UDP protocol has lower processing and memory requirements, so it is best for smaller, lower cost devices of the IoT type.

  • Encryption:

To protect the data stream, OpenVPN uses SSL/TLS protocols (Secure Sockets Layer/Transport Layer Security). This is the same type of technology used to protect most websites. It provides a reliable way for devices to generate and exchange encryption keys, to ensure that only authorized devices or users access the network, and to verify that the data has not been changed in transit.

What is an OpenVPN server for?

As its name suggests, OpenVPN is an open source technology. This means that the software behind it can be downloaded by anyone. Then, in theory, any company could create its own OpenVPN solution and configure its own VPN server.

In practice, however, while code access is free, setting up your own VPN from scratch requires considerable know-how and internal features. This is why the vast majority of companies use OpenVPN through a VPN provider.

That way, you can ensure that all your devices are properly equipped and configured. A specialized enterprise OpenVPN server is specifically designed for multiple users and devices. This ensures secure data transmission on your network, as well as making it easier to manage a large number of IoT devices in the field.

Is OpenVPN safe to use?

OpenVPN uses 256-bit OpenSSL encryption as the default. This makes it a very secure VPN system, helping to ensure that your data is not intercepted or tampered with in the transmission.

The open-source nature of the protocol also helps to make OpenVPN a secure option for your business. The code behind the protocol is constantly being adjusted and updated by a large community of developers. This means that security bugs and vulnerabilities can be identified and resolved at an early stage.

What is the difference between OpenVPN and VPN?

When you see the term 'open' VPN, it simply indicates that the VPN in question was created using the OpenVPN software.

For companies, the main alternative to OpenVPN is the IPsec (Internet Protocol Security). This protocol does not depend on SSL/TLS for encryption and requires a static IP address (which is not always suitable for many IoT use cases). It is considered a highly secure protocol, although it can be expensive to configure and maintain.

IPsec is a good option if you need to transmit very sensitive data from static devices. OpenVPN is a more popular option for general business use cases.

What are the benefits of OpenVPN?

  • Flexibility:

OpenVPN can run on a wide range of platforms, including Linux, Windows, macOS, iOS and Android. You also have a choice of communication tunnels (TCP or UDP). This makes it a flexible option, suitable for a wide range of IoT use cases. This includes applications linked to internal business processes (for example, asset tracking and industrial monitoring), as well as customer-oriented devices.

  • security:

With the ability to use 256-bit encryption, OpenVPN provides precisely the level of protection required to protect data from interception during transmission.

  • configuration:

Compared to IPsec, an OpenVPN system can be configured quickly and at low cost. Although it involves installing client software on endpoint devices, it usually does not require hardware modifications.

What are the disadvantages of OpenVPN?

  • Connection speeds:

Generally, OpenVPN offers a highly stable connection. However, due in large part to the strong level of encryption it offers, users can occasionally experience some occasional drops in connection speeds.

  • Manual configuration:

Manually configuring and maintaining an OpenVPN system requires experience. It is the reason why most companies deploy the technology through a specialized VPN provider.

Why should you use OpenVPN?

Your ideal choice of VPN technology depends a lot on the type of application you are deploying, as well as the sensitivity level of the data you are transmitting.

However, in many IoT use cases, OpenVPN provides the level of data protection companies need, while providing sufficient flexibility to adjust the configuration to meet their precise usage requirements.

 

For more explanations about IoT, visit our glossary.