Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
powder-vpn
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
David Johnson
powder-vpn
Commits
f8f016fd
Commit
f8f016fd
authored
Aug 28, 2018
by
David Johnson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable compression and encryption by default.
parent
79a6fd21
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
2 deletions
+20
-2
bin/setup-vpn.sh
bin/setup-vpn.sh
+20
-2
No files found.
bin/setup-vpn.sh
View file @
f8f016fd
...
...
@@ -67,6 +67,22 @@ export KEY_ALTNAMES="DNS:$CONCENTRATOR"
mkdir
-p
$KEY_DIR
cd
$EASY_RSA
#
# Setup some openvpn config file lines from our parameters.
#
CONFIG_COMPRESS
=
"comp-lzo no"
if
[
"
$DO_COMPRESSION
"
=
"1"
]
;
then
CONFIG_COMPRESS
=
"comp-lzo yes"
elif
[
-n
"
$DO_COMPRESSION
"
]
;
then
CONFIG_COMPRESS
=
"comp-lzo
$DO_COMPRESSION
"
fi
CONFIG_CRYPT
=
"cipher none"
if
[
"
$DO_ENCRYPTION
"
=
"1"
]
;
then
CONFIG_CRYPT
=
"cipher AES-128-CBC"
elif
[
-n
"
$DO_ENCRYPTION
"
]
;
then
CONFIG_CRYPT
=
"cipher
$DO_ENCRYPTION
"
fi
if
[
!
-f
$OURDIR
/vpn-server-done
]
;
then
# Handle the case on Ubuntu18 where easy-rsa is broken for openssl 1.1.0
# (https://github.com/OpenVPN/easy-rsa/issues/159)
...
...
@@ -119,7 +135,8 @@ client-config-dir /etc/openvpn/ccd
;client-to-client
;duplicate-cn
keepalive 10 120
comp-lzo
$CONFIG_COMPRESS
$CONFIG_CRYPT
persist-key
persist-tun
status openvpn-status.log
...
...
@@ -237,7 +254,8 @@ ca ca.crt
cert
$node
.crt
key
$node
.key
ns-cert-type server
comp-lzo
$CONFIG_COMPRESS
$CONFIG_CRYPT
verb 3
route-up "/etc/openvpn/
$node
-route-up.sh"
route-pre-down "/etc/openvpn/
$node
-route-pre-down.sh"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment