-
-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from d3vilh/dev
0.5.1 server.conf move
- Loading branch information
Showing
7 changed files
with
58 additions
and
5 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,7 +1,7 @@ | ||
# Start from Alpine base image | ||
FROM alpine | ||
LABEL maintainer="Mr.Philipp <[email protected]>" | ||
LABEL version="0.4.1" | ||
LABEL version="0.5.1" | ||
|
||
# Set the working directory to /opt/app | ||
WORKDIR /opt/app | ||
|
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
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#!/bin/bash | ||
#VERSION 0.2.1 by @[email protected] aka Mr. Philipp | ||
#VERSION 0.2.2 by @[email protected] aka Mr. Philipp | ||
set -e | ||
|
||
#Variables | ||
|
@@ -89,4 +89,4 @@ echo 'IPT FWD Chains:' | |
iptables -v -x -n -L | grep DROP | ||
|
||
echo 'Start openvpn process...' | ||
/usr/sbin/openvpn --cd $OPENVPN_DIR --script-security 2 --config $OPENVPN_DIR/config/server.conf | ||
/usr/sbin/openvpn --cd $OPENVPN_DIR --script-security 2 --config $OPENVPN_DIR/server.conf |
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 |
---|---|---|
@@ -0,0 +1,51 @@ | ||
management 0.0.0.0 2080 | ||
|
||
port 1194 | ||
proto udp | ||
|
||
dev tun | ||
|
||
ca pki/ca.crt | ||
cert pki/issued/server.crt | ||
key pki/private/server.key | ||
|
||
# cipher AES-256-CBC # Deprecated since v.0.3. we are using GCM now. | ||
cipher AES-256-GCM | ||
auth SHA512 | ||
dh pki/dh.pem | ||
|
||
server 10.0.70.0 255.255.255.0 | ||
route 10.0.71.0 255.255.255.0 | ||
ifconfig-pool-persist pki/ipp.txt | ||
push "route 10.0.60.0 255.255.255.0" | ||
push "dhcp-option DNS 8.8.8.8" | ||
push "dhcp-option DNS 1.0.0.1" | ||
|
||
keepalive 10 120 | ||
max-clients 100 | ||
|
||
persist-key | ||
persist-tun | ||
|
||
log /var/log/openvpn/openvpn.log | ||
verb 4 | ||
topology subnet | ||
|
||
client-config-dir /etc/openvpn/staticclients | ||
push "redirect-gateway def1 bypass-dhcp" | ||
|
||
#ncp-ciphers AES-256-GCM:AES-192-GCM:AES-128-GCM # Deprecated since v.0.3. we have to use data-ciphers below instead | ||
data-ciphers AES-256-GCM:AES-192-GCM:AES-128-GCM | ||
|
||
user nobody | ||
group nogroup | ||
|
||
status /var/log/openvpn/openvpn-status.log | ||
explicit-exit-notify 1 | ||
crl-verify pki/crl.pem | ||
|
||
# 2FA Auth part | ||
# script-security 2 | ||
# auth-user-pass-verify /opt/app/oath.sh via-file | ||
|
||
# Default openvpn-server configuration file |