After creating a VPN Gateway, you can create a Tunnel or a Peer based on your chosen VPN Gateway protocol.
To create tunnels or peers, follow these steps:
1. In the DCD, go to Menu > Network > VPN Gateway under Connectivity.
2. On the VPN Gateways page, click Create Tunnels or Create Peers based on the chosen VPN Gateway protocol.
3. Enter the following details:
Enter the following details in the Create IPSec Tunnel page:
Tunnel name: Enter a tunnel name.
Description: (Optional). Enter a description.
Remote host: Enter a valid public IPv4 address or an Fully Qualified Domain Name (FQDN).
Pre-shared key (PSK): Enter a valid key or click Generate to automatically generate a key.
Select an appropriate value from the drop-down list for the following:
Diffie-Hellman Group
Encryption Algorithm
Integrity Algorithm
Lifetime: Specify a value starting from 3600 seconds to a maximum of 604800 seconds.
Select an appropriate value from the drop-down list for the following:
Diffie-Hellman Group
Encryption Algorithm
Integrity Algorithm
Lifetime: Specify a value starting from 600 seconds to a maximum of 86400 seconds.
Enter the following details:
Cloud Network CIDRs: Specify up to 20 IPv4 or IPv6 network addresses, separated by commas, on IONOS Cloud that can connect to the tunnel.
Peer Network CIDRs: Specify up to to 20 IPv4 or IPv6 addresses, separated by commas, on the peer side that can connect to the tunnel.
Enter the following details in the Create WireGuard peer page:
Peer Name: Enter a peer name.
Description: (Optional). Enter a description.
You can specify the following optional details to enable the peer to use the specified IP address to connect with its remote peer. The peer connects via any available IP address when you do not specify the IP address.
Endpoint host: Enter a public IPv4 address or an FQDN.
Endpoint port: Enter a port number or you can also use the up or down arrows to choose a port number from the list. The port number indicates the UDP port on which a WireGuard interface will listen for incoming encrypted VPN packets.
Specify the following details to establish a secure connection.
Allowed IPs: Specify up to 20 IPv4 or IPv6 network addresses, separated by commas from which the traffic must be allowed to reach the respective peer. Traffic from all IP addresses are sent to the peer if you do not specify the network addresses.
Public Key: Remember to specify a public key for a secure transmission. The key is used to validate the sender and encrypt the data.
4. Click Save to save the configuration.