From: "cron2 (Code Review)" Date: Wed, 3 Apr 2024 17:27:28 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: <02044454f6fad51f60b481cf061f3ca8f9676c37-EmailReplacePatchSet-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="fUm3wa8u2mI="; charset=UTF-8 Subject: [Openvpn-devel] [S] Change in openvpn[master]: Change default of "topology" to "subnet" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: flichtenheld , plaisthos Cc: openvpn-devel --fUm3wa8u2mI= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable cron2 has uploaded a new patch set (#3) to the change originally created by= flichtenheld. ( http://gerrit.openvpn.net/c/openvpn/+/421?usp=3Demail ) The following approvals got outdated and were removed: Code-Review+2 by plaisthos Change subject: Change default of "topology" to "subnet" ...................................................................... Change default of "topology" to "subnet" Change-Id: Iede3e7c028cbb715e28bc88c7e583f84dadc02c8 Signed-off-by: Frank Lichtenheld Acked-by: Arne Schwabe Message-Id: <20231201112022.15337-1-frank@...2641...> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg27= 627.html Signed-off-by: Gert Doering --- M Changes.rst M doc/man-sections/vpn-network-options.rst M src/openvpn/options.c 3 files changed, 19 insertions(+), 11 deletions(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/21/421/3 diff --git a/Changes.rst b/Changes.rst index 54e5980..b2278ab 100644 --- a/Changes.rst +++ b/Changes.rst @@ -23,6 +23,15 @@ ``persist-key`` option has been enabled by default. All the keys will be kept in memory across restart. +Default for ``--topology`` changed to ``subnet`` + Previous releases used ``net30`` as default. This only affects + configs with ``--dev tun`` and only IPv4. Note that this + changes the semantics of ``--ifconfig``, so if you have manual + settings for that in your config but not set ``--topology`` + your config might fail to parse with the new version. Just adding + ``--topology net30`` to the config should fix the problem. + By default ``--topology`` is pushed from server to client. + Overview of changes in 2.6 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D diff --git a/doc/man-sections/vpn-network-options.rst b/doc/man-sections/vp= n-network-options.rst index abe474f..98b4971 100644 --- a/doc/man-sections/vpn-network-options.rst +++ b/doc/man-sections/vpn-network-options.rst @@ -495,11 +495,17 @@ ``mode`` can be one of: + :code:`subnet` + Use a subnet rather than a point-to-point topology by + configuring the tun interface with a local IP address and subnet mask, + similar to the topology used in ``--dev tap`` and ethernet bridging + mode. This mode allocates a single IP address per connecting client and + works on Windows as well. This is the default. + :code:`net30` Use a point-to-point topology, by allocating one /30 subnet per client. This is designed to allow point-to-point semantics when so= me - or all of the connecting clients might be Windows systems. This is the - default. + or all of the connecting clients might be Windows systems. :code:`p2p` Use a point-to-point topology where the remote endpoint of @@ -508,15 +514,8 @@ connecting client. Only use when none of the connecting clients are Windows systems. - :code:`subnet` - Use a subnet rather than a point-to-point topology by - configuring the tun interface with a local IP address and subnet mask, - similar to the topology used in ``--dev tap`` and ethernet bridging - mode. This mode allocates a single IP address per connecting client and - works on Windows as well. - *Note:* Using ``--topology subnet`` changes the interpretation of the - arguments of ``--ifconfig`` to mean "address netmask", no longer "local + arguments of ``--ifconfig`` to mean "address netmask", and not "local remote". --tun-mtu args diff --git a/src/openvpn/options.c b/src/openvpn/options.c index 768332d..e2bfe0e 100644 --- a/src/openvpn/options.c +++ b/src/openvpn/options.c @@ -796,7 +796,7 @@ o->gc_owned =3D true; } o->mode =3D MODE_POINT_TO_POINT; - o->topology =3D TOP_NET30; + o->topology =3D TOP_SUBNET; o->ce.proto =3D PROTO_UDP; o->ce.af =3D AF_UNSPEC; o->ce.bind_ipv6_only =3D false; -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/421?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: Iede3e7c028cbb715e28bc88c7e583f84dadc02c8 Gerrit-Change-Number: 421 Gerrit-PatchSet: 3 Gerrit-Owner: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-MessageType: newpatchset --fUm3wa8u2mI= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

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

View Change

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

Change default of "topology" to "=
subnet"

Change-Id: Iede3e7c028cbb715e28bc88c7e583f84dadc02c8Signed-off-by: Frank Lichtenheld <frank@...2641...>
Acked-by: Arn= e Schwabe <arne-openvpn@...1227...>
Message-Id: <20231201112022= .15337-1-frank@...2641...>
URL: https://www.mail-archive.com/openvpn-= devel@lists.sourceforge.net/msg27627.html
Signed-off-by: Gert Doering &l= t;gert@...1296...>
---
M Changes.rst
M doc/man-sections/vpn-net= work-options.rst
M src/openvpn/options.c
3 files changed, 19 insertio= ns(+), 11 deletions(-)

git pull ssh://gerrit.openvpn.net:29418/op=
envpn refs/changes/21/421/3
diff --git a/Changes.rst b/Changes.rst<=
/span>
index 54e5980..b2278ab 100644
--- a/Changes= .rst
+++ b/Changes.rst
@@ -23,6 +23,15 @@
``persist-key`` option has been enabled by default.<= br> All the keys will be kept in memory across restart.
+Default for= ``--topology`` changed to ``subnet``
+ Previous releases used ``net30`` as default. This onl= y affects
+ config= s with ``--dev tun`` and only IPv4. Note that this
+ changes the semantics of ``--ifconfig``,= so if you have manual
+ your config might fail t= o parse with the new version. Just adding
+ ``--topology net30`` to the config should fix the= problem.
+ By def= ault ``--topology`` is pushed from server to client.
+
Overview of changes in = 2.6
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D

diff --git a/doc= /man-sections/vpn-network-options.rst b/doc/man-sections/vpn-network-option= s.rst
index abe474f..98b4971 100644
--- a/d= oc/man-sections/vpn-network-options.rst
+++ b/doc/man-secti= ons/vpn-network-options.rst
@@ -495,11 +495,17 @@
``mode`` can be one of:

+ :code:`subnet`+ Use a subnet rather than= a point-to-point topology by
+ configuring the tun interface with a local IP address and sub= net mask,
+ simila= r to the topology used in ``--dev tap`` and ethernet bridging
+ mode. This mode allocates a s= ingle IP address per connecting client and

+ works on Windows as well. This is the default.
+
:= code:`net30`
Use a point-to-point topology, by allocat= ing one /30 subnet
per client. This is designed to all= ow point-to-point semantics when some
- or all of the connecting clients might be Windows syste= ms. This is the
- de= fault.
+ or all of= the connecting clients might be Windows systems.
<= br> :code:`p2p`
Use a point-to-point topology = where the remote endpoint of
@@ -508,15 +514,8 @@ connecting client. Only use when none of the connecting clients= are
Windows systems.

- :code:`subnet`

- Use a subnet rather than a point-to-p= oint topology by
- c= onfiguring the tun interface with a local IP address and subnet mask,
- similar to the topology= used in ``--dev tap`` and ethernet bridging
- mode. This mode allocates a single IP address pe= r connecting client and
- works on Windows as well.
-
*Note:* Using ``--topology subnet`` changes t= he interpretation of the
+ a= rguments of ``--ifconfig`` to mean "address netmask", and not &qu= ot;local
remote".

--tun-mtu args

diff --git a/src/openvpn/options.c b/src/o= penvpn/options.c
index 768332d..e2bfe0e 100644
--- a/src/openvpn/options.c

+++ b/src/openvpn/options.c=
@@ -796,7 +796,7 @@
o->gc_owne= d =3D true;
}
o->mode =3D MODE= _POINT_TO_POINT;
- o= ->topology =3D TOP_NET30;
+ o->topology =3D TOP_SUBNET;
o->ce.p= roto =3D PROTO_UDP;
o->ce.af =3D AF_UNSPEC;<= br> o->ce.bind_ipv6_only =3D false;

To view, visit change 421. To unsubscribe, or for help writing mail fi= lters, visit settings.

=
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Iede3e7c028cbb715e28bc88c7e5= 83f84dadc02c8
Gerrit-Change-Number: 421
Gerrit-PatchSet: 3
Gerrit-Owner: flichtenheld <frank@...2723...= .>
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-MessageType: newpatchset
--fUm3wa8u2mI=--