OpenVPN One-Click

by linode
12 deployments · 11 still active · last rev. 7 days ago

Compatible with: Debian 9
						#!/bin/bash

#<UDF Name="vpnuser_password" Label="This is the Password for the default OpenVPN User (openvpn)"/>

## Download OpenVPN Access Server .deb
wget http://swupdate.openvpn.org/as/openvpn-as-2.6.1-Debian9.amd_64.deb
## Install Net-Tools (Required for the OpenVPN Server to Start)
apt-get -o Acquire::ForceIPv4=true -y install net-tools
## Install OpenVPN Access Server
dpkg -i openvpn-as-2.6.1-Debian9.amd_64.deb
## Set openvpn user passwd
echo openvpn:"$VPNUSER_PASSWORD" |chpasswd

## Other things to Note
## Admin UI is at: https://<ip>:943/admin by default
## Client is at: https://<ip> by default
## Client Page can download the .ovpn file and also links to various clients

# Cleanup
rm /root/StackScript
echo "Installation complete!"