Skip to content

Commit ab3b882

Browse files
authored
Merge pull request #21 from d3vilh/dev
Dev2main
2 parents 1e9d6e3 + 356417c commit ab3b882

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+1083
-364
lines changed

README.md

+16-7
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Quick to deploy and easy to use, makes work with small OpenVPN environments a br
1212

1313
* Status page that shows server statistics and list of connected clients
1414
* Supports OpenVPN **tunnel**(`dev tun`) or **bridge**(`dev tap`) server configurations
15-
* Easy to **generate**, **download**, **renew**, **revoke** and **delete** client certificates
15+
* Easy to **generate**, **download**, **renew**, **revoke**, **delete** and **view** client certificates
1616
* Client can have secret passphrase and static IP assigned during client certificate generation
1717
* **Change predefined EasyRSA vars** including certificates and CRL expiration time
1818
* **Maintain EasyRSA PKI infrastructure** (init, build-ca, gen-dh, build-crl, gen-ta, revoke)
@@ -21,6 +21,7 @@ Quick to deploy and easy to use, makes work with small OpenVPN environments a br
2121
* Restart OpenVPN Server and OpenVPN UI from web interface
2222
* OpenVPN-UI Admin user and password can be passed via environment variables to container
2323
* Updated infrustracture:
24+
* Alpine Linux as fastest and secure base image
2425
* GoLang 1.21
2526
* Beego 2.1 with all vulnerabilities fixed
2627
* Easy-rsa 3.X
@@ -67,7 +68,7 @@ It has all the necessary scripts for easy installation and lot of additional fea
6768
- "8080:8080/tcp"
6869
volumes:
6970
- ./:/etc/openvpn
70-
- ./db:/opt/openvpn-gui/db
71+
- ./db:/opt/openvpn-ui/db
7172
- ./pki:/usr/share/easy-rsa/pki
7273
- /var/run/docker.sock:/var/run/docker.sock:ro
7374
restart: always
@@ -112,7 +113,7 @@ services:
112113
- "8080:8080/tcp"
113114
volumes:
114115
- ./:/etc/openvpn
115-
- ./db:/opt/openvpn-gui/db
116+
- ./db:/opt/openvpn-ui/db
116117
- ./pki:/usr/share/easy-rsa/pki
117118
- /var/run/docker.sock:/var/run/docker.sock:ro
118119
restart: always
@@ -152,7 +153,7 @@ Run the OpenVPN-UI image
152153
```shell
153154
docker run \
154155
-v /home/pi/openvpn:/etc/openvpn \
155-
-v /home/pi/openvpn/db:/opt/openvpn-gui/db \
156+
-v /home/pi/openvpn/db:/opt/openvpn-ui/db \
156157
-v /home/pi/openvpn/pki:/usr/share/easy-rsa/pki \
157158
-v /home/pi/openvpn/log:/var/log/openvpn \
158159
-v /var/run/docker.sock:/var/run/docker.sock \
@@ -397,7 +398,7 @@ sudo ./backup.sh -r ~/openvpn-server backup/openvpn-server-030923-1
397398
```
398399
This will restore all the enviroment files from backup directory to `~/openvpn-server` directory.
399400

400-
> **Note v.0.3**: There was bug in version 0.3 where data.db file were not shared over the volume, so you have to restore it manually: `docker cp backup/data.0.3.db openvpn-ui:/opt/openvpn-gui/data.db`
401+
> **Note v.0.3**: There was bug in version 0.3 where data.db file were not shared over the volume, so you have to restore it manually: `docker cp backup/data.0.3.db openvpn-ui:/opt/openvpn-ui/data.db`
401402

402403
##### Restore container
403404
1. Run docker-compose up to deploy new container with old image:
@@ -622,12 +623,20 @@ After Revoking and Restarting the service, the client will be disconnected and w
622623

623624
<img src="https://github.com/d3vilh/openvpn-ui/blob/main/docs/images/OpenVPN-UI-Create-Cert.png" alt="OpenVPN-UI Create Certificate screen" width="1000" border="1" />
624625

626+
<img src="https://github.com/d3vilh/openvpn-ui/blob/main/docs/images/OpenVPN-UI-Certs-Details-Expire.png" alt="OpenVPN-UI Expire Certificate details" width="1000" border="1" />
627+
628+
<img src="https://github.com/d3vilh/openvpn-ui/blob/main/docs/images/OpenVPN-UI-Certs-Details_OK.png" alt="OpenVPN-UI OK Certificate details" width="1000" border="1" />
629+
625630
<img src="https://github.com/d3vilh/openvpn-ui/blob/main/docs/images/OpenVPN-UI-EasyRsaVars.png" alt="OpenVPN-UI EasyRSA vars screen" width="1000" border="1" />
626631

632+
<img src="https://github.com/d3vilh/openvpn-ui/blob/main/docs/images/OpenVPN-UI-EasyRsaVars-View.png" alt="OpenVPN-UI EasyRSA vars config view screen" width="1000" border="1" />
633+
627634
<img src="https://github.com/d3vilh/openvpn-ui/blob/main/docs/images/OpenVPN-UI-Maintenance.png" alt="OpenVPN-UI Maintenance screen" width="1000" border="1" />
628635

629636
<img src="https://github.com/d3vilh/openvpn-ui/blob/main/docs/images/OpenVPN-UI-Server-config.png" alt="OpenVPN-UI Server Configuration screen" width="1000" border="1" />
630637

638+
<img src="https://github.com/d3vilh/openvpn-ui/blob/main/docs/images/OpenVPN-UI-Server-config-edit.png" alt="OpenVPN-UI Server Configuration edit screen" width="1000" border="1" />
639+
631640
<img src="https://github.com/d3vilh/openvpn-ui/blob/main/docs/images/OpenVPN-UI-ClientConf.png" alt="OpenVPN-UI Client Configuration screen" width="1000" border="1" />
632641

633642
<img src="https://github.com/d3vilh/openvpn-ui/blob/main/docs/images/OpenVPN-UI-Config.png" alt="OpenVPN-UI Configuration screen" width="1000" border="1" />
@@ -636,8 +645,8 @@ After Revoking and Restarting the service, the client will be disconnected and w
636645

637646
<img src="https://github.com/d3vilh/openvpn-ui/blob/main/docs/images/OpenVPN-UI-Logs.png" alt="OpenVPN-UI Logs screen" width="1000" border="1" />
638647

639-
## Дякую and Kudos to the original author
648+
## Дякую and Kudos to the initiator of this project
640649

641-
Kudos to @adamwalach for development of the original [OpenVPN-WEB-UI](https://github.com/adamwalach/openvpn-web-ui) project which was used as foundation for this project.
650+
Kudos to @adamwalach for development of the original [OpenVPN-WEB-UI](https://github.com/adamwalach/openvpn-web-ui) project which was used as solid foundation for OpenVPN UI.
642651

643652
<a href="https://www.buymeacoffee.com/d3vilh" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" height="51" width="217"></a>

build/Dockerfile

+13-7
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,18 @@
33

44
FROM DEFINE-YOUR-ARCH
55
LABEL maintainer="Mr.Philipp <[email protected]>"
6-
LABEL version="0.8"
6+
LABEL version="0.9"
77
WORKDIR /opt
8-
EXPOSE 8080
8+
EXPOSE 8080/tcp
9+
10+
RUN apk update \
11+
&& apk add --update-cache \
12+
bash \
13+
easy-rsa \
14+
curl \
15+
jq \
16+
&& rm -rf /var/cache/apk/* && chmod 755 /usr/share/easy-rsa/*
917

10-
ARG DEBIAN_FRONTEND=noninteractive
11-
RUN apt-get update && apt-get install --reinstall libc-bin -y && apt-get install -y easy-rsa curl jq && apt-get clean && rm -rf /var/lib/apt/lists/* && chmod 755 /usr/share/easy-rsa/*
1218
ADD assets/start.sh /opt/start.sh
1319
ADD assets/generate_ca_and_server_certs.sh /opt/scripts/generate_ca_and_server_certs.sh
1420
ADD assets/genclient.sh /opt/scripts/genclient.sh
@@ -17,8 +23,8 @@ ADD assets/restart.sh /opt/scripts/restart.sh
1723
ADD assets/rmcert.sh /opt/scripts/rmcert.sh
1824
ADD assets/remove.sh /opt/scripts/remove.sh
1925
ADD assets/renew.sh /opt/scripts/renew.sh
20-
ADD openvpn-ui.tar.gz /opt/openvpn-gui/
21-
RUN rm -f /opt/openvpn-gui/data.db
22-
ADD assets/app.conf /opt/openvpn-gui/conf/app.conf
26+
ADD openvpn-ui.tar.gz /opt/openvpn-ui/
27+
RUN rm -f /opt/openvpn-ui/data.db
28+
ADD assets/app.conf /opt/openvpn-ui/conf/app.conf
2329

2430
CMD /opt/start.sh

build/Dockerfile-beego

+2
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@ LABEL maintainer="Mr.Philipp <[email protected]>"
66

77
# Set the working directory to /tmp
88
WORKDIR /tmp1
9+
RUN apt-get update && apt-get install musl-tools -y
910

1011
# Enable go modules
1112
ENV GO111MODULE=on
13+
ENV CGO_ENABLED=1
1214

1315
# Copy the go.mod and go.sum files to the container
1416
COPY go.mod go.sum ./

build/assets/backup.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
#VERSION 1.2 by @[email protected] aka Mr. Philipp
2+
#VERSION 1.2 by [email protected] aka Mr. Philipp
33
# Exit immediately if a command exits with a non-zero status
44
set -e
55

@@ -30,7 +30,7 @@ if [[ $ACTION == "-b" ]]; then
3030
if [ ! -f "$BACKUP_DIR/db/data.db" ]; then
3131
echo " You pronbably have old version of OpenVPN-UI, backing up your DB with docker cp"
3232
mkdir -p $BACKUP_DIR/db; mkdir -p $SERVER_ENV/db;
33-
sudo docker cp openvpn-ui:/opt/openvpn-gui/data.db $BACKUP_DIR/db/data.db
33+
sudo docker cp openvpn-ui:/opt/openvpn-ui/data.db $BACKUP_DIR/db/data.db
3434
sudo cp -p $BACKUP_DIR/db/data.db $SERVER_ENV/db/data.db
3535
fi
3636
echo " OpenVPN-UI db backed up"

build/assets/genclient.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
#!/bin/bash
2-
#VERSION 1.2 by @[email protected] aka Mr. Philipp
2+
#VERSION 1.2 by [email protected] aka Mr. Philipp
33
# Exit immediately if a command exits with a non-zero status.
44
set -e
55

66
# .ovpn file path
77
CERT_NAME=$1
88
CERT_IP=$2
99
CERT_PASS=$3
10-
EASY_RSA=$(grep -E "^EasyRsaPath\s*=" ../openvpn-gui/conf/app.conf | cut -d= -f2 | tr -d '"' | tr -d '[:space:]')
11-
OPENVPN_DIR=$(grep -E "^OpenVpnPath\s*=" ../openvpn-gui/conf/app.conf | cut -d= -f2 | tr -d '"' | tr -d '[:space:]')
10+
EASY_RSA=$(grep -E "^EasyRsaPath\s*=" ../openvpn-ui/conf/app.conf | cut -d= -f2 | tr -d '"' | tr -d '[:space:]')
11+
OPENVPN_DIR=$(grep -E "^OpenVpnPath\s*=" ../openvpn-ui/conf/app.conf | cut -d= -f2 | tr -d '"' | tr -d '[:space:]')
1212
echo "EasyRSA path: $EASY_RSA OVPN path: $OPENVPN_DIR"
1313
OVPN_FILE_PATH="$OPENVPN_DIR/clients/$CERT_NAME.ovpn"
1414

build/assets/generate_ca_and_server_certs.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#!/bin/bash -e
2-
#VERSION 1.2 by @[email protected] aka Mr. Philipp
2+
#VERSION 1.2 by [email protected] aka Mr. Philipp
33

44
#Variables
55
ACTION=$1 #passed via OpenVPN-UI GUI
6-
EASY_RSA=$(grep -E "^EasyRsaPath\s*=" ../openvpn-gui/conf/app.conf | cut -d= -f2 | tr -d '"' | tr -d '[:space:]')
7-
OPENVPN_DIR=$(grep -E "^OpenVpnPath\s*=" ../openvpn-gui/conf/app.conf | cut -d= -f2 | tr -d '"' | tr -d '[:space:]')
6+
EASY_RSA=$(grep -E "^EasyRsaPath\s*=" ../openvpn-ui/conf/app.conf | cut -d= -f2 | tr -d '"' | tr -d '[:space:]')
7+
OPENVPN_DIR=$(grep -E "^OpenVpnPath\s*=" ../openvpn-ui/conf/app.conf | cut -d= -f2 | tr -d '"' | tr -d '[:space:]')
88
echo "EasyRSA path: $EASY_RSA OVPN path: $OPENVPN_DIR"
99
TEMP_PKI_DIR=/tmp/pki
1010
mkdir -p $TEMP_PKI_DIR

build/assets/remove.sh

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
#!/bin/bash
2-
#VERSION 1.2 by @[email protected] aka Mr. Philipp
2+
#VERSION 1.2 by [email protected] aka Mr. Philipp
33
# Exit immediately if a command exits with a non-zero status
44
set -e
55

66
# Variables
77
ACTION=$1 #passed via OpenVPN-UI GUI
8-
EASY_RSA=$(grep -E "^EasyRsaPath\s*=" ../openvpn-gui/conf/app.conf | cut -d= -f2 | tr -d '"' | tr -d '[:space:]')
9-
OPENVPN_DIR=$(grep -E "^OpenVpnPath\s*=" ../openvpn-gui/conf/app.conf | cut -d= -f2 | tr -d '"' | tr -d '[:space:]')
8+
EASY_RSA=$(grep -E "^EasyRsaPath\s*=" ../openvpn-ui/conf/app.conf | cut -d= -f2 | tr -d '"' | tr -d '[:space:]')
9+
OPENVPN_DIR=$(grep -E "^OpenVpnPath\s*=" ../openvpn-ui/conf/app.conf | cut -d= -f2 | tr -d '"' | tr -d '[:space:]')
1010
echo 'EasyRSA path: $EASY_RSA OVPN path: $OPENVPN_DIR'
1111
PKI_DIR=$EASY_RSA/pki
1212
CERT_DIR=$OPENVPN_DIR/clients
@@ -37,8 +37,7 @@ elif [ "$ACTION" = "remove_all" ]; then
3737
rm -rf $CERT_DIR/*.ovpn
3838
echo -e 'All *.ovpn removed.\nRemoving static clients.\n'
3939
rm -rf $STATIC_CLIENT_DIR/*
40-
echo -e 'Static clients remover.\nRemoving Openvpn-UI DB.\n'
41-
rm -rf $OVPN_DB_DIR/data.db
40+
echo -e 'Static clients removed.\n'
4241
else
4342
echo "Invalid input argument: $ACTION. Exiting."
4443
exit 1

build/assets/renew.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
#!/bin/bash
2-
#VERSION 1.2 by @[email protected] aka Mr. Philipp
2+
#VERSION 1.2 by [email protected] aka Mr. Philipp
33
# Exit immediately if a command exits with a non-zero status
44
set -e
55

66
#Variables
77
CERT_NAME=$1
88
CERT_IP=$2
99
CERT_SERIAL=$3
10-
EASY_RSA=$(grep -E "^EasyRsaPath\s*=" ../openvpn-gui/conf/app.conf | cut -d= -f2 | tr -d '"' | tr -d '[:space:]')
10+
EASY_RSA=$(grep -E "^EasyRsaPath\s*=" ../openvpn-ui/conf/app.conf | cut -d= -f2 | tr -d '"' | tr -d '[:space:]')
1111
echo 'EasyRSA path: $EASY_RSA'
1212

1313
if [ -n "$1" ]; then

build/assets/revoke.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
#!/bin/bash
2-
#VERSION 1.2 by @[email protected] aka Mr. Philipp
2+
#VERSION 1.2 by [email protected] aka Mr. Philipp
33
# Exit immediately if a command exits with a non-zero status
44
set -e
55

66
#Variables
77
CERT_NAME=$1
88
CERT_SERIAL=$2
9-
EASY_RSA=$(grep -E "^EasyRsaPath\s*=" ../openvpn-gui/conf/app.conf | cut -d= -f2 | tr -d '"' | tr -d '[:space:]')
10-
OPENVPN_DIR=$(grep -E "^OpenVpnPath\s*=" ../openvpn-gui/conf/app.conf | cut -d= -f2 | tr -d '"' | tr -d '[:space:]')
9+
EASY_RSA=$(grep -E "^EasyRsaPath\s*=" ../openvpn-ui/conf/app.conf | cut -d= -f2 | tr -d '"' | tr -d '[:space:]')
10+
OPENVPN_DIR=$(grep -E "^OpenVpnPath\s*=" ../openvpn-ui/conf/app.conf | cut -d= -f2 | tr -d '"' | tr -d '[:space:]')
1111
echo 'EasyRSA path: $EASY_RSA OVPN path: $OPENVPN_DIR'
1212
INDEX=$EASY_RSA/pki/index.txt
1313
PERSHIY=`cat $INDEX | grep "/CN=$CERT_NAME/" | head -1 | awk '{ print $3}'`

build/assets/rmcert.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
#!/bin/bash
2-
#VERSION 1.2 by @[email protected] aka Mr. Philipp
2+
#VERSION 1.2 by [email protected] aka Mr. Philipp
33
# Exit immediately if a command exits with a non-zero status
44
set -e
55

66
#Variables
77
CERT_NAME=$1
88
CERT_SERIAL=$2
9-
EASY_RSA=$(grep -E "^EasyRsaPath\s*=" ../openvpn-gui/conf/app.conf | cut -d= -f2 | tr -d '"' | tr -d '[:space:]')
10-
OPENVPN_DIR=$(grep -E "^OpenVpnPath\s*=" ../openvpn-gui/conf/app.conf | cut -d= -f2 | tr -d '"' | tr -d '[:space:]')
9+
EASY_RSA=$(grep -E "^EasyRsaPath\s*=" ../openvpn-ui/conf/app.conf | cut -d= -f2 | tr -d '"' | tr -d '[:space:]')
10+
OPENVPN_DIR=$(grep -E "^OpenVpnPath\s*=" ../openvpn-ui/conf/app.conf | cut -d= -f2 | tr -d '"' | tr -d '[:space:]')
1111
echo 'EasyRSA path: $EASY_RSA OVPN path: $OPENVPN_DIR'
1212
OVPN_FILE_PATH="$OPENVPN_DIR/clients/$CERT_NAME.ovpn"
1313
INDEX="$EASY_RSA/pki/index.txt"

build/assets/start.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
set -e
44

55
# Directory where OpenVPN configuration files are stored
6-
OPENVPN_DIR=$(grep -E "^OpenVpnPath\s*=" openvpn-gui/conf/app.conf | cut -d= -f2 | tr -d '"' | tr -d '[:space:]')
6+
OPENVPN_DIR=$(grep -E "^OpenVpnPath\s*=" openvpn-ui/conf/app.conf | cut -d= -f2 | tr -d '"' | tr -d '[:space:]')
77
echo "Init. OVPN path: $OPENVPN_DIR"
88

99
# Change to the /opt directory
@@ -23,7 +23,7 @@ if [ ! -f $OPENVPN_DIR/.provisioned ]; then
2323
fi
2424

2525
# Change to the OpenVPN GUI directory
26-
cd /opt/openvpn-gui
26+
cd /opt/openvpn-ui
2727

2828
# Create the database directory if it does not exist
2929
mkdir -p db

build/build_openvpn-ui.sh

+8-7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/bin/bash
22
# Exit immediately if a command exits with a non-zero status
3+
# VERSION 1.2 by [email protected] aka Mr. Philipp
34
set -e
45

56
# Determine the machine architecture
@@ -9,26 +10,26 @@ case $ARCH in
910
armv6*)
1011
PLATFORM="linux/arm/v5"
1112
#UIIMAGE="FROM arm32v5/debian:stable-slim"
12-
UIIMAGE="FROM arm32v5/debian:unstable-slim" #moving to unstable because it has easy-rsa v3.1.6 which supports cert renewal
13-
BEEIMAGE="FROM arm32v5/golang:1.21"
13+
UIIMAGE="FROM arm32v6/alpine" #moving to unstable because it has easy-rsa v3.1.6 which supports cert renewal
14+
BEEIMAGE="FROM arm32v5/golang:1.21.1-bookworm"
1415
;;
1516
armv7*)
1617
PLATFORM="linux/arm/v7"
1718
#UIIMAGE="FROM arm32v7/debian:stable-slim"
18-
UIIMAGE="FROM arm32v7/debian:unstable-slim" #moving to unstable because it has easy-rsa v3.1.6 which supports cert renewal
19+
UIIMAGE="FROM arm32v7/alpine" #moving to unstable because it has easy-rsa v3.1.6 which supports cert renewal
1920
BEEIMAGE="FROM arm32v7/golang:1.21"
2021
;;
2122
aarch64*)
2223
PLATFORM="linux/arm64/v8"
2324
#UIIMAGE="FROM arm64v8/debian:stable-slim"
24-
UIIMAGE="FROM arm64v8/debian:unstable-slim" #moving to unstable because it has easy-rsa v3.1.6 which supports cert renewal
25-
BEEIMAGE="FROM arm64v8/golang:1.21"
25+
UIIMAGE="FROM arm64v8/alpine" #moving to unstable because it has easy-rsa v3.1.6 which supports cert renewal
26+
BEEIMAGE="FROM golang:1.21.1-bookworm"
2627
;;
2728
*)
2829
PLATFORM="linux/amd64"
2930
#UIIMAGE="FROM debian:stable-slim"
30-
UIIMAGE="FROM debian:unstable-slim" #moving to unstable because it has easy-rsa v3.1.6 which supports cert renewal
31-
BEEIMAGE="FROM golang:1.21"
31+
UIIMAGE="FROM alpine" #moving to unstable because it has easy-rsa v3.1.6 which supports cert renewal
32+
BEEIMAGE="FROM golang:1.21.1-bookworm"
3233
;;
3334
esac
3435

build/openvpn-ui-pack2.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ set -e
66
time docker run \
77
-v "$PWD/../":/go/src/github.com/d3vilh/openvpn-ui \
88
-e GO111MODULE='auto' \
9+
-e CGO_ENABLED=1 \
910
--rm \
1011
-w /usr/src/myapp \
1112
local/beego-v8 \
12-
sh -c "cd /go/src/github.com/d3vilh/openvpn-ui/ && go env -w GOFLAGS="-buildvcs=false" && bee version && bee pack -exr='^vendor|^data.db|^build|^README.md|^docs'"
13+
sh -c "cd /go/src/github.com/d3vilh/openvpn-ui/ && go env -w GOFLAGS="-buildvcs=false" && bee version && CGO_ENABLED=1 CC=musl-gcc bee pack -exr='^vendor|^ace.tar.bz2|^data.db|^build|^README.md|^docs'"

conf/easyrsa-vars.tpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ set_var EASYRSA_CA_EXPIRE {{ .EasyRSACaExpire }}
1111
set_var EASYRSA_CERT_EXPIRE {{ .EasyRSACertExpire }}
1212
set_var EASYRSA_CERT_RENEW {{ .EasyRSACertRenew }}
1313
set_var EASYRSA_CRL_DAYS {{ .EasyRSACrlDays }}
14-
#Auto generated by OpenVPN-UI v.0.8
14+
# Auto generated by OpenVPN-UI v.0.9

conf/openvpn-client-config.tpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ verb 3
2626
<tls-crypt>
2727
{{ .Ta }}
2828
</tls-crypt>
29-
#Auto generated by OpenVPN-UI v.0.8
29+
# Auto generated by OpenVPN-UI v.0.9

conf/openvpn-server-config.tpl

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
management 0.0.0.0 2080
1+
management 0.0.0.0 2080 # Don't change this line. OpenVPN UI uses this feature to manage the server
22

33
dev {{ .Device }}
44
port {{ .Port }}
@@ -29,17 +29,17 @@ dh {{ .Dh }}
2929
{{ .TLSRemoteCert }}
3030

3131
cipher {{ .Cipher }}
32-
ncp-ciphers {{ .OVConfigNcpCiphers }} #will be deprecated in future OpenVPN versions. we have to use data-ciphers instead
32+
ncp-ciphers {{ .OVConfigNcpCiphers }} # Will be deprecated in future OpenVPN versions. we have to use data-ciphers below instead
3333
#data-ciphers {{ .OVConfigNcpCiphers }}
3434

3535
auth {{ .Auth }}
3636

37-
{{ .Server }} #Trusted VPN subnet
38-
{{ .Route }} #Route to Guest VPN subnet
39-
{{ .PushRoute }} #Route to Home VPN subnet
40-
{{ .DNSServer1 }} #DNS1 server for VPN clients
41-
{{ .DNSServer2 }} #DNS2 server for VPN clients
42-
{{ .RedirectGW }} #Redirect gateway for VPN clients
37+
{{ .Server }} # Trusted VPN subnet
38+
{{ .Route }} # Route to Guest VPN subnet
39+
{{ .PushRoute }} # Route to Home VPN subnet
40+
{{ .DNSServer1 }} # DNS1 server for VPN clients
41+
{{ .DNSServer2 }} # DNS2 server for VPN clients
42+
{{ .RedirectGW }} # Redirect gateway for VPN clients
4343

4444

4545
log {{ .OVConfigLogfile }}
@@ -51,4 +51,4 @@ status-version {{ .OVConfigStatusLogVersion }}
5151
{{ .CustomOptTwo }}
5252
{{ .CustomOptThree }}
5353

54-
#Auto generated by OpenVPN-UI v.0.8
54+
# Auto generated by OpenVPN-UI v.0.9

0 commit comments

Comments
 (0)