-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Debian * Make Ubuntu the base. Update TLS ciphers. Ensure the openvpn log file exists for fail2ban. * Fix default cipher string and log date format. Add the ability to override the OpenVPN port. * Updated README formatting, add a random file for easyrsa, allow specifying the OpenVPN port.
- Loading branch information
1 parent
92732c1
commit 9c5e6d5
Showing
11 changed files
with
104 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,32 @@ | ||
FROM centos:7 | ||
FROM ubuntu:20.04 | ||
|
||
MAINTAINER Brian Lycett <[email protected]> | ||
|
||
RUN yum -y install epel-release iptables bash nss-pam-ldapd ca-certificates net-tools wget openssl | ||
RUN wget http://ftp.tu-chemnitz.de/pub/linux/dag/redhat/el7/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm && yum -y install rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm | ||
RUN yum -y install openvpn easy-rsa whatmask fail2ban google-authenticator ipcalc | ||
RUN yum -y upgrade | ||
RUN mkdir /opt/easyrsa && cp -rp /usr/share/easy-rsa/3/{x509-types,easyrsa} /opt/easyrsa | ||
RUN apt-get update && \ | ||
DEBIAN_FRONTEND=noninteractive \ | ||
apt-get install -y --no-install-recommends \ | ||
easy-rsa \ | ||
fail2ban \ | ||
ipcalc \ | ||
iptables \ | ||
libpam-google-authenticator \ | ||
libpam-ldapd \ | ||
net-tools \ | ||
nslcd \ | ||
openssl \ | ||
openvpn && \ | ||
apt-get autoremove && \ | ||
rm -rf /var/lib/apt/lists/* && \ | ||
mkdir /opt/easyrsa && \ | ||
cp -rp /usr/share/easy-rsa/x509-types /opt/easyrsa/ && \ | ||
cp -rp /usr/share/easy-rsa/easyrsa /opt/easyrsa/ | ||
|
||
EXPOSE 1194/udp | ||
EXPOSE 5555/tcp | ||
|
||
ADD ./files/bin /usr/local/bin | ||
RUN chmod a+x /usr/local/bin/* | ||
|
||
ADD ./files/configuration /opt/configuration | ||
|
||
# Copy openvpn PAM modules (with and without OTP) | ||
ADD ./files/etc/pam.d/openvpn* /opt/ | ||
ADD ./files/easyrsa/* /opt/easyrsa/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters