From: "cron2 (Code Review)" Date: Mon, 25 Mar 2024 12:55:10 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641..., a@...2181... Message-ID: <08d6a48552d200ae8c11033b591d9efb276c7fca-EmailReplacePatchSet-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="EPQ0RlosxcA="; charset=UTF-8 Subject: [Openvpn-devel] [M] Change in openvpn[master]: samples: Update sample configurations List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: flichtenheld , plaisthos Cc: openvpn-devel --EPQ0RlosxcA= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable cron2 has uploaded a new patch set (#5) to the change originally created by= flichtenheld. ( http://gerrit.openvpn.net/c/openvpn/+/532?usp=3Demail ) The following approvals got outdated and were removed: Code-Review+2 by plaisthos Change subject: samples: Update sample configurations ...................................................................... samples: Update sample configurations - Remove compression settings. Not recommended anymore. - Remove old cipher setting. Replaced by data-ciphers negotiation. - Add comment how to set data-ciphers for very old clients. - Remove/reword some old comments. e.g. no need to reference OpenVPN 1.x anymore. - Mention peer-fingerprint alternative. - comment out "tls-auth" as that is not needed for a bare-bones VPN config and needs additional setup. Github: #511 Change-Id: I1a36651c0dea52259533ffc00bccb9b03bf82e26 Signed-off-by: Frank Lichtenheld Acked-by: Arne Schwabe Message-Id: <20240325071320.11348-1-gert@...1296...> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg28= 451.html Signed-off-by: Gert Doering --- M sample/sample-config-files/README M sample/sample-config-files/client.conf M sample/sample-config-files/server.conf 3 files changed, 33 insertions(+), 43 deletions(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/32/532/5 diff --git a/sample/sample-config-files/README b/sample/sample-config-files= /README index d53ac79..1493dab 100644 --- a/sample/sample-config-files/README +++ b/sample/sample-config-files/README @@ -4,3 +4,5 @@ which is located at: http://openvpn.net/howto.html + +See also the openvpn-examples man page. diff --git a/sample/sample-config-files/client.conf b/sample/sample-config-= files/client.conf index f51e017..53b8027 100644 --- a/sample/sample-config-files/client.conf +++ b/sample/sample-config-files/client.conf @@ -1,5 +1,5 @@ ############################################## -# Sample client-side OpenVPN 2.0 config file # +# Sample client-side OpenVPN 2.6 config file # # for connecting to multi-client server. # # # # This configuration can be used by multiple # @@ -102,22 +102,15 @@ # EasyRSA can do this for you. remote-cert-tls server +# Allow to connect to really old OpenVPN versions +# without AEAD support (OpenVPN 2.3.x or older) +# This adds AES-256-CBC as fallback cipher and +# keeps the modern ciphers as well. +;data-ciphers AES-256-GCM:AES-128-GCM:?CHACHA20-POLY1305:AES-256-CBC + # If a tls-auth key is used on the server # then every client must also have the key. -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. -# Note that v2.4 client/server will automatically -# negotiate AES-256-GCM in TLS mode. -# See also the data-ciphers 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 +;tls-auth ta.key 1 # Set log file verbosity. verb 3 diff --git a/sample/sample-config-files/server.conf b/sample/sample-config-= files/server.conf index 97732c6..48716a0 100644 --- a/sample/sample-config-files/server.conf +++ b/sample/sample-config-files/server.conf @@ -1,5 +1,5 @@ ################################################# -# Sample OpenVPN 2.0 config file for # +# Sample OpenVPN 2.6 config file for # # multi-client server. # # # # This file is for the server side # @@ -47,15 +47,15 @@ # an explicit unit number, such as tun0. # On Windows, use "dev-node" for this. # On most systems, the VPN will not function -# unless you partially or fully disable +# unless you partially or fully disable/open # the firewall for the TUN/TAP interface. ;dev tap dev tun # Windows needs the TAP-Win32 adapter name # from the Network Connections panel if you -# have more than one. On XP SP2 or higher, -# you may need to selectively disable the +# have more than one. +# You may need to selectively disable the # Windows firewall for the TAP adapter. # Non-Windows systems usually don't need this. ;dev-node MyTap @@ -66,8 +66,9 @@ # key file. The server and all clients will # use the same ca file. # -# See the "easy-rsa" directory for a series -# of scripts for generating RSA certificates +# See the "easy-rsa" project at +# https://github.com/OpenVPN/easy-rsa +# for generating RSA certificates # and private keys. Remember to use # a unique Common Name for the server # and each of the client certificates. @@ -75,6 +76,13 @@ # Any X509 key management system can be used. # OpenVPN can also use a PKCS #12 formatted key file # (see "pkcs12" directive in man page). +# +# If you do not want to maintain a CA +# and have a small number of clients +# you can also use self-signed certificates +# and use the peer-fingerprint option. +# See openvpn-examples man page for a +# configuration example. ca ca.crt cert server.crt key server.key # This file should be kept secret @@ -84,12 +92,18 @@ # openssl dhparam -out dh2048.pem 2048 dh dh2048.pem +# Allow to connect to really old OpenVPN versions +# without AEAD support (OpenVPN 2.3.x or older) +# This adds AES-256-CBC as fallback cipher and +# keeps the modern ciphers as well. +;data-ciphers AES-256-GCM:AES-128-GCM:?CHACHA20-POLY1305:AES-256-CBC + # Network topology # Should be subnet (addressing via IP) # unless Windows clients v2.0.9 and lower have to # be supported (then net30, i.e. a /30 per client) # Defaults to net30 (not recommended) -;topology subnet +topology subnet # Configure server mode and supply a VPN subnet # for OpenVPN to draw client addresses from. @@ -218,7 +232,7 @@ # IF YOU HAVE NOT GENERATED INDIVIDUAL # CERTIFICATE/KEY PAIRS FOR EACH CLIENT, # EACH HAVING ITS OWN UNIQUE "COMMON NAME", -# UNCOMMENT THIS LINE OUT. +# UNCOMMENT THIS LINE. ;duplicate-cn # The keepalive directive causes ping-like @@ -241,26 +255,7 @@ # a copy of this key. # The second parameter should be '0' # on the server and '1' on the clients. -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. -# Note that v2.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 (v2.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 +;tls-auth ta.key 0 # This file is secret # The maximum number of concurrently connected # clients we want to allow. -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/532?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: I1a36651c0dea52259533ffc00bccb9b03bf82e26 Gerrit-Change-Number: 532 Gerrit-PatchSet: 5 Gerrit-Owner: flichtenheld Gerrit-Reviewer: ordex Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-MessageType: newpatchset --EPQ0RlosxcA= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

cron2 uploaded patch set #5 to the change originally cr= eated by flichtenheld.

View Change

The following approvals got outda= ted and were removed: Code-Review+2 by plaisthos

samples: Update sample configurations

- R= emove compression settings. Not recommended anymore.
- Remove old cipher= setting. Replaced by data-ciphers negotiation.
- Add comment how to set= data-ciphers for very old clients.
- Remove/reword some old comments. e= .g. no need to reference
OpenVPN 1.x anymore.
- Mention peer-finger= print alternative.
- comment out "tls-auth" as that is not nee= ded for a bare-bones VPN config
and needs additional setup.

Git= hub: #511
Change-Id: I1a36651c0dea52259533ffc00bccb9b03bf82e26
Signed= -off-by: Frank Lichtenheld <frank@...2641...>
Acked-by: Arne Schwa= be <arne-openvpn@...1227...>
Message-Id: <20240325071320.11348-= 1-gert@...1296...>
URL: https://www.mail-archive.com/openvpn-devel@...1224...= sts.sourceforge.net/msg28451.html
Signed-off-by: Gert Doering <gert@...220...= ..1296...>
---
M sample/sample-config-files/README
M sample/sam= ple-config-files/client.conf
M sample/sample-config-files/server.conf3 files changed, 33 insertions(+), 43 deletions(-)

git pull ssh:=
//gerrit.openvpn.net:29418/openvpn refs/changes/32/532/5
diff --git=
 a/sample/sample-config-files/README b/sample/sample-config-files/README
index d53ac79..1493dab 100644
--- a/sample/sa= mple-config-files/README
+++ b/sample/sample-config-files/R= EADME
@@ -4,3 +4,5 @@
which is located at:=

http://openvpn.net/howto.html+
+See also the openvpn-examples man page.diff --git a/sample/sample-config-files/client.conf b/sample/sample= -config-files/client.conf
index f51e017..53b8027 100644
--- a/sample/sample-config-files/client.conf
+= ++ b/sample/sample-config-files/client.conf
@@ -1,5 +1,5 @@=
##############################################
= -# Sample client-side OpenVPN 2.0= config file #
+# Sam= ple client-side OpenVPN 2.6 config file #
# for connecting= to multi-client server. #
# = #
# This configuration can be used by mu= ltiple #
@@ -102,22 +102,15 @@
# EasyRSA c= an do this for you.
remote-cert-tls server

+# Allow to connec= t to really old OpenVPN versions
+# without AEAD support (OpenVPN 2.3.x or older)
+# This adds AES-256-CBC as fallbac= k cipher and

+# keeps= the modern ciphers as well.
+;data-ciphers AES-256-GCM:AES-128-GCM:?CHACHA20-POLY1305:AES-256-C= BC
+
= # If a tls-auth key is used on the server
# then every cl= ient must also have the key.
-tls-auth ta.key 1
-# Select a cryptog= raphic cipher.
-# If th= e cipher option is used on the server
-# then you must also specify it here.
-# Note that v2.4 client/server will automat= ically
-# negotiate AES= -256-GCM in TLS mode.
-= # See also the data-ciphers 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
= +;tls-auth ta.key 1
<= span>
# Set log file verbosity.
verb 3
diff --git a/sample/sample-config-files/server.conf b/sample= /sample-config-files/server.conf
index 97732c6..48716a0 100= 644
--- a/sample/sample-config-files/server.conf
= +++ b/sample/sample-config-files/server.conf
@@ -1,5 = +1,5 @@
#################################################<= /span>
-# Sample OpenVPN 2.0 c= onfig file for #
+# Sample OpenVPN 2.6 config file for #
= # multi-client server. #
# = #
# This file is f= or the server side #
@@ -47,15 +47,15 @@
# an explicit unit number, such as tun0.
# On = Windows, use "dev-node" for this.
# On most syst= ems, the VPN will not function
-# unless you partially or fully disable
+# unless you partially or fully disable/open
# the firewall for the TUN/TAP interface.
= ;dev tap
dev tun

# Wind= ows needs the TAP-Win32 adapter name
# from the Network Co= nnections panel if you
= -# have more than one. On XP SP2 or higher,
-# you may need to selectively disable the
= +# have more than one.+# You may need to selectivel= y disable the
# Windows firewall for the TAP adapter.
# Non-Windows systems usually don't need this.
<= span> ;dev-node MyTap

@@ -66,8 +66,9 @@
# = key file. The server and all clients will
# use the same = ca file.
#
-# See the "easy-rsa" directory for a series
-# of scripts for generating RSA certi= ficates

+# See the &q= uot;easy-rsa" project at
+# https://github.com/OpenVPN/easy-rsa
+# for generating RSA certificates
# and private keys. Remember to use

# a unique Common= Name for the server
# and each of the client certificates= .
@@ -75,6 +76,13 @@
# Any X509 key manage= ment system can be used.
# OpenVPN can also use a PKCS #12= formatted key file
# (see "pkcs12" directive in= man page).
+#=
+# If you do not want to ma= intain a CA
+# and ha= ve a small number of clients
+# you can also use self-signed certificates
+# and use the peer-fingerprint option.
+# See openvpn-examples= man page for a
+# co= nfiguration example.
ca ca.crt
cert serve= r.crt
key server.key # This file should be kept secret
@@ -84,12 +92,18 @@
# openssl dhparam -out= dh2048.pem 2048
dh dh2048.pem
+# Allow to connect to really = old OpenVPN versions
= +# without AEAD support (OpenVPN 2.3.x or older)
+# This adds AES-256-CBC as fallback cipher and=
+# keeps the modern = ciphers as well.
+;da= ta-ciphers AES-256-GCM:AES-128-GCM:?CHACHA20-POLY1305:AES-256-CBC+
# Network t= opology
# Should be subnet (addressing via IP)
<= span> # unless Windows clients v2.0.9 and lower have to

# = be supported (then net30, i.e. a /30 per client)
# Default= s to net30 (not recommended)
-;topology subnet
+topology subnet

# Configure server m= ode and supply a VPN subnet
# for OpenVPN to draw client a= ddresses from.
@@ -218,7 +232,7 @@
# IF YO= U HAVE NOT GENERATED INDIVIDUAL
# CERTIFICATE/KEY PAIRS FO= R EACH CLIENT,
# EACH HAVING ITS OWN UNIQUE "COMMON N= AME",
-# UNCOMMENT= THIS LINE OUT.
+# UN= COMMENT THIS LINE.
;duplicate-cn
<= br> # The keepalive directive causes ping-like
@@ -24= 1,26 +255,7 @@
# a copy of this key.
# Th= e second parameter should be '0'
# on the server a= nd '1' on the clients.
-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.-# Note that v2.4 client/server = will automatically
-# n= egotiate 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
<= span style=3D"color: hsl(0, 100%, 40%);">-# option to the client (v2.4+ onl= y, for earlier

-# versi= ons see below)
-;compre= ss lz4-v2
-;push "= compress lz4-v2"
-=
-# For compression com= patible with older clients use comp-lzo
-# If you enable it here, you must also
-# enable it in the client config file.
-;comp-lzo
+;tls-auth ta.key 0 # This file is= secret


# The maximum number of concurre= ntly connected
# clients we want to allow.

To view, visit change 532. To unsubscribe, or for help writ= ing mail filters, visit sett= ings.

<= link itemprop=3D"url" href=3D"http://gerrit.openvpn.net/c/openvpn/+/532?usp= =3Demail"/>
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I1a36651c0dea52259533ffc00bc= cb9b03bf82e26
Gerrit-Change-Number: 532
Gerrit-PatchSet: 5
Gerrit-Owner: flichtenheld <frank@...2723...= .>
Gerrit-Reviewer: ordex <a@...2181...>
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-MessageType: newpatchset
--EPQ0RlosxcA=--