
🌐 What you’ll get
✅ Your own secure OpenVPN server
✅ Works on Windows, macOS, Android, iPhone, Linux
✅ Just a few commands — no manual config editing
Step 1 – Connect to your Server
If you are on a Laptop or PC :
ssh root@your_droplet_ip👉 Replace your_droplet_ip with your actual droplet IP (from DigitalOcean dashboard).
Step 2 – Update your server
Keep your system updated and fresh:
apt update && apt upgrade -y
Step 3 – Run the official OpenVPN installer
This script automatically:
Installs OpenVPN
Generates certificates and keys
Sets up firewall rules
Creates your first user .ovpn profile
curl -O https://raw.githubusercontent.com/angristan/openvpn-install/master/openvpn-install.sh
chmod +x openvpn-install.shNow run it:
./openvpn-install.shStep 4 – Follow the simple prompts
You’ll be asked a few questions like:
- Public IP or DNS — just press Enter to accept default
- Protocol — choose UDP (default)
- Port — press Enter (default 1194)
- DNS — choose 1) Cloudflare (fast and secure)
- Client name — type something like:
myPC
Then press Enter for defaults it will finish setup!
Step 5 – Get your VPN file
When finished, it will say something like:
Your client configuration is available at:
/root/myphone.ovpn
That’s your key file.
Step 6 – Download it to your computer
On your local machine (not the server), run:
scp root@your_droplet_ip:/root/myphone.ovpn .This copies it to your Downloads folder (or current folder).
Step 7 – Connect your device
Install OpenVPN Connect app (free):
📱 Android / iOS → from Play Store or App Store
💻 Windows / macOS → from openvpn.net
Then import the file myPC.ovpn and click Connect ✅
Step 8 – Verify
Once connected:
Visit 👉 https://whatismyipaddress.com
It should show your droplet’s IP, not your home IP — meaning VPN works!
🛡️ Bonus (DigitalOcean Firewall)
If using DigitalOcean Cloud Firewall, allow:
UDP port 1194
SSH (TCP port 22)
That’s it!
✅ You’re done! You now have your own personal OpenVPN server on Ubuntu 24.04 LTS which is secure, fast, and totally private.