1. Prerequisites

  1. Google Cloud Platform (GCP)

2. Create a GCP Project

3. Launch a Compute Engine Instance

  1. Navigate to Compute Engine → VM Instances → Create Instance.
  2. Configure the VM:
  3. Firewall Rules:
  4. Click Create.

4. Create a Firewall Rule

Go to GCP → VPC Network → Firewall → Create a rule:

5. Reserve a Static External IP

  1. Go to VPC Network → External IP addresses.
  2. Click Reserve Static Address, name it (e.g., openvpn-ip), and attach it to the openvpn-server instance.

6. Connect to the Instance via SSH

7. Update System Packages

sudo apt update && sudo apt upgrade -y

8. Install OpenVPN