There are several guides for each VPN technology:
This VPN method uses IPsec with the modern key exchange protocol IKEv2. The keys are exchanged via UDP port 500. The IPsec payload packets are tunneled via UDP port 4500. This server authenticates itself to the client with a certificate. In order for the client to verify the certificate, the HamCloud VPN Root CA certificate must be installed on the client.