1️⃣ Prepare your Ubuntu jump server
-
Make sure your EC2 instance:
- Is in a public subnet with an Elastic IP.
-
Has Security Group rules allowing:
UDP 1194(OpenVPN default)TCP 22(for SSH)- Optional: Restrict source IPs to your office/home IP for security.
2️⃣ Install OpenVPN
SSH into the server:3️⃣ Answer the prompts
The script will ask:- Public IP → accept default (Elastic IP of EC2)
- Protocol →
UDP - Port →
1194 - DNS → choose
1for current system resolvers - Client name → e.g.
ahmad-laptop - Extra security → you can skip for speed
4️⃣ Copy the .ovpn file to your laptop
On your laptop:
5️⃣ Connect from your laptop
-
Linux/Mac:
-
Windows:
- Install OpenVPN GUI.
- Import the
.ovpnfile and connect.
6️⃣ Test connection
Once connected, you should be able to hit the EKS API endpoint directly:Do you want me to add IP forwarding & route config so that only EKS traffic goes through the VPN instead of all your internet traffic? That’ll make it faster and less disruptive while working.
