Those who call several servers their own and want to guarantee appropriate availability host them in geographically distributed data centers. The communication of the servers is difficult and often this internal Traffic takes place unencrypted.
Here vpncloud as Peer-to-Peer VPN offers itself. In addition to a simple setup there are the following Highlights speak for vpncloud :
vpncloud connects the VPN network to its own Interface which can be freely configured with corresponding IP’S
vpncloud created a fully networked peer-to-peer VPN network. This means that vpncloud automatically connects the servers based on the IP addresses.
the VPN Tunnel is encrypted with AES-256
in the case of a connection loss vpncloud connects automatically again
it’s Open Source
it is easy to configure
it is stable, I have vpncloud on 9 servers in use, including the Rasspberry PI
First, you should install vpncloud on each server that belongs to the server cluster. There are ready-made packages for Debian-based distributions, under Arch (Arm, amd64) a corresponding package can be installed with aur.
wget https://github.com/dswd/vpncloud/releases/download/v1.3.0/vpncloud_1.3.0_amd64.deb sudo dpkg -i vpncloud_1.3.0_amd64.deb
A Systemd Service will automatically installed.
The configuration can be found in the directory /etc/vpncloud, a corresponding sample file is available. You copy it as a new file and can edit it accordingly.
sudo cp example.net.disabled mynet.net sudo nano mynet.net
First we introduce the participants. This is done with peers.
peers: - firstip:3210 - secoundip:3210
The Port can be adapted to your needs. You can also specify host names, or you can specify names in the /etc/hosts file.
The Shared Key is used for encryption, should be accordingly secure and be the same on all machines.
vpncloud uses ChaCha20 as its algorithm in the Default setting. For newer and faster CPU’S you should use AES-256 for better Performance.
Finally, you should specify Ifdown / Ifup options, these commands are executed by vpncloud to boot and shut down the interface.
ifup: "ifconfig $IFNAME 10.0.1.1/8 mtu 1400" ifdown: "ifconfig $IFNAME down"
As I said, a systemd service is installed which makes starting, stopping and automatic starting very easy. The following command is sufficient for automatic and immediate Start.
systemctl enable --now vpncloud@mynet
Possible errors can be found with the status, or journalctl. The Hosts should be accessible via Ping. From now on, databases, Monitoring Tools and Co.can communicate with each other via encrypted Traffic.