How to configure WireGuard VPN as gateway on Rocky Linux / CentOS 8

From WireGuard’s perspective, there is no server and client – all points in a WireGuard network are called peers, and they can connect to each other without a central point and not necessarily in a star topology. However, in this particular configuration scenario and because one peer is central to the whole infrastructure I’m setting up (as it’s the only one to always have a static public IP address, open ports and it can also be used to tunnel all other peers’ traffic), I’m calling it a server – while all other peers I will consider clients.

How to configure IPSec/L2TP VPN server in CentOS 6

I had to look for an alternate VPN system to use when I need to dial back to my home network while on the move to access my media library or when I require a trusted connection or a whitelisted IP.

The next best thing (and least complicated to set up going from PPTP) is IPSec/L2TP, which has built-in support in most current operating systems (including Windows, Linux and Android). Due to its double-encapsulation nature (L2TP performs the tunnelling of data and IPSec provides the encrypted channel), L2TP/IPSec has a more complex setup and configuration procedure, both for the server and the client.

Connect to a VPN server in Windows and Android

A VPN connection is still mostly regarded as “business solution”, only useful to connecting employees to the company network. But this is no longer true nowadays.

VPNs can be very useful in protecting the integrity and security of data transfers, no matter who the two communicating parties are. To learn how to set up a connection and connect to a VPN server…