Docker Crest (OpenVPN)

by mbeach
9 deployments · 2 still active · last rev. 3 months ago

Based on https://www.linode.com/stackscripts/view/328438

Exposes additional variables and has defaults set based on:

https://github.com/mb243/docker-crest/tree/master/resources/OpenVPN

Compatible with: CentOS 7, Debian 8, Debian 9, Ubuntu 18.04 LTS
						#!/bin/bash

#<UDF name="PUBKEY" Label="SSH pubkey (installed for root and sudo user)?" example="ssh-rsa ..." />
#<UDF name="RESOURCE" Label="Resource to download?" example="URL to Dockerfile or docker-compose.yml" default="https://raw.githubusercontent.com/mb243/docker-crest/master/resources/OpenVPN/do.sh" />

#<UDF name="COUNTRY" Label="COUNTRY" example="For EasyRSA cert generation" default="US" />
#<UDF name="PROVINCE" Label="PROVINCE" example="For EasyRSA cert generation" default="PA" />
#<UDF name="CITY" Label="CITY" example="For EasyRSA cert generation" default="Philadelphia" />
#<UDF name="EMAIL" Label="EMAIL" example="For EasyRSA cert generation" default="noreply@example.com" />
#<UDF name="ORG" Label="ORG" example="For EasyRSA cert generation" default="Unspecified Org" />
#<UDF name="OU" Label="OU" example="For EasyRSA cert generation" default="Unspecified OU" />
#<UDF name="CN" Label="CN" example="For EasyRSA cert generation" default="vpn.example.com" />
#<UDF name="CLIENTNAME" Label="CLIENTNAME" example="OpenVPN Client Name" default="test-user" /> 

#<UDF name="RUNCMD" Label="Command to run?" default=". ./do.sh" />

#<UDF name="SKIP" Label="Skip updates and server hardening?" example="Not recommended for production deployments" oneOf="no,yes" default="no" />

curl -o out.sh -L https://raw.githubusercontent.com/mb243/docker-crest/master/crest.sh

. ./out.sh