openvpn

by LinodeApps
4 deployments · 3 still active · last rev. 3 months ago

OpenVPN is a widely trusted, free, and open-source virtual private network (VPN) application. OpenVPN securely connects your computer to your servers, or to the public Internet.

OpenVPN is a widely trusted, free, and open-source virtual private network (VPN) application. OpenVPN creates network tunnels between groups of computers that are not on the same local network, and it uses OpenSSL to encrypt your traffic.
Use OpenVPN to:
- Connect your computer to the public Internet through a dedicated OpenVPN server. By encrypting your traffic and routing it through an OpenVPN server that you control, you can protect yourself from network attacks when using public Wi-Fi.
- Connect your computer to services that you don't want to expose to the public Internet. Keep your sensitive applications isolated on your servers' private networking and use OpenVPN to access them remotely.

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!"