From patchwork Wed Mar 1 13:44:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arne Schwabe X-Patchwork-Id: 3099 Return-Path: Delivered-To: patchwork@openvpn.net Received: by 2002:a05:7300:2310:b0:9f:bfa4:120f with SMTP id r16csp2676569dye; Wed, 1 Mar 2023 05:45:27 -0800 (PST) X-Google-Smtp-Source: AK7set8OIMMtFlzY9SDOrMUG+ZN7U0AQoV+ewDI5BdpOkK1y7az+xJpg3g6MlfvkwpaC82MSWTkl X-Received: by 2002:a62:4e83:0:b0:5cd:81a7:41cc with SMTP id c125-20020a624e83000000b005cd81a741ccmr4502789pfb.13.1677678327183; Wed, 01 Mar 2023 05:45:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677678327; cv=none; d=google.com; s=arc-20160816; b=kxQsU0vui71IoXGS1E4vPoKSsr6wnTBjBTC2f2hbxcqERXazleZcBTX5LRmEWh9RRp Kukq1DSqGP+ObSbr9UpAbAF3PRSEQ+Jl6/dBCJ9L0O5I6mVT3QaZqGNrG4Q2YULj9xvl WeKCtVg7PfnGA5V9Rtv+Um+IHIUkCRnkw79qT4pOUccUfdUg04uT46TtfXXl3HdSWTX6 mjVOvDaUnv3Y7te6K3ePdWLhz6o1TYYgKXC9/4aXynWvSAzJVZL+S9e0m07Mm1WhFQCr rwuqKkawvSsgJyd4k2M5pPtX+EMklJNH7INbkSqD4mVUCOGZiPKSDasU1nEIXwRq4Zxy cWvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:message-id:date:to:from:dkim-signature:dkim-signature; bh=+5ncA4Y+JU91PpSd7buZ2oGFdGSIeRolHL/AkZIPekY=; b=w2rT7Q4vAKRUZP6SCtElpeTjMUCwpG8FaUAt5kW1aOi5x8GB3WHAhPtemJ2sBSm3ND b/URDE8hueW/XCz09N8RAO2BB8olKDlqlmD7r3WHqMWyJPcazPzR8HzJMAsS7pHqJjuW aGepT+xwaayodmANTTtjEvOtfBsCJeGfcdNf7G+rsjgBKz/n0s29C22qFpKfskd4JoSx 1vwwbUyzxsz9n5+WInsELD5Le/cPnMOgRKWhdQv6R0BfwDA/o9EAqoSq8ci+EC+dJfB7 +eKKBYkczcL1hhJEcs+zRPYNL/j6uVi/hMLa7xHyUCj5zJuQc8M3E+o+l5lRVwWPsUoD Jnlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@sourceforge.net header.s=x header.b=CVMuRc9d; dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x header.b=jqp8+X2m; spf=pass (google.com: domain of openvpn-devel-bounces@lists.sourceforge.net designates 216.105.38.7 as permitted sender) smtp.mailfrom=openvpn-devel-bounces@lists.sourceforge.net Received: from lists.sourceforge.net (lists.sourceforge.net. [216.105.38.7]) by mx.google.com with ESMTPS id p126-20020a62d084000000b005b05018e48fsi12118955pfg.57.2023.03.01.05.45.26 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 Mar 2023 05:45:27 -0800 (PST) Received-SPF: pass (google.com: domain of openvpn-devel-bounces@lists.sourceforge.net designates 216.105.38.7 as permitted sender) client-ip=216.105.38.7; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@sourceforge.net header.s=x header.b=CVMuRc9d; dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x header.b=jqp8+X2m; spf=pass (google.com: domain of openvpn-devel-bounces@lists.sourceforge.net designates 216.105.38.7 as permitted sender) smtp.mailfrom=openvpn-devel-bounces@lists.sourceforge.net Received: from [127.0.0.1] (helo=sfs-ml-1.v29.lw.sourceforge.com) by sfs-ml-1.v29.lw.sourceforge.com with esmtp (Exim 4.95) (envelope-from ) id 1pXMlV-0007Zb-2D; Wed, 01 Mar 2023 13:45:04 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-1.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1pXMlS-0007Z6-VN for openvpn-devel@lists.sourceforge.net; Wed, 01 Mar 2023 13:45:02 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Transfer-Encoding:MIME-Version:Message-Id: Date:Subject:To:From:Sender:Reply-To:Cc:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=2AEJCum6q4yd9ySoWnLEEnGIetmFH0GjDqDdSAv1vrc=; b=CVMuRc9daprpL2jsTTc0r/O0Mm 6LMOlre1ZLLE7W/Y6xmCCRM2MvHui9GRCErP00Xq9/9fK0DeciJGEtxlnHWjRzxz8EmtdkJMrRvJ3 j49Pg+2dBU8fJV+wJk0EcOEd6W9RN2Lwf2ewKNx6fviF2UA2EET3sahTyhj0IuoK0Xjo=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Transfer-Encoding:MIME-Version:Message-Id:Date:Subject:To:From: Sender:Reply-To:Cc:Content-Type:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post: List-Owner:List-Archive; bh=2AEJCum6q4yd9ySoWnLEEnGIetmFH0GjDqDdSAv1vrc=; b=j qp8+X2mfzbLLJTvunLrkNOZAAGJTImxD+ArpGObcRUx3xLUQ1riwj+s2GE8eBTKHNfOyEuaYFDw3H uFTta7mtDmpotFEnwHi/tcQuDxvymNagptHTYd0JjgNTLtUpVgOF8b83GhvWFs+KFXEZgiWt1Fwhw wdkfoOJbXCMd/GFc=; Received: from mail.blinkt.de ([192.26.174.232]) by sfi-mx-2.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.95) id 1pXMlQ-0005iX-AI for openvpn-devel@lists.sourceforge.net; Wed, 01 Mar 2023 13:45:02 +0000 Received: from kamera.blinkt.de ([2001:638:502:390:20c:29ff:fec8:535c]) by mail.blinkt.de with smtp (Exim 4.95 (FreeBSD)) (envelope-from ) id 1pXMlF-0003Xp-7u for openvpn-devel@lists.sourceforge.net; Wed, 01 Mar 2023 14:44:49 +0100 Received: (nullmailer pid 2810087 invoked by uid 10006); Wed, 01 Mar 2023 13:44:49 -0000 From: Arne Schwabe To: openvpn-devel@lists.sourceforge.net Date: Wed, 1 Mar 2023 14:44:49 +0100 Message-Id: <20230301134449.2810039-1-arne@rfc2549.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Spam-Score: 0.3 (/) X-Spam-Report: Spam detection software, running on the system "util-spamd-2.v13.lw.sourceforge.com", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Explicitly say that the version specified is the one of the peer and not the version we try to emulate. Change-Id: I3bd27a8d34d8cb4896a3b78508b7d16911571543 Signed-off-by: Arne Schwabe --- doc/man-sections/generic-options.rst | 21 +++++++++++++++------ 1 file changed, 15 insertions(+) [...] Content analysis details: (0.3 points, 6.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_NONE SPF: sender does not publish an SPF Record 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record X-Headers-End: 1pXMlQ-0005iX-AI Subject: [Openvpn-devel] [PATCH] Improve description of compat-mode X-BeenThere: openvpn-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: openvpn-devel-bounces@lists.sourceforge.net X-getmail-retrieved-from-mailbox: Inbox X-GMAIL-THRID: =?utf-8?q?1759173229643832306?= X-GMAIL-MSGID: =?utf-8?q?1759173229643832306?= Explicitly say that the version specified is the one of the peer and not the version we try to emulate. Change-Id: I3bd27a8d34d8cb4896a3b78508b7d16911571543 Signed-off-by: Arne Schwabe --- doc/man-sections/generic-options.rst | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/doc/man-sections/generic-options.rst b/doc/man-sections/generic-options.rst index c827651d6..ae20a261a 100644 --- a/doc/man-sections/generic-options.rst +++ b/doc/man-sections/generic-options.rst @@ -53,10 +53,16 @@ which mode OpenVPN is configured as. need for /dev/urandom to be available. --compat-mode version - This option provides a way to alter the default of OpenVPN to be more - compatible with the version ``version`` specified. All of the changes - this option does can also be achieved using individual configuration - options. + This option provides a convient way to alter the default of OpenVPN + to be more compatible with the version ``version`` specified. All of + the changes this option does can also be achieved using individual + configuration options. + + The version specified is the version of OpenVPN peer OepnVPN should try + to compatible with. In general OpenVPN should be compatible with the last + two previous version without this option. E.g. OpenVPN 2.6.0 should be + compatible with 2.5.x and 2.4.x without this option. However, there might + be some edge cases that still require this option even in these cases. Note: Using this option reverts defaults to no longer recommended values and should be avoided if possible. @@ -67,12 +73,15 @@ which mode OpenVPN is configured as. - 2.5.x or lower: ``--allow-compression asym`` is automatically added to the configuration if no other compression options are present. - 2.4.x or lower: The cipher in ``--cipher`` is appended to - ``--data-ciphers`` + ``--data-ciphers``. - 2.3.x or lower: ``--data-cipher-fallback`` is automatically added with - the same cipher as ``--cipher`` + the same cipher as ``--cipher``. - 2.3.6 or lower: ``--tls-version-min 1.0`` is added to the configuration when ``--tls-version-min`` is not explicitly set. + If not needed, this is option should be avoided. Setting this option can + lower security or disable features like data-channel offloading. + --config file Load additional config options from ``file`` where each line corresponds to one command line option, but with the leading :code:`--` removed.