]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Use AES ciphers in our sample configuration files and add a few modern 2.4 examples
authorArne Schwabe <arne@rfc2549.org>
Tue, 12 Jul 2016 09:14:08 +0000 (11:14 +0200)
committerDavid Sommerseth <davids@openvpn.net>
Thu, 25 Aug 2016 18:23:24 +0000 (20:23 +0200)
[ DS: Fixed typos and removed added extra blank line, all commented by Steffan ]

Acked-by: Steffan Karger <steffan@karger.me>
Message-Id: 1468314848-11820-1-git-send-email-arne@rfc2549.org
URL: http://www.mail-archive.com/search?l=mid&q=1468314848-11820-1-git-send-email-arne@rfc2549.org
Signed-off-by: David Sommerseth <davids@openvpn.net>
sample/sample-config-files/client.conf
sample/sample-config-files/server.conf
sample/sample-config-files/static-home.conf
sample/sample-config-files/static-office.conf

index fedcbd6e8dcd7f0a78cde84f2824111da6ef2231..f5c69e34ba523f775a0d5c7f91dc94c676295561 100644 (file)
@@ -110,12 +110,15 @@ tls-auth ta.key 1
 # Select a cryptographic cipher.
 # If the cipher option is used on the server
 # then you must also specify it here.
-;cipher x
+# Note that 2.4 client/server will automatically
+# negotiate AES-256-GCM in TLS mode.
+# See also the ncp-cipher option in the manpage
+cipher AES-256-CBC
 
 # Enable compression on the VPN link.
 # Don't enable this unless it is also
 # enabled in the server config file.
-comp-lzo
+#comp-lzo
 
 # Set log file verbosity.
 verb 3
index c85ca0ffdb0810859cdf83da1d8ec23450b84455..aa7d5b39a4393c9c9dd73ae7e9ef5fb88bd0410f 100644 (file)
@@ -246,14 +246,21 @@ tls-auth ta.key 0 # This file is secret
 # Select a cryptographic cipher.
 # This config item must be copied to
 # the client config file as well.
-;cipher BF-CBC        # Blowfish (default)
-;cipher AES-128-CBC   # AES
-;cipher DES-EDE3-CBC  # Triple-DES
-
-# Enable compression on the VPN link.
+# Note that 2.4 client/server will automatically
+# negotiate AES-256-GCM in TLS mode.
+# See also the ncp-cipher option in the manpage
+cipher AES-256-CBC
+
+# Enable compression on the VPN link and push the
+# option to the client (2.4+ only, for earlier
+# versions see below)
+;compress lz4-v2
+;push "compress lz4-v2"
+
+# For compression compatible with older clients use comp-lzo
 # If you enable it here, you must also
 # enable it in the client config file.
-comp-lzo
+;comp-lzo
 
 # The maximum number of concurrently connected
 # clients we want to allow.
@@ -302,3 +309,7 @@ verb 3
 # sequential messages of the same message
 # category will be output to the log.
 ;mute 20
+
+# Notify the client that when the server restarts so it
+# can automatically reconnect.
+explicit-exit-notify 1
\ No newline at end of file
index c9666874668d66dc85e013d82c01617df063abd0..ed0c6726395a231b57a14fc43155390e328b13f0 100644 (file)
@@ -26,6 +26,9 @@ up ./home.up
 # Our pre-shared static key
 secret static.key
 
+# Cipher to use
+cipher AES-256-CBC
+
 # OpenVPN 2.0 uses UDP port 1194 by default
 # (official port assignment by iana.org 11/04).
 # OpenVPN 1.x uses UDP port 5000 by default.
index 68030cc944d5018afd05dada42db11e9be714e3f..609ddd02f582764460d96dce07ea750bd3a89210 100644 (file)
@@ -23,6 +23,9 @@ up ./office.up
 # Our pre-shared static key
 secret static.key
 
+# Cipher to use
+cipher AES-256-CBC
+
 # OpenVPN 2.0 uses UDP port 1194 by default
 # (official port assignment by iana.org 11/04).
 # OpenVPN 1.x uses UDP port 5000 by default.