VPN (Virtual Private Network), between the client and the host to establish an encrypted tunnel, the client’s request to encrypt all the way to send to the VPN server. The mainstream VPN is divided into PPTP, SSL VPN, IPSec VPN.
- PPTP (Point to Point Tunneling Protocol) Point-to-Point Tunneling Protocol. Using the PPP protocol to encapsulate the data, add an additional header for the transmission of data on the Internet, using MPLS encryption authentication, work in the data link layer. The current computer, smartphones, and other devices are supported by this agreement, no additional software can be installed.
- IPsec includes protocols for establishing mutual authentication between agents at the beginning of a session and negotiation of cryptographic keys to use during the session. IPsec can protect data flows between a pair of hosts (host-to-host), between a pair of security gateways (network-to-network), or between a security gateway and a host (network-to-host). Internet Protocol security (IPsec) uses cryptographic security services to protect communications over Internet Protocol (IP) networks. IPsec supports network-level peer authentication, data origin authentication, data integrity, data confidentiality (encryption), and replay protection.
OpenVPN is open-source commercial software that implements virtual private network techniques to create secure point-to-point or site-to-site connections in routed or bridged configurations and remote access facilities. It uses a custom security protocol that utilizes SSL/TLS for key exchange.
How to install OpenVPN in Debian, Ubuntu
- Open Terminal and run command:
wget git.io/vpn –no-check-certificate -O openvpn-install.sh; bash openvpn-install.sh
- Select your OpenVPN option when installing OpenVPN
- The script will then install automatically, eventually, you will have clientname.ovpn file in /root to connect to the server.