From: "flichtenheld (Code Review)" Date: Mon, 6 Nov 2023 17:32:50 +0000 References: Reply-To: frank@...2641..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net Message-ID: <2846822129298044d81fb82e95cc6c16c8e5a4c8-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="vbRTvrR9Zw4="; 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: plaisthos Cc: openvpn-devel --vbRTvrR9Zw4= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: plaisthos. Hello plaisthos, I'd like you to do a code review. Please visit http://gerrit.openvpn.net/c/openvpn/+/421?usp=3Demail to review the following change. Change subject: Change default of "topology" to "subnet" ...................................................................... Change default of "topology" to "subnet" Change-Id: Iede3e7c028cbb715e28bc88c7e583f84dadc02c8 Signed-off-by: Frank Lichtenheld --- M doc/man-sections/vpn-network-options.rst M src/openvpn/options.c 2 files changed, 10 insertions(+), 11 deletions(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/21/421/1 diff --git a/doc/man-sections/vpn-network-options.rst b/doc/man-sections/vp= n-network-options.rst index 3fa3ccf..251529f 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 d238269..764ca7b 100644 --- a/src/openvpn/options.c +++ b/src/openvpn/options.c @@ -800,7 +800,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: 1 Gerrit-Owner: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos Gerrit-MessageType: newchange --vbRTvrR9Zw4= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is currently required from: plaisthos.

flichtenheld would like plaisthos to review this change.

Vi= ew Change

Change default of "topology" to "subnet"<=
br>
Change-Id: Iede3e7c028cbb715e28bc88c7e583f84dadc02c8
Signed-off-b= y: Frank Lichtenheld <frank@...2641...>
---
M doc/man-sections/= vpn-network-options.rst
M src/openvpn/options.c
2 files changed, 10 i= nsertions(+), 11 deletions(-)

git pull ssh://gerrit.openvpn.net:2=
9418/openvpn refs/changes/21/421/1
diff --git a/doc/man-sections/vp=
n-network-options.rst b/doc/man-sections/vpn-network-options.rst
= index 3fa3ccf..251529f 100644
--- a/doc/man-sections/= vpn-network-options.rst
+++ b/doc/man-sections/vpn-network-= options.rst
@@ -495,11 +495,17 @@
<= br> ``mode`` can be one of:

+ :code:`subnet`
+ Use a subnet rather than a point-to-poin= t topology by
+ co= nfiguring the tun interface with a local IP address and subnet mask,=
+ similar to the topolog= y 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 subn= et
per client. This is designed to allow point-to-poin= t semantics when some
-= or all of the connecting clients might be Windows systems. This is the<= /span>
- default.+ or all of the connecting = clients might be Windows systems.

:cod= e:`p2p`
Use a point-to-point topology where the remote= endpoint of
@@ -508,15 +514,8 @@
conn= ecting client. Only use when none of the connecting clients are
<= span> Windows systems.


- :code:`subnet`
- Use a subnet rather than a point-to-point topology by=
- configuring the t= un 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 cli= ent and
- works on W= indows as well.
-
*Note:* Using ``--topology subnet`` changes the interpretatio= n of the
- arguments o= f ``--ifconfig`` to mean "address netmask", no longer "local=
+ arguments of ``--= ifconfig`` to mean "address netmask", and not "local<= br> remote".

--tun-mtu args=
diff --git a/src/openvpn/options.c b/src/openvpn/options.c=
index d238269..764ca7b 100644
--- a/src/op= envpn/options.c
+++ b/src/openvpn/options.c
@@ -800,7 +800,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 v= iew, visit change 421. To unsubscribe, or for help writing mail filters, visit <= a href=3D"http://gerrit.openvpn.net/settings">settings.

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