Unattended OpenVPN server setup for AWS LightSail.
Installs OpenVPN server and automatically generates a single-user OpenVPN connection profile (.ovpn) in ec2-user's home directory.
- Create a Lightsail VPS Instance
- Choose "OS Only"
- Amazon Linux
- Click on "add launch script" and paste the following setup code
## Update server packages
yum -y update
# Install OpenVPN
wget https://git.io/vSBah -O openvpn-install.sh && bash openvpn-install.sh
Based on openvpn-install