OpenVPN

by lblaboon
7 deployments · 5 still active · last rev. 6 months ago

Deploys an OpenVPN Access Server

Compatible with: Debian 9
						#!/bin/bash
  
#<UDF Name="vpnuser_pass" 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 -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_pass |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!"