From: "cron2 (Code Review)" Date: Mon, 9 Mar 2026 13:41:41 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, ralf@...2726..., frank@...2641... Message-ID: <4096ba25ab5c90ee94cec24fcc2cd1822b2ef5d2-EmailReplacePatchSet-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="7LoEGaDdcHI="; charset=UTF-8 Subject: [Openvpn-devel] [S] Change in openvpn[master]: doc: fix client-nat syntax and examples List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: ralf_lici , plaisthos , flichtenheld Cc: openvpn-devel --7LoEGaDdcHI= 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= ralf_lici. ( http://gerrit.openvpn.net/c/openvpn/+/1560?usp=3Demail ) The following approvals got outdated and were removed: Code-Review+2 by flichtenheld Change subject: doc: fix client-nat syntax and examples ...................................................................... doc: fix client-nat syntax and examples The client-nat documentation uses an incorrect command form and incomplete examples. Document the actual syntax accepted by openvpn: client-nat snat|dnat network netmask alias Update examples to include all required arguments and rewrite the explanatory text to describe 'network', 'netmask', and 'alias' separately. Documentation-only change; no behavior change. Change-Id: I89f0aa9a23915c7783ae03793080ee989a437208 Signed-off-by: Ralf Lici Acked-by: Frank Lichtenheld Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1560 Message-Id: <20260309130546.7735-1-gert@...1296...> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg35= 966.html Signed-off-by: Gert Doering --- M doc/man-sections/client-options.rst 1 file changed, 11 insertions(+), 6 deletions(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/60/1560/3 diff --git a/doc/man-sections/client-options.rst b/doc/man-sections/client-= options.rst index b9ae7ce..85d25e5 100644 --- a/doc/man-sections/client-options.rst +++ b/doc/man-sections/client-options.rst @@ -132,16 +132,21 @@ ifconfig settings pushed to the client would create an IP numbering conflict. + Valid syntax: + :: + + client-nat snat|dnat network netmask alias + Examples: :: - client-nat snat 192.168.0.0/255.255.0.0 - client-nat dnat 10.64.0.0/255.255.0.0 + client-nat snat 192.168.0.0 255.255.0.0 10.64.0.0 + client-nat dnat 10.64.0.0 255.255.0.0 192.168.0.0 - ``network/netmask`` (for example :code:`192.168.0.0/255.255.0.0`) defines - the local view of a resource from the client perspective, while - ``alias/netmask`` (for example :code:`10.64.0.0/255.255.0.0`) defines the - remote view from the server perspective. + ``network`` and ``netmask`` (for example :code:`192.168.0.0 + 255.255.0.0`) define the local view of a resource from the client + perspective, while ``alias`` (for example :code:`10.64.0.0`) defines the + remote view from the server perspective using the same netmask. Use :code:`snat` (source NAT) for resources owned by the client and :code:`dnat` (destination NAT) for remote resources. -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1560?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings?usp=3Demail Gerrit-MessageType: newpatchset Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: I89f0aa9a23915c7783ae03793080ee989a437208 Gerrit-Change-Number: 1560 Gerrit-PatchSet: 3 Gerrit-Owner: ralf_lici Gerrit-Reviewer: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel --7LoEGaDdcHI= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

cron2 upl= oaded patch set #3 to the change originally created by ralf_lici.<= /p>

Vi= ew Change

The following approvals got outdated and were removed: Code-Review+2 by flichtenheld

doc: fix client-nat syntax a=
nd examples

The client-nat documentation uses an incorrect command f= orm and
incomplete examples.

Document the actual syntax accepted = by openvpn:
client-nat snat|dnat network netmask alias

Update e= xamples to include all required arguments and rewrite the
explanatory te= xt to describe 'network', 'netmask', and 'alias'separately.

Documentation-only change; no behavior change.

C= hange-Id: I89f0aa9a23915c7783ae03793080ee989a437208
Signed-off-by: Ralf = Lici <ralf@...2726...>
Acked-by: Frank Lichtenheld <frank@...2375...= 41...>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1560
Mes= sage-Id: <20260309130546.7735-1-gert@...1296...>
URL: https://www.= mail-archive.com/openvpn-devel@lists.sourceforge.net/msg35966.html
Signe= d-off-by: Gert Doering <gert@...1296...>
---
M doc/man-sections= /client-options.rst
1 file changed, 11 insertions(+), 6 deletions(-)
=
git pull ssh://gerrit.openvpn.net:29418/openvpn ref=
s/changes/60/1560/3
diff --git a/doc/man-sections/client-options.rs=
t b/doc/man-sections/client-options.rst
index b9ae7ce..85d2= 5e5 100644
--- a/doc/man-sections/client-options.rst=
+++ b/doc/man-sections/client-options.rst
@@ -132= ,16 +132,21 @@
ifconfig settings pushed to the client wo= uld create an IP numbering
conflict.

+ Valid syntax:
+ ::
+
+ client-nat snat|dnat network netmask alias
= +
Examples:<= /span>
::

- client-nat snat 192.168.0.0/255.255.0.0
<= span style=3D"color: hsl(0, 100%, 40%);">- client-nat dnat 10.64.0.0/2= 55.255.0.0

+ cli= ent-nat snat 192.168.0.0 255.255.0.0 10.64.0.0
+ client-nat dnat 10.64.0.0 255.255.0.0 192.= 168.0.0

- ``network/netmask`` (for example :code:`192.168.0.0/255.255.0.0`) def= ines
- the local view = of a resource from the client perspective, while
- ``alias/netmask`` (for example :code:`10.64.0.= 0/255.255.0.0`) defines the
- remote view from the server perspective.
+ ``network`` and ``netmask`` (for example :co= de:`192.168.0.0
+ 25= 5.255.0.0`) define the local view of a resource from the client
<= span style=3D"color: hsl(120, 100%, 40%);">+ perspective, while ``alias`` = (for example :code:`10.64.0.0`) defines the

+ remote view from the server perspective using the= same netmask.

Use :code:`snat` (sourc= e NAT) for resources owned by the client and
:code:`dnat= ` (destination NAT) for remote resources.

=

To view, visit change 1560. To unsubscribe, or for help writing mail filters= , visit settings= .

Gerrit-MessageType: newpatchset
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I89f0aa9a23915c7783ae0379308= 0ee989a437208
Gerrit-Change-Number: 1560
Gerrit-PatchSet: 3
Gerrit-Owner: ralf_lici <ralf@...2726...>= ;
Gerrit-Reviewer: flichtenheld <frank@...2716...= 1...>
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
= --7LoEGaDdcHI=--